diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2f34155..140a8f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,16 +47,6 @@ test: cobertura: - coverage.xml -code_quality: - stage: test - script: - - dart run dart_code_metrics:metrics analyze lib -r gitlab > quality.json - artifacts: - when: always - reports: - codequality: - - quality.json - code_navigation: stage: test allow_failure: true diff --git a/analysis_options.yaml b/analysis_options.yaml index 2a7756d..a3aca5b 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -75,27 +75,3 @@ linter: - use_if_null_to_convert_nulls_to_bools - use_is_even_rather_than_modulo - depend_on_referenced_packages - - -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 diff --git a/pubspec.yaml b/pubspec.yaml index 42426ab..88a4011 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,6 +7,5 @@ environment: sdk: '>=2.17.0 <3.0.0' dev_dependencies: - dart_code_metrics: ^4.15.1 lints: ^2.0.0 test: ^1.21.1