dart-lang / linter

Linter for Dart.
https://dart.dev/tools/linter-rules
BSD 3-Clause "New" or "Revised" License
636 stars 170 forks source link

tooling to sanity check lints #2081

Open pq opened 4 years ago

pq commented 4 years ago

A good lint has a few properties that would be easy to check for statically. We should consider some tooling.

A few quick thoughts:

(Note that some of this is currently done in the build which is great for lints in this repo but ones hosted elsewhere could benefit from similar validation.)

/fyi @bwilkerson @davidmorgan

srawlins commented 4 years ago

But who lints the linters? 😛

bwilkerson commented 4 years ago

They're self-linting.

pq commented 4 years ago

Turtles all the way down!

🐢 🐢 🐢

pq commented 2 years ago

3426 introduces a basic framework for self-checking via lints. I started with a check to ensure that we have visit methods that correspond to all node registrations.