|
1 |
| -# Defines a default set of lint rules enforced for |
2 |
| -# projects at Google. For details and rationale, |
3 |
| -# see https://github.com/dart-lang/pedantic#enabled-lints. |
4 |
| -# For lint rules and documentation, see http://dart-lang.github.io/linter/lints. |
5 |
| -linter: |
6 |
| - rules: |
7 |
| - - always_declare_return_types |
8 |
| - - always_require_non_null_named_parameters |
9 |
| - - annotate_overrides |
10 |
| - - avoid_empty_else |
11 |
| - - avoid_init_to_null |
12 |
| - - avoid_null_checks_in_equality_operators |
13 |
| - - avoid_relative_lib_imports |
14 |
| - - avoid_return_types_on_setters |
15 |
| - - avoid_shadowing_type_parameters |
16 |
| - - avoid_types_as_parameter_names |
17 |
| - - camel_case_extensions |
18 |
| - - curly_braces_in_flow_control_structures |
19 |
| - - empty_catches |
20 |
| - - empty_constructor_bodies |
21 |
| - - library_names |
22 |
| - - library_prefixes |
23 |
| - - no_duplicate_case_values |
24 |
| - - null_closures |
25 |
| - - prefer_adjacent_string_concatenation |
26 |
| - - prefer_collection_literals |
27 |
| - - prefer_conditional_assignment |
28 |
| - - prefer_contains |
29 |
| - - prefer_equal_for_default_values |
30 |
| - - prefer_final_fields |
31 |
| - - prefer_for_elements_to_map_fromIterable |
32 |
| - - prefer_generic_function_type_aliases |
33 |
| - - prefer_if_null_operators |
34 |
| - - prefer_is_empty |
35 |
| - - prefer_is_not_empty |
36 |
| - - prefer_iterable_whereType |
37 |
| - - prefer_double_quotes |
38 |
| - - prefer_spread_collections |
39 |
| - - recursive_getters |
40 |
| - - slash_for_doc_comments |
41 |
| - - type_init_formals |
42 |
| - - unnecessary_const |
43 |
| - - unnecessary_new |
44 |
| - - unnecessary_null_in_if_null_operators |
45 |
| - - unnecessary_this |
46 |
| - - unrelated_type_equality_checks |
47 |
| - - use_function_type_syntax_for_parameters |
48 |
| - - use_rethrow_when_possible |
49 |
| - - valid_regexps |
| 1 | +# This file configures the static analysis results for your project (errors, |
| 2 | +# warnings, and lints). |
| 3 | +# |
| 4 | +# This enables the 'recommended' set of lints from `package:lints`. |
| 5 | +# This set helps identify many issues that may lead to problems when running |
| 6 | +# or consuming Dart code, and enforces writing Dart using a single, idiomatic |
| 7 | +# style and format. |
| 8 | +# |
| 9 | +# If you want a smaller set of lints you can change this to specify |
| 10 | +# 'package:lints/core.yaml'. These are just the most critical lints |
| 11 | +# (the recommended set includes the core lints). |
| 12 | +# The core lints are also what is used by pub.dev for scoring packages. |
| 13 | + |
| 14 | +include: package:lints/recommended.yaml |
| 15 | + |
| 16 | +# Uncomment the following section to specify additional rules. |
| 17 | + |
| 18 | +# linter: |
| 19 | +# rules: |
| 20 | +# - camel_case_types |
| 21 | + |
| 22 | +# analyzer: |
| 23 | +# exclude: |
| 24 | +# - path/to/excluded/files/** |
| 25 | + |
| 26 | +# For more information about the core and recommended set of lints, see |
| 27 | +# https://dart.dev/go/core-lints |
| 28 | + |
| 29 | +# For additional information about configuring this file, see |
| 30 | +# https://dart.dev/guides/language/analysis-options |
0 commit comments