in lib/rules/i18n-no-reference.js [49:74]
CallExpression(node) {
const [methodName, methodArgs] = extractI18nMethodAndArgs(node);
if (!methodName || !methodArgs || methodName.includes('ngettext')) {
return;
}
const positions = I18N_METHODS[methodName] || [];
positions.forEach((position) => {
const arg = methodArgs[position];
const [argMethod] = extractI18nMethodAndArgs(arg);
if (isReferenceNode(arg) && !argMethod) {
context.report({
node,
messageId: 'noDynamicValue',
data: {
method: methodName,
arg: SOURCE_CODE.getText(arg),
},
});
}
});
},