From 8bd4d43f1329f43e6b6240af63a8db79e0b86930 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 18 Dec 2025 11:07:14 +0100 Subject: [PATCH 1/3] feat: Upgrade dcm to 1.34.0 and add new rules --- lib/analysis_options.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index 7e9c1e0..aa69b72 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -245,6 +245,16 @@ dart_code_metrics: - '**/*.graphql.dart' rules: + - pass-optional-argument: + entries: + - name: Icon + args: + - semanticsLabel + - avoid-immediately-invoked-functions + - avoid-complex-conditions: + threshold: 10 + - avoid-assigning-notifiers + - use-ref-and-state-synchronously - prefer-returning-shorthands - prefer-shorthands-with-static-fields - prefer-shorthands-with-enums From c0e6331fe62d9b07e264d9f711a8ddabb79ed19c Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 18 Dec 2025 11:07:26 +0100 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=94=96=20(1.10.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 e8ec600..72373d4 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.9.0 +version: 1.10.0 homepage: https://github.com/bamlab/theodo_analysis repository: https://github.com/bamlab/theodo_analysis From 0d8a7e3c245cf0085fa732ace83e53909512b1d7 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 18 Dec 2025 11:07:43 +0100 Subject: [PATCH 3/3] docs: update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe7ac51..8b47605 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the `theodo_analysis` package will be documented in this file. +## 1.10.0 + +- feat: Upgrade dcm to 1.34.0 and add news rules + ## 1.9.0 - feat: Upgrade dcm to 1.33.0 and add news rules