From 67a13a9b6b5b5223dd08a1b2510c62fcc53cf9ae Mon Sep 17 00:00:00 2001 From: xJac0b Date: Fri, 6 Jun 2025 10:48:46 +0200 Subject: [PATCH 1/2] fix: respect test/analysis_options.yaml --- README.md | 6 ++++++ lib/analysis_options.yaml | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 02d62c85..522a2095 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,13 @@ And then include `solid_lints` into your project top-level `analysis_options.yam ```yaml include: package:solid_lints/analysis_options.yaml + +analyzer: + plugins: + - custom_lint ``` +> Add `custom_lint` under `analyzer.plugins` to enable lint rules. + Also you can use a specialized rule set designed for Dart tests. Add an `analysis_options.yaml` file under the `test/` directory, and include the ruleset: diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index 78d35b72..193ee4ba 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -1,6 +1,4 @@ analyzer: - plugins: - - custom_lint exclude: # General generated files - '**/*.g.dart' @@ -59,7 +57,7 @@ custom_lint: - double_literal_format - function_lines_of_code: - max_lines: 200 + max_lines: 190 - member_ordering: order: From 5ce3bdb350b588ef79b502228b32b92f6df8adc4 Mon Sep 17 00:00:00 2001 From: xJac0b Date: Fri, 6 Jun 2025 10:52:20 +0200 Subject: [PATCH 2/2] fix: Revert single number change --- lib/analysis_options.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index 193ee4ba..e0b8558d 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -57,7 +57,7 @@ custom_lint: - double_literal_format - function_lines_of_code: - max_lines: 190 + max_lines: 200 - member_ordering: order: