-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Having to define analysis_options in every package is cumbersome. #26154
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
also cc @pq |
I believe the expectation is for each package to have its own options file, but it sounds like the options file is in the directory containing all of the packages. Is that true? If so, does it work correctly (for one of the packages) if you copy the file to the root of the package? |
Yes. No. |
I'd like to try and reproduce this. Is your repo public? |
It is not, but I can create one that reproduces the issue if that's helpful. |
That would be great. Thanks! |
So I tried to put together a smaller repo exhibiting the issue, but while the options file does not get picked up if it is placed at the root of the project, it does work when copied to the root of the package. I then went back to my repo, tried to restart analysis, restart Atom, but it still shows lints I'm not enabling either at the root of the project or the root of the package. As an example, I never set Not sure where to go from here. Since we both work for Google, I guess I can add you to my repo. |
Right. Another source for confusion. Options correspond to packages. We often talk as if projects and packages were synonymous when often they're not.
Awesome. Happy to look. |
On looking over the sources, I think I see (the other) source of confusion. What you're seeing are analysis options that are inherited from flutter, which identifies a number of analyses that get turned on for all clients. To summarize, I see two issues:
|
I filed dart-atom/atom-flutter#62 for the Flutter part. Wanna keep this one open for issue 1? |
Great. Yep. I re-named it to reflect the new thrust. Thanks! |
Kicked off a doc to explore a proposal here. Thoughts welcome! |
@pylaligand Is this still an issue? |
I don't think so. |
My repository hosts 15+ Dart packages and defines one .analysis_options file at the root. It looks like that options file is ignored by Atom which shows me all sorts of lint warnings when the file only specifies a handful (and a manual run of dartanalyzer only shows those).
/cc @devoncarew
The text was updated successfully, but these errors were encountered: