mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-09 13:39:30 +01:00
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
include: package:flutter_lints/flutter.yaml
|
|
|
|
linter:
|
|
rules:
|
|
- camel_case_types
|
|
- avoid_print
|
|
- constant_identifier_names
|
|
- prefer_final_locals
|
|
- prefer_final_in_for_each
|
|
- sort_pub_dependencies
|
|
|
|
analyzer:
|
|
errors:
|
|
todo: ignore
|
|
import_of_legacy_library_into_null_safe: ignore
|
|
exclude:
|
|
- lib/generated_plugin_registrant.dart
|
|
- lib/l10n/*.dart
|
|
|
|
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
|