-
Notifications
You must be signed in to change notification settings - Fork 704
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
Document "analysis context" and account for workspaces too #6145
Comments
Some notes: Summary: allows the analyzer to load all of the code across a monorepo as an individual package, as opposed to blown up memory usage analyzing for every different package How to: |
Edit: analysis context not relevant to the customization doc, no work here. Customizing static analysis pageRight after this section might be a good place to caveat that if you enable a workspace, what analysis_options.yaml applies to what packages would be different (?): |
Edit: added here d017546 Edit: will mention the improvement context performance to balance out the "con" mentioned earlier in the page. Pub workspaces (monorepo support) (not yet published)It's mentioned early in the page that not using the workspace feature causes bloated analysis contexts:
Later somewhere it should mention how the analysis context problem changes on pub workspaces are enabled. Maybe at the end of the "To create a workspace" section, after "Now the file structure looks like this:" Or maybe a small section titled "Analysis context in a workspace" that briefly explains how one can expect their workspace to be handled by the analyzer, and the benefits of that. |
Edit: handled here Edit re: @bwilkerson: yes, minor changes should be made. this files only relevant to people building on the analyzer package (doesn't need to be repurposed on the site) Performing analysis (sdk tutorial, 4 years old)Does this need updating for analysis context changes?
-- Is this still true? Analysis contexts can be wider now in a workspace, and I think they don't necessarily use the same analysis options file (or they do, but it's multiple files now?). Also, an analysis context can correspond to multiple packages, not just a package, now.
-- Now that the nature of analysis contexts has changed, is this still true?
-- Instead of using this, would it be easier to use workspaces to account for a wider context? Kind of sounds like they address the same goal (or i'm mixing up "files" vs. "packages") The page talks a lot about analyzing collections of files; does any of that change/have a better solution now with the changes to analyzer contexts? |
Related issue: #5891
References relating to multi-option contexts and workspaces:
The text was updated successfully, but these errors were encountered: