[@angular-eslint/template/i18n] reports false-positives and false-negatives
See original GitHub issueDescription 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
:
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:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, I actually realized that this is possible a duplicate of #682. Could you confirm it, please?
Fixed in 12.6.0 (#683)