You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/pgt_analyser/CONTRIBUTING.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,9 +54,11 @@ Let's say we want to create a new **lint** rule called `useMyRuleName`, follow t
54
54
1. Run the command
55
55
56
56
```shell
57
-
just new-lintrule safety useMyRuleName
57
+
just new-lintrule safety useMyRuleName (<severity>)
58
58
```
59
59
60
+
Where severity is optional but can be "info", "warn", or "error" (default).
61
+
60
62
The script will generate a bunch of files inside the `pgt_analyser` crate.
61
63
Among the other files, you'll find a file called `use_my_new_rule_name.rs` inside the `pgt_analyser/lib/src/lint/safety` folder. You'll implement your rule in this file.
0 commit comments