Skip to content

ensure all lints are relevant in Dart 2 #57876

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

Closed
2 tasks done
pq opened this issue Jan 17, 2019 · 3 comments
Closed
2 tasks done

ensure all lints are relevant in Dart 2 #57876

pq opened this issue Jan 17, 2019 · 3 comments
Labels
area-meta Cross-cutting, high-level issues (for tracking many other implementation issues, ...). contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead.

Comments

@pq
Copy link
Member

pq commented Jan 17, 2019

In cases where rules can be updated and remain valuable we should do so. If lints are no longer relevant we should deprecate and remove (e.g., #57809).

@pq pq added the area-meta Cross-cutting, high-level issues (for tracking many other implementation issues, ...). label Jan 17, 2019
@pq
Copy link
Member Author

pq commented Jan 17, 2019

In #57875, @kwalrath writes:

[W]e should certainly remove lints that are irrelevant or problematic in Dart 2. Some used to be in the style guide but were removed (see dart-lang/site-www#863, dart-lang/site-www#889, and other changes to Effective Dart). Here are some possibilities:

  • always_declare_return_types
  • avoid_types_on_closure_parameters
  • type_annotate_public_apis
  • super_goes_last: Irrelevant because Dart 2 enforces this. (I can't find this in the SDK changelog, but it's mentioned in More revisions to "Effective Dart" based on feedback. site-www#863.)
  • prefer_constructors_over_static_methods: Irrelevant from the POV of reading code (though not from the implementer's or doc reader's POV).

@bwilkerson
Copy link
Member

Other than 'super_goes_last' (assuming that code that violates the lint is no longer valid) I don't understand why there are problematic in Dart 2. Could someone add more details?

@pq pq added the contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) label Jan 19, 2019
@pq
Copy link
Member Author

pq commented Apr 29, 2019

This will be ongoing. Let's open new issues as new concerns arise.

@pq pq closed this as completed Apr 29, 2019
@devoncarew devoncarew added devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. labels Nov 18, 2024
@devoncarew devoncarew transferred this issue from dart-archive/linter Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-meta Cross-cutting, high-level issues (for tracking many other implementation issues, ...). contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead.
Projects
None yet
Development

No branches or pull requests

3 participants