question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[@angular-eslint/template/i18n] reports false-positives and false-negatives

See original GitHub issue

Description and reproduction of the issue

Rule @angular-eslint/template/i18n is unexpectedly reporting errors for some texts, and does not report errors for texts it would be expected to.

{
  "rules": {
    "@angular-eslint/template/i18n": [
      "error",
      {
        "checkId": false
      }
    ]
  }
}
<div>this is reported (as expected)</div>
<div i18n>this is not reported (as expected)</div>
<div>this: {{shouldReportError}}</div> <!-- this should be reported, but is not -->
<div>{{shouldNotReportError}}</div> <!-- this should not be reported, but it is -->

Running npx eslint "src/app/**" produces following output for src/app/app.component.ts:

image

Full code to reproduce the problem can be found on Stackblitz: https://stackblitz.com/edit/angular-ivy-nteny3

Versions

package version
@angular-eslint/eslint-plugin-template 12.5.0
@angular-eslint/template-parser 12.5.0
@typescript-eslint/parser 4.28.2
ESLint 7.26.0
node 14.17.0
# Please run `npx ng version` in your project and paste the full output here:
Angular CLI: 12.2.8
Node: 14.17.0
Package Manager: npm 6.14.13
OS: win32 ia32

Angular: 12.2.8
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.8
@angular-devkit/build-angular   12.2.8
@angular-devkit/core            12.2.8
@angular-devkit/schematics      12.2.8
@schematics/angular             12.2.8
rxjs                            6.6.7
typescript                      4.2.4
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest supported version of the packages and checked my ng version output per the instructions given here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rafaelss95commented, Oct 11, 2021

Oh, I actually realized that this is possible a duplicate of #682. Could you confirm it, please?

0reactions
EmmanuelRouxcommented, Oct 25, 2021

Fixed in 12.6.0 (#683)

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Study of False-Positive and False-Negative Error Rates in ...
The rate of false negatives (estimated as. 0.367% from comparisons known to be from the same firearm but reported as eliminations) was quite...
Read more >
False Positives, False Negatives, and False Analyses: A ...
They conclude that ProPublica's report was based on faulty statistics and data analysis and failed to show that the COMPAS itself is racially...
Read more >
Handling false negatives, false positives and reporting limits in ...
This paper concludes that the z-scoring system is adaptable without change to false negatives and positives, although a degree of statistical expertise is ......
Read more >
Practices of Science: False Positives and False Negatives
A false positive is when a scientist determines something is true when it is actually false (also called a type I error). A...
Read more >
Assessment of False Positives with the Humphrey Field ... - IOVS
However, all reported false positives reflect both erroneous patient ... we may also have elevated the reported fixation losses and false negatives.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found