From dc6babc739b6a49a049303f3023423a020650a3f Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 20 Nov 2025 14:35:02 +0100 Subject: [PATCH 1/3] feat: add use_null_aware_elements linter rule --- lib/analysis_options.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index 1bfca58..f2ea203 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -205,6 +205,7 @@ linter: - use_key_in_widget_constructors - use_late_for_private_fields_and_variables - use_named_constants + - use_null_aware_elements - use_raw_strings - use_rethrow_when_possible - use_setters_to_change_properties From e4ca806155010b3555f9e6114b233356cdd3740f Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 20 Nov 2025 14:37:16 +0100 Subject: [PATCH 2/3] feat: Upgrade dcm to 1.33.0 and add new rules --- lib/analysis_options.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index f2ea203..7e9c1e0 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -245,6 +245,14 @@ dart_code_metrics: - '**/*.graphql.dart' rules: + - prefer-returning-shorthands + - prefer-shorthands-with-static-fields + - prefer-shorthands-with-enums + - avoid-nested-shorthands + - prefer-shorthands-with-constructors + - newline-before-constructor + - avoid-always-null-parameters + - avoid-unassigned-fields - avoid-unremovable-callbacks-in-listeners - avoid-constant-switches - avoid-constant-conditions From 2f075c71676a689a36810a2f21805d27e9221e6a Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 20 Nov 2025 14:37:38 +0100 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=96=20(1.9.0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 76c735a..e8ec600 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.8.0 +version: 1.9.0 homepage: https://github.com/bamlab/theodo_analysis repository: https://github.com/bamlab/theodo_analysis