diff --git a/CHANGELOG.md b/CHANGELOG.md index 01342df..facaeb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,14 @@ All notable changes to the `theodo_analysis` package will be documented in this file. +## 1.7.0 + +- feat: Upgrade dcm to 1.32.0 and add news rules + ## 1.6.0 - feat: Upgrade dcm to 1.31.0 and add news rules - ## 1.5.0 - feat: Enable DCM rules for test folder diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 0000000..adb61e0 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1 @@ +include: package:theodo_analysis/analysis_options.yaml diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index d3c742c..c191f5d 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -250,6 +250,12 @@ dart_code_metrics: - '**/*.graphql.dart' rules: + - avoid-unremovable-callbacks-in-listeners + - avoid-constant-switches + - avoid-constant-conditions + - match-base-class-default-value + - avoid-unused-local-variable + - prefer-equatable-mixin - avoid-unnecessary-local-variable - avoid-unnecessary-late-fields - avoid-unnecessary-nullable-parameters @@ -262,7 +268,6 @@ dart_code_metrics: - avoid-public-notifier-properties - avoid-ref-inside-state-dispose - avoid-nullable-async-value-pattern - - avoid-unnecessary-null-checks - prefer-pushing-conditional-expressions - avoid-suspicious-global-reference - pass-correct-accepted-type @@ -271,7 +276,6 @@ dart_code_metrics: - prefer-specifying-future-value-type - avoid-stream-tostring - prefer-null-aware-elements - - prefer-null-aware-elements - avoid-unnecessary-null-aware-elements - prefer-single-setstate - avoid-mounted-in-setstate @@ -510,3 +514,9 @@ dart_code_metrics: ignored-invocations: - print - debugPrint + + pubspec-rules: + - dependencies-ordering + - newline-before-pubspec-entry + - pubspec-ordering + - prefer-correct-topics diff --git a/pubspec.yaml b/pubspec.yaml index 6f9d4fd..083f869 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,8 @@ name: theodo_analysis description: Lint and dcm rules for Dart and Flutter used internally at Theodo Apps. +version: 1.7.0 homepage: https://github.com/bamlab/theodo_analysis repository: https://github.com/bamlab/theodo_analysis -version: 1.6.0 environment: sdk: '>=3.0.0 <4.0.0'