fluffychat/analysis_options.yaml

52 lines
1.2 KiB
YAML
Raw Normal View History

2021-10-14 16:09:30 +00:00
include: package:flutter_lints/flutter.yaml
2020-01-02 18:00:12 +00:00
linter:
rules:
2020-01-02 21:31:39 +00:00
- camel_case_types
2020-01-26 11:17:54 +00:00
- avoid_print
2021-04-14 08:37:15 +00:00
- constant_identifier_names
- prefer_final_locals
- prefer_final_in_for_each
2021-04-30 14:57:04 +00:00
- sort_pub_dependencies
2020-01-02 18:00:12 +00:00
analyzer:
errors:
todo: ignore
exclude:
2020-05-13 13:58:59 +00:00
- lib/generated_plugin_registrant.dart
2021-04-30 14:57:04 +00:00
- lib/l10n/*.dart
2021-10-16 07:59:38 +00: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