Skip to content

Commit 2b84712

Browse files
Seppli11sonartech
authored andcommitted
SONARPY-3213 Copilot should add newly created rules to the OpenSourceCheckList (#410)
GitOrigin-RevId: 445e6547d73cebc5d3d53b02b2886ee260d6f319
1 parent 2e7d958 commit 2b84712

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/instructions/rules-implementation.instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ applyTo: "**/*checks*/**/*.java"
33
---
44
Here is some information about basic rule implementation:
55

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).
67
- The class name ends in `Check`, for example `SleepZeroInAsyncCheck`
78
- Annotate the class with @Rule(key = "YourRuleKey"):
89
Replace "YourRuleKey" with a unique identifier for your rule (e.g., "S1234").

0 commit comments

Comments
 (0)