-
Notifications
You must be signed in to change notification settings - Fork 13
/
analysis_options.yaml
46 lines (42 loc) · 1.44 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
41
42
43
44
45
46
include: package:flutter_lints/flutter.yaml
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
#Official linting recommendations by the Flutter and Dart team.
# It has 2 sets of linters:
# Core (around 30 rules) - https://github.com/dart-lang/lints/blob/main/lib/core.yaml
# Recommended (around 55 rules) - https://github.com/dart-lang/lints/blob/main/lib/recommended.yaml
analyzer:
exclude: [lib/smileid_messages.g.dart]
linter:
rules:
- avoid_empty_else
- avoid_relative_lib_imports
- avoid_shadowing_type_parameters
- avoid_types_as_parameter_names
- await_only_futures
- camel_case_extensions
- camel_case_types
- collection_methods_unrelated_type
- curly_braces_in_flow_control_structures
- depend_on_referenced_packages
- empty_catches
- file_names
- hash_and_equals
- implicit_call_tearoffs
- no_duplicate_case_values
- non_constant_identifier_names
- null_check_on_nullable_type_parameter
- package_prefixed_library_names
- prefer_generic_function_type_aliases
- prefer_is_empty
- prefer_is_not_empty
- prefer_iterable_whereType
- prefer_typing_uninitialized_variables
- provide_deprecation_message
- secure_pubspec_urls
- type_literal_in_constant_pattern
- unnecessary_overrides
- unrelated_type_equality_checks
- use_string_in_part_of_directives
- valid_regexps
- void_checks