Skip to content

Commit 67a13a9

Browse files
committed
fix: respect test/analysis_options.yaml
1 parent 2b11b2f commit 67a13a9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ And then include `solid_lints` into your project top-level `analysis_options.yam
2323

2424
```yaml
2525
include: package:solid_lints/analysis_options.yaml
26+
27+
analyzer:
28+
plugins:
29+
- custom_lint
2630
```
31+
> Add `custom_lint` under `analyzer.plugins` to enable lint rules.
32+
2733

2834
Also you can use a specialized rule set designed for Dart tests.
2935
Add an `analysis_options.yaml` file under the `test/` directory, and include the ruleset:

lib/analysis_options.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
analyzer:
2-
plugins:
3-
- custom_lint
42
exclude:
53
# General generated files
64
- '**/*.g.dart'
@@ -59,7 +57,7 @@ custom_lint:
5957
- double_literal_format
6058

6159
- function_lines_of_code:
62-
max_lines: 200
60+
max_lines: 190
6361

6462
- member_ordering:
6563
order:

0 commit comments

Comments
 (0)