fluffychat/analysis_options.yaml

53 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2021-10-14 18:09:30 +02:00
include: package:flutter_lints/flutter.yaml
2020-01-02 19:00:12 +01:00
linter:
rules:
2020-01-02 22:31:39 +01:00
- camel_case_types
2020-01-26 12:17:54 +01:00
- avoid_print
2021-04-14 10:37:15 +02:00
- constant_identifier_names
- prefer_final_locals
- prefer_final_in_for_each
2021-04-30 16:57:04 +02:00
- sort_pub_dependencies
2020-01-02 19:00:12 +01:00
analyzer:
errors:
todo: ignore
import_of_legacy_library_into_null_safe: ignore
2020-01-02 19:00:12 +01:00
exclude:
2020-05-13 15:58:59 +02:00
- lib/generated_plugin_registrant.dart
2021-04-30 16:57:04 +02:00
- lib/l10n/*.dart
2021-10-16 09:59:38 +02:00
dart_code_metrics:
metrics:
cyclomatic-complexity: 20
number-of-arguments: 4
maximum-nesting-level: 5
source-lines-of-code: 50
maintainability-index: 40
rules:
- no-boolean-literal-compare
- no-empty-block
- prefer-conditional-expressions
- no-equal-then-else
- no-magic-number:
severity: style
- avoid-late-keyword:
severity: style
- avoid-non-null-assertion:
severity: style
- avoid-unused-parameters
- binary-expression-operand-order
- avoid-unnecessary-setstate
- avoid-wrapping-in-padding
- prefer-const-border-radius
- prefer-single-widget-per-file:
ignore-private-widgets: true
- prefer-extracting-callbacks
metrics-exclude:
- test/**
rules-exclude:
- test/**
anti-patterns:
- long-method
- long-parameter-list