File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,13 @@ And then include `solid_lints` into your project top-level `analysis_options.yam
23
23
24
24
` ` ` yaml
25
25
include: package:solid_lints/analysis_options.yaml
26
+
27
+ analyzer:
28
+ plugins:
29
+ - custom_lint
26
30
` ` `
31
+ > Add `custom_lint` under `analyzer.plugins` to enable lint rules.
32
+
27
33
28
34
Also you can use a specialized rule set designed for Dart tests.
29
35
Add an `analysis_options.yaml` file under the `test/` directory, and include the ruleset :
Original file line number Diff line number Diff line change 1
1
analyzer :
2
- plugins :
3
- - custom_lint
4
2
exclude :
5
3
# General generated files
6
4
- ' **/*.g.dart'
@@ -59,7 +57,7 @@ custom_lint:
59
57
- double_literal_format
60
58
61
59
- function_lines_of_code :
62
- max_lines : 200
60
+ max_lines : 190
63
61
64
62
- member_ordering :
65
63
order :
You can’t perform that action at this time.
0 commit comments