-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
40 lines (36 loc) · 1.25 KB
/
analysis_options.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
include: package:lint/strict.yaml
analyzer:
exclude:
- /**/config/config_values.dart
- /**/common/firebase_options.dart
- /**/common/firebase_options.prod.dart
- /**/generated_plugin_registrant.dart
- /**/generated/**
- /**/__generated/**
- /**/*.freezed.dart
- /**/*.gr.dart
- /**/*.g.dart
- /**/main.widgetbook.dart
- /**/*.gql.dart
- /**/*.gql.g.dart
language:
strict-casts: true
strict-raw-types: true
errors:
unused_import: warning
unnecessary_import: warning
invalid_annotation_target: ignore
# https://stackoverflow.com/questions/72423594/how-to-apply-the-same-analysis-options-yaml-to-a-set-of-sibling-flutter-projec
# this is ignored because we decided not to have to root folder as an actual "dart project" with dependencies and all that.
include_file_not_found: ignore
no_leading_underscores_for_local_identifiers: ignore
linter:
rules:
depend_on_referenced_packages: false
avoid_classes_with_only_static_members: false
sort_constructors_first: true
prefer_single_quotes: true
avoid_bool_literals_in_conditional_expressions: false
avoid_positional_boolean_parameters: false
prefer_relative_imports: false
always_use_package_imports: true