-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How does a Dart fix get associated with a Linter rule? #47585
Comments
/cc @bwilkerson |
I'll update the doc later, but to unblock you... The association is made in the
It isn't necessary to define the lint name there, but it is the convention we follow.
I assume you mean the pubspec in the analyzer package. For the analyzer built in the sdk, the version constraint is in the DEPS file. For uses of the analyzer as a package, I suspect that it's always been acceptable to use the latest version. We don't let them get out of sync. |
Does anyone know where that doc got moved to? |
It's probably the page at https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server/doc/implementation/quick_fix.md. |
Then I believe this is already completed look here:
|
That's slightly out of date. The |
Reading through the
quick_fix
documentation I'm left confused as to how a Dart fix is associated with a Linter rule. I'm guessing the Lint rule name has to be added tolib/src/services/linter/lint_names.dart
, at least for testing purposes. It's probably worth explaining in thequick_fix
documentation what the linkage is, and how it works.I'm also confused as to why the
linter
package entry inpubspec.yaml
isany
. Shouldn't it be incremented to the version of the Linter package that contains all the lint rules listed inlib/src/services/linter/lint_names.dart
?The text was updated successfully, but these errors were encountered: