From d2b401fc668a5c82acd42255f2bde64689bad0b9 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Fri, 17 May 2024 16:37:39 +0200 Subject: [PATCH] chore: remove unused dart_code_metrics configuration --- analysis_options.yaml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index e28cfad5..3714436f 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -22,26 +22,3 @@ linter: close_sinks: true cascade_invocations: true only_throw_errors: true - -dart_code_metrics: - anti-patterns: - - long-method - - long-parameter-list - metrics: - cyclomatic-complexity: 20 - maximum-nesting-level: 5 - number-of-parameters: 4 - source-lines-of-code: 50 - metrics-exclude: - - test/** - rules: - - avoid-nested-conditional-expressions: - - acceptable-level: 2 - - avoid-throw-in-catch-block # throwWithStackTrace should be used instead - - avoid-unnecessary-type-casts - - no-boolean-literal-compare - - no-empty-block - - no-equal-then-else - - no-magic-number: - - allowed: [3.14, -1, 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 100] - - prefer-correct-type-name