You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rules that apply to templates lowercase the file paths. (Perhaps only on macOS.) This makes tools trying to identify the location of the file not be able to do a string comparison.
This happens both when I run ng lint in my Angular project, and when I run manually:
Euphorbus:~/Programming/LearnLux/learnlux-app (master *$)$ tslint --project ./ --format verbose src/app/budget/list/list.component.ts
ERROR: (prefer-readonly) /Users/rgant/Programming/LearnLux/learnlux-app/src/app/budget/list/list.component.ts[29, 13]: Private member variable 'budgetService' is never reassigned; mark it as 'readonly'.
ERROR: (template-use-track-by-function) /users/rgant/programming/learnlux/learnlux-app/src/app/budget/list/list.component.html[9, 25]: Missing trackBy function in ngFor directive
ERROR: (template-use-track-by-function) /users/rgant/programming/learnlux/learnlux-app/src/app/budget/list/list.component.html[113, 22]: Missing trackBy function in ngFor directive
ERROR: (template-use-track-by-function) /users/rgant/programming/learnlux/learnlux-app/src/app/budget/list/list.component.html[135, 22]: Missing trackBy function in ngFor directive
Note how the first error has /Users/rgant/Programming/LearnLux/ with capital Users, Programming, and LearnLux. But the other errors have /users/rgant/programming/learnlux/ with only lowercase characters.
Context and configuration
I've seen this with both the template-use-track-by-function and template-no-call-expression but I think it is all the template rules.
Rules that apply to templates lowercase the file paths. (Perhaps only on macOS.) This makes tools trying to identify the location of the file not be able to do a string comparison.
This happens both when I run
ng lint
in my Angular project, and when I run manually:Note how the first error has
/Users/rgant/Programming/LearnLux/
with capital Users, Programming, and LearnLux. But the other errors have/users/rgant/programming/learnlux/
with only lowercase characters.Context and configuration
I've seen this with both the
template-use-track-by-function
andtemplate-no-call-expression
but I think it is all the template rules.tsconfig.json
I don't have a
~/.codelyzer.js
file.To Reproduce
tslint.json
Introduce some errors in the templates that would trigger the configured rules. Run the linter.
Expected behavior
Expected the file paths to be canonical with default character cases.
Environment
The text was updated successfully, but these errors were encountered: