forked from tomaschyly/web_browser_detect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
71 lines (65 loc) · 2.14 KB
/
analysis_options.yaml
File metadata and controls
71 lines (65 loc) · 2.14 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# 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`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:very_good_analysis/analysis_options.yaml
analyzer:
exclude:
- build/**
- "**/*.g.dart"
- "**/*.freezed.dart"
- "**/*.graphql.dart"
- test/.test_coverage.dart
- lib/generated_plugin_registrant.dart
- "**/firebase_options.dart"
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
errors:
invalid_annotation_target: ignore
missing_required_param: error
missing_return: error
argument_type_not_assignable: warning
invalid_assignment: warning
not_iterable_spread: error
return_of_invalid_type_from_closure: warning
not_map_spread: warning
avoid_dynamic_calls: warning
field_initializer_not_assignable: warning
linter:
rules:
public_member_api_docs: false
sort_pub_dependencies: false
avoid_positional_boolean_parameters: false
flutter_style_todos: false
always_put_required_named_parameters_first: false
# don't lint 80 text char limit
lines_longer_than_80_chars: false
# re-enable theses
comment_references: false
# Learn more: https://dcm.dev/docs/individuals/configuration
dart_code_metrics:
extends:
- recommended
metrics:
cyclomatic-complexity: 20
number-of-parameters: 4
maximum-nesting-level: 5
metrics-exclude:
- test/**
- build/**
- "**/*.g.dart"
- "**/*.freezed.dart"
- "**/*.graphql.dart"
- lib/generated_plugin_registrant.dart
- lib/firebase/firebase_options.dart
rules:
prefer-match-file-name: false
prefer-single-widget-per-file: false
# TODO: avoid-unused-instances should not be disabled, but velocityX is not compatible with it
avoid-unused-instances: false