|
| 1 | +include: package:pedantic/analysis_options.yaml |
| 2 | + |
| 3 | +linter: |
| 4 | + rules: |
| 5 | + - always_declare_return_types |
| 6 | + - avoid_empty_else |
| 7 | + - await_only_futures |
| 8 | + - avoid_returning_null_for_void |
| 9 | + - camel_case_extensions |
| 10 | + - camel_case_types |
| 11 | + - cancel_subscriptions |
| 12 | + - directives_ordering |
| 13 | + - flutter_style_todos |
| 14 | + - sort_constructors_first |
| 15 | + - sort_unnamed_constructors_first |
| 16 | + - sort_pub_dependencies |
| 17 | + - type_init_formals |
| 18 | + - unnecessary_brace_in_string_interps |
| 19 | + - unnecessary_const |
| 20 | + - unnecessary_new |
| 21 | + - unnecessary_getters_setters |
| 22 | + - unnecessary_null_aware_assignments |
| 23 | + - unnecessary_null_in_if_null_operators |
| 24 | + - unnecessary_overrides |
| 25 | + - unnecessary_parenthesis |
| 26 | + - unnecessary_statements |
| 27 | + - unnecessary_string_interpolations |
| 28 | + - unnecessary_this |
| 29 | + - unrelated_type_equality_checks |
| 30 | + - use_rethrow_when_possible |
| 31 | + - valid_regexps |
| 32 | + - void_checks |
| 33 | + |
| 34 | +analyzer: |
| 35 | + errors: |
| 36 | + # treat missing required parameters as a warning (not a hint) |
| 37 | + missing_required_param: warning |
| 38 | + # treat missing returns as a warning (not a hint) |
| 39 | + missing_return: warning |
| 40 | + # allow having TODOs in the code |
| 41 | + todo: ignore |
| 42 | + # allow self-reference to deprecated members (we do this because otherwise we have |
| 43 | + # to annotate every member in every test, assert, etc, when we deprecate something) |
| 44 | + deprecated_member_use_from_same_package: ignore |
| 45 | + # Ignore analyzer hints for updating pubspecs when using Future or |
| 46 | + # Stream and not importing dart:async |
| 47 | + # Please see https://github.com/flutter/flutter/pull/24528 for details. |
| 48 | + sdk_version_async_exported_from_core: ignore |
0 commit comments