-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathanalysis_options.yaml
40 lines (36 loc) · 1.14 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
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
include: package:total_lints/app.yaml
linter:
rules:
prefer_relative_imports: true
avoid_relative_lib_imports: true
prefer_single_quotes: false
prefer_double_quotes: true # I hate single quotes
use_setters_to_change_properties: false
lines_longer_than_80_chars: false # I'd love to be able to set here some other number, but 80 is too low
sort_pub_dependencies: false
analyzer:
errors:
invalid_annotation_target: ignore
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- "**/*.mocks.dart"
- "**/*.gform.dart"
- "**/*.tailor.dart"
- "**/*.gen.dart"
- "**/*.graphql.dart"
- "**/*.icons.dart"
- "**/firebase_options.dart"
plugins:
- custom_lint
custom_lint:
enable_all_lint_rules: false
rules:
# this works weirdly
provider_dependencies: false