diff --git a/analysis_options.yaml b/analysis_options.yaml index a5744c1..28e868b 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -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