mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
54 lines
1.2 KiB
YAML
54 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
|
|
- require_trailing_commas
|
|
|
|
analyzer:
|
|
errors:
|
|
todo: ignore
|
|
use_build_context_synchronously: 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
|