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..e0b8558d 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'