diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b47605..94ce5c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to the `theodo_analysis` package will be documented in this file. +## 1.11.0 + +- feat: Remove the "prefer-returning-shorthands" rule +- feat: Support for dcm 1.35.0 (no new rules, no actual change) + ## 1.10.0 - feat: Upgrade dcm to 1.34.0 and add news rules diff --git a/example/lib/example.dart b/example/lib/example.dart index cfd520d..994e5a2 100644 --- a/example/lib/example.dart +++ b/example/lib/example.dart @@ -4,7 +4,7 @@ void main() { /// The following line would normally show a lint warning /// but we can disable the lint rule for this line using the following syntax. - var greeting = 'hello world'; // ignore: prefer_final_locals + var greeting = 'hello world'; // ignore: prefer_final_locals // <- testing /// The following line would normally show a lint warning /// but we can disable the lint rule for this file using `ignore_for_file`. diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index aa69b72..add5d7d 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -13,11 +13,11 @@ analyzer: inference_failure_on_instance_creation: ignore exclude: - - 'build/**' - - '**/*.g.dart' - - '**/*.freezed.dart' - - '**/*gicons.dart' - - '**/*.graphql.dart' + - "build/**" + - "**/*.g.dart" + - "**/*.freezed.dart" + - "**/*gicons.dart" + - "**/*.graphql.dart" linter: rules: @@ -28,7 +28,6 @@ linter: - always_put_required_named_parameters_first - always_use_package_imports - annotate_overrides - - avoid_as - avoid_bool_literals_in_conditional_expressions - avoid_catching_errors - avoid_double_and_int_checks @@ -237,12 +236,12 @@ dart_code_metrics: maximum-nesting-level: 5 metrics-exclude: - - '**/*gicons.dart' - - '**/*.graphql.dart' + - "**/*gicons.dart" + - "**/*.graphql.dart" rules-exclude: - - '**/*gicons.dart' - - '**/*.graphql.dart' + - "**/*gicons.dart" + - "**/*.graphql.dart" rules: - pass-optional-argument: @@ -255,7 +254,6 @@ dart_code_metrics: threshold: 10 - avoid-assigning-notifiers - use-ref-and-state-synchronously - - prefer-returning-shorthands - prefer-shorthands-with-static-fields - prefer-shorthands-with-enums - avoid-nested-shorthands diff --git a/pubspec.yaml b/pubspec.yaml index 72373d4..b94af79 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: theodo_analysis description: Lint and dcm rules for Dart and Flutter used internally at Theodo Apps. -version: 1.10.0 +version: 1.11.0 homepage: https://github.com/bamlab/theodo_analysis repository: https://github.com/bamlab/theodo_analysis