Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit f871dc9

Browse files
authored
Update CONTRIBUTING.md
1 parent 7c46334 commit f871dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To create a new rule:
77
1. Choose a rule name according to our naming guide or take it from existing issue for the rule.
88
2. Add an `.md` file with the rule documentation to `doc/rules`. If the rule supports configuration add ![Configurable](https://img.shields.io/badge/-configurable-informational) badge, if it has auto-fixes add ![Has auto-fix](https://img.shields.io/badge/-has%20auto--fix-success) badge
99
3. Create a rule `.dart` file under `lib/src/analyzers/lint_analyzer/rules/rules_list`.
10-
4. Create a class that extends `Rule`. Add a public field with rule id, documentation url.
10+
4. Create a class that extends an abstract rule class depending on your rule type. Available classes: `FlutterRule`, `CommonRule`, `IntlRule`, `AngularRule`. Add a public field with rule id, documentation url.
1111

1212
The class constructor should take `Map<String, Object> config` parameter which represents config that is passed to the rule from the `analysis_options.yaml`. Example:
1313

0 commit comments

Comments
 (0)