Skip to content

Commit

Permalink
Merge pull request #27 from osociety/add-lints
Browse files Browse the repository at this point in the history
Add flutter lints
  • Loading branch information
git-elliot authored Nov 16, 2023
2 parents d532d84 + 6ca067d commit e87f0f2
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
# Defines a default set of lint rules enforced for
# projects at Google. For details and rationale,
# see https://github.com/dart-lang/pedantic#enabled-lints.
# include: package:pedantic/analysis_options.yaml

# lint analysis
include: package:flutter_lints/flutter.yaml

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

analyzer:
errors:
missing_required_param: error
missing_return: error
must_be_immutable: error
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- "**/*.config.dart"
- "**/*.pb.dart"
- "**/*.pbenum.dart"
- "**/*.pbgrpc.dart"
- "**/*.pbjson.dart"
- "**/*.gr.dart"
- "**/*.md"
- "example/**"

linter:
rules:
# Use parameter order as in json response
always_put_required_named_parameters_first: true

avoid_classes_with_only_static_members: false

sort_constructors_first: true

avoid_relative_lib_imports: false

0 comments on commit e87f0f2

Please sign in to comment.