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

no need to parse an HTML page for all of the lint rules #8

Open
csells opened this issue Oct 4, 2024 · 2 comments
Open

no need to parse an HTML page for all of the lint rules #8

csells opened this issue Oct 4, 2024 · 2 comments

Comments

@csells
Copy link

csells commented Oct 4, 2024

I notice that you're scraping the lint rules from a web page.

According to this comment, the lint rules are available as a yaml file here.

@rydmike
Copy link

rydmike commented Oct 5, 2024

Oh cool, thanks for the tip, I just grabbed this link for my own usage! 😃

@denniskaselow
Copy link

Using that file could be problematic because it has the lint rules of the current main branch, while the published version of the lints is for the stable version of the sdk. It can even contain rules for which a sdk version isn't published yet (e.g. current dev channel Dart version is 3.7.0-39.0.dev but it doesn't know about the specify_nonobvious_property_types rule).

So you'd have to use a tagged version (but now you need to get the version of the published stable Dart SDK from somewhere) to get the current stable version of the lints like: https://raw.githubusercontent.com/dart-lang/sdk/refs/tags/3.5.4/pkg/linter/example/all.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants