|Number of watchers on Github||46|
|Number of open issues||190|
|Average time to close an issue||10 days|
|Average time to merge a PR||1 day|
|Open pull requests||24+|
|Closed pull requests||11+|
|Last commit||over 1 year ago|
|Repo Created||almost 5 years ago|
|Repo Last Updated||over 1 year ago|
|Organization / Author||dart-lang|
|Do you use linter? Leave a review!|
|View open issues (190)|
|View linter activity|
|View on github|
|Fresh, new opensource launches 🚀🚀🚀|
Trendy new open source projects in your inbox! View examples
A Dart style linter.
The linter is bundled with the Dart SDK; if you have an updated Dart SDK already, you're done!
Alternatively, if you want to contribute to the linter or examine the source, clone the
linter repo like this:
$ git clone https://github.com/dart-lang/linter.git
The linter gives you feedback to help you catch potential errors and keep your code in line with the published Dart Style Guide. Currently enforcable lint rules (or
lints) are catalogued here and can be configured via an analysis options file. The linter is run from within the
dartanalyzer command-line tool shipped with the Dart SDK. Assuming you have lints configured in an
analysis_options.yaml file with these contents:
linter: rules: - annotate_overrides - hash_and_equals - prefer_is_not_empty
you could lint your package like this:
$ dartanalyzer --options analysis_options.yaml .
and see any violations of the
prefer_is_not_empty rules in the console. In practice you would probably configure quite a few more rules (the full list is here).
If a specific lint warning should be ignored, it can be flagged with a comment. For example,
// ignore: avoid_as (pm as Person).firstName = 'Seth'
dartanalyzer to ignore this instance of
avoid_as warning. As lints are treated the same as errors and warnings by the analyzer, their severity can similarly be configured in an options file. For example, an analysis options file that specifies
linter: rules: - avoid_as analyzer: errors: avoid_as: error
tells the analyzer to treat
avoid_as lints as errors. For more on configuring analysis see the analysis option file docs.
Please file feature requests and bugs at the issue tracker.
argspackage dependency to support versions