From 95588def047220bb479aa56211761b06d4d05f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCttler?= Date: Fri, 24 Apr 2026 07:31:31 +0200 Subject: [PATCH] feat: add flutter linter rules for widget best practices Add use_super_parameters, use_key_in_widget_constructors, and avoid_positional_boolean_parameters to enforce modern Dart idioms and prevent widget state-loss bugs. Co-Authored-By: Claude Sonnet 4.6 --- LATER.md | 14 -------------- analysis_options.yaml | 7 +++++++ 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/LATER.md b/LATER.md index aa01d4f..68d83f8 100644 --- a/LATER.md +++ b/LATER.md @@ -37,12 +37,6 @@ Why is that still needed? We have Stalwart. --- -du -a | sort -rn | head - -Why is the directory so big? 4 GByte? - ---- - After Try Connection, show some matching icon next to the text. --- @@ -61,14 +55,6 @@ Sieve: JMAP, easy. Per IMAP... --- -Flutter best practices? - ---- - -Flutter/Dart Linters? - ---- - scripts/check_coverage.dart reduce files in _excluded. diff --git a/analysis_options.yaml b/analysis_options.yaml index 61b200a..3380e28 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -52,6 +52,13 @@ linter: - discarded_futures - unnecessary_await_in_return + # Widget best practices + - use_super_parameters + - use_key_in_widget_constructors + + # API clarity + - avoid_positional_boolean_parameters + # Imports and style - directives_ordering - curly_braces_in_flow_control_structures