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: .github/instructions/rules-implementation.instructions.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ applyTo: "**/*checks*/**/*.java"
3
3
---
4
4
Here is some information about basic rule implementation:
5
5
6
+
- When implementing a new rule, the rule has to be added to [OpenSourceCheckList.java](../../python-checks/src/main/java/org/sonar/python/checks/OpenSourceCheckList.java).
6
7
- The class name ends in `Check`, for example `SleepZeroInAsyncCheck`
7
8
- Annotate the class with @Rule(key = "YourRuleKey"):
8
9
Replace "YourRuleKey" with a unique identifier for your rule (e.g., "S1234").
0 commit comments