stokkur_dart_analyzer 1.0.0 stokkur_dart_analyzer: ^1.0.0 copied to clipboard
This package define a set of lint rules to build Flutter apps. We use this internally at Stokkur Software.
1.0.0 #
- We have excluded the file generated by the get_it package
exclude:
- ...
- "**/injector.config.dart"
- We have added the following rules to the previous version
# Stokkur:
- prefer_single_quotes
- always_use_package_imports
- avoid_catches_without_on_clauses
- avoid_catching_errors
- avoid_classes_with_only_static_members
- avoid_redundant_argument_values
- avoid_returning_null
- sort_pub_dependencies
- sort_constructors_first
- unnecessary_parenthesis
- unnecessary_lambdas
0.0.1 #
- This is the starting point. It is the same as flutter_lints that is the Flutter recommended lint rules but ignoring the generated files of freezed and json_serializable.
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- Also, we exclude the
invalid_annotation_target
rule. That is because it is causing a warning on freezed. This must be removed, after this issue is solved.
errors:
# TODO: Remove invalid_annotation_target after this is solved:
# - https://github.com/rrousselGit/freezed/issues/488
invalid_annotation_target: ignore