File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/org/sonar/samples/python/checks Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1212 <description >Python Custom Rules</description >
1313
1414 <properties >
15- <sonar .python.version>2.0-SNAPSHOT </sonar .python.version> <!-- minimum version is 2.0, Custom Rules API is not available for 1.x -- >
15+ <sonar .python.version>3.15.0.9787 </sonar .python.version>
1616 </properties >
1717 <dependencies >
1818 <dependency >
Original file line number Diff line number Diff line change 2121
2222import org .sonar .check .Priority ;
2323import org .sonar .check .Rule ;
24- import org .sonar .plugins .python .api .PythonCheckTree ;
24+ import org .sonar .plugins .python .api .PythonVisitorCheck ;
2525import org .sonar .plugins .python .api .tree .FunctionDef ;
2626
2727@ Rule (
2828 key = CustomPythonVisitorCheck .RULE_KEY ,
2929 priority = Priority .MINOR ,
3030 name = "Python visitor check" ,
3131 description = "desc" )
32- public class CustomPythonVisitorCheck extends PythonCheckTree {
32+ public class CustomPythonVisitorCheck extends PythonVisitorCheck {
3333
3434 public static final String RULE_KEY = "visitor" ;
3535
You can’t perform that action at this time.
0 commit comments