-
Notifications
You must be signed in to change notification settings - Fork 43
Files that import .template.dart files that are generated by Angular produce failures in Strong Mode analysis. #213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We use our own In-file ignores are your only option – now. |
I'd argue the case that similarly to generated files for |
Ah! You'd think so, but in this case we're dealing w/ more than just
boilerplate code.
This is very different than json_serializable
…On Mon, Jan 8, 2018 at 2:29 PM, István Soós ***@***.***> wrote:
I'd argue the case that similarly to generated files for json_serializable,
.template.dart files could be included in the package sources.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#213 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABCilyQmFYLLGmvCNfB0zjRVcNH_dihks5tIpbYgaJpZM4RVELo>
.
|
@kevmoo So users can still avoid pana's check in this instance by placing the ignores everywhere they need them. I'd propose that since this practice can be common, and will be required in the updated angular boostrapping it might make sense to allow that particular analysis option from the package to override pana's setting. |
I agree with this being ignored in the default It won't hurt other customers. |
How so? |
The generated templates are a product of the top-level package/app. They need to be synced w/ the version of angular, etc. |
@matanlurey @nshahan – RE @isoos – happy to chat/VC if you want more info |
Is there a build process that generates these files? Maybe we could run standardized builds before analysis (that cannot be used to mess up with the analyzer environment). |
In this case the files are generated by angular when building the project. |
|
@isoos – there is no "build" for components. The build is part of an app. |
I am still seeing these errors when I publish new version of the package: |
Example:
https://pub.dartlang.org/packages/angular_components/versions/0.9.0-alpha%2B2#-analysis-tab-
The
uri_has_not_been_generated: ignore
option I have in theanalysis_options.yaml
file is not being used. https://github.com/dart-lang/angular_components/blob/master/analysis_options.yaml#L8The text was updated successfully, but these errors were encountered: