v1.3.0
linteo
Von iteo verwendete Flutter- und Dart-Lint-Regeln
30Likes 48430-Tage-Downloads150Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Von iteo verwendete Flutter- und Dart-Lint-Regeln
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Provides set of Flutter and Dart linter rules used at iteo. By default, package enables all available lint rules (all_lint_rules.yaml) and disables some of them upon team agreement.
flutter pub add --dev linteoanalysis_options.yaml file at the root of the package (alongside the pubspec.yaml file) and include: package:linteo/analysis_options.yaml from it.| Dart Version | Linteo Version |
|---|---|
3.1 |
1.3.0 |
2.17 |
1.2.0 |
2.17 |
1.1.0 |
2.17 |
1.0.1 |
2.18 |
1.0.0 |
analysis_options.yaml fileinclude: package:linteo/analysis_options.yaml
linter:
rules:
# Adjust package to specific project needs
# package_api_docs: true # Uncomment to enable rule
Your project may require special case. Lint rules can be suppressed at the line, file, or project level.
Use an ignore: comment directly above the line
// ignore: public_member_api_docs
class A {}
Use an ignore_for_file: comment at the top of the file
// ignore_for_file: public_member_api_docs
class A {}
class B {}
Update root analysis_options.yaml according to your needs:
include: package:linteo/analysis_options.yaml
linter:
rules:
public_member_api_docs: true
Support the project using a badge in your repository