fix(compiler-cli): add warning for unused let declarations#57033
fix(compiler-cli): add warning for unused let declarations#57033crisbeto wants to merge 2 commits intoangular:mainfrom
Conversation
thePunderWoman
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
atscott
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
|
This PR was merged into the repository by commit c76b440. The changes were merged into the following branches: main, 18.1.x |
Adds a new extended diagnostic that will flag `@let` declarations that aren't used within the template. The diagnostic can be turned off through the `extendedDiagnostics` compiler option. PR Close #57033
…ngular#57033)" This reverts commit c76b440.
|
Reopening - this broke at least 1 place in g3 that looks to be an incorrect identification of an unused let variable (it is used) Edit: Also, should this really target |
…attributes Fixes that the visitor which is used to implement template diagnostics isn't visiting the template attributes of structural directives.
Adds a new extended diagnostic that will flag `@let` declarations that aren't used within the template. The diagnostic can be turned off through the `extendedDiagnostics` compiler option.
My thinking was that since Also the issue that caused the target to break has been fixed and I've run a TGP just in case (note the one unrelated failing target). |
|
This PR was merged into the repository by commit d4ff6bc. The changes were merged into the following branches: main |
Adds a new extended diagnostic that will flag `@let` declarations that aren't used within the template. The diagnostic can be turned off through the `extendedDiagnostics` compiler option. PR Close #57033
…7033) Adds a new extended diagnostic that will flag `@let` declarations that aren't used within the template. The diagnostic can be turned off through the `extendedDiagnostics` compiler option. PR Close angular#57033
…ngular#57033)" (angular#57088) This reverts commit c76b440. PR Close angular#57088
…attributes (angular#57033) Fixes that the visitor which is used to implement template diagnostics isn't visiting the template attributes of structural directives. PR Close angular#57033
…7033) Adds a new extended diagnostic that will flag `@let` declarations that aren't used within the template. The diagnostic can be turned off through the `extendedDiagnostics` compiler option. PR Close angular#57033
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adds a new extended diagnostic that will flag
@letdeclarations that aren't used within the template. The diagnostic can be turned off through theextendedDiagnosticscompiler option.