Skip to content
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

strong-mode documentation points to archived repo #48617

Closed
timsneath opened this issue Mar 18, 2022 · 4 comments
Closed

strong-mode documentation points to archived repo #48617

timsneath opened this issue Mar 18, 2022 · 4 comments
Labels
analyzer-command Issues with the command-line dartanalyzer tool area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P4

Comments

@timsneath
Copy link
Contributor

The two google links at:

help: 'Disable implicit casts in strong mode (https://goo.gl/cTLz40).',

help: 'Disable implicit dynamic (https://goo.gl/m0UgXD).',

both point to a Markdown doc that was last updated in 2016 and is in an archived / deprecated repo.

It's unclear whether these are still relevant. https://dart.dev/guides/language/analysis-options#enabling-additional-type-checks suggests that implicit-casts is now deprecated; it's not clear whether the same applies to implicit-dynamic or not. I'm unclear whether they should still be turned on?

@bwilkerson
Copy link
Member

@srawlins For status of the options.

I will point out that the analyzer_cli package contains the implementation of the dartanalyzer command, which itself is deprecated and will at some point be removed. I don't know whether that impacts the importance of dealing with the help documentation.

@bwilkerson bwilkerson added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-command Issues with the command-line dartanalyzer tool labels Mar 18, 2022
@parlough
Copy link
Member

parlough commented Mar 21, 2022

I do believe these options are now fully covered (and more) by the strict-casts, strict-inference, and strict-raw-types language modes. I don't think they are exposed through the old cli though.

analyzer:
  language:
    strict-casts: true
    strict-inference: true
    strict-raw-types: true

Side note, could we somehow deprecate the strong-mode options in analysis_options.yaml and direct users to the new language modes?

@bwilkerson
Copy link
Member

Yes, we can, and probably should, create diagnostic for those cases. We already have one for strong-mode: true, which we believed to be the more common case.

@parlough
Copy link
Member

parlough commented Jan 17, 2024

I'm going to close this in favor of #50679 which tracks removing these modes, since the old analyzer_cli referenced here is no longer used.

https://dart.dev/tools/analysis#enabling-additional-type-checks has been updated to document the newer language modes, and previously indicated the deprecated state of the old modes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-command Issues with the command-line dartanalyzer tool area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P4
Projects
None yet
Development

No branches or pull requests

4 participants