增加友好注释

wuhaoyang
Guo XIn 11 months ago
parent 8d3f922056
commit c882780adf
  1. 5
      sonar-keyware-plugins-java/src/main/java/com/keyware/sonar/java/rules/checkers/ABCVarNameChecker.java

@ -25,6 +25,11 @@ public class ABCVarNameChecker extends SubscriptionVisitor {
@Override @Override
public List<Tree.Kind> nodesToVisit() { public List<Tree.Kind> nodesToVisit() {
/**
* Tree.Kind.METHOD方法节点
* Tree.Kind.BLOCK方法的代码块节点
* Tree.Kind.METHOD_INVOCATION 方法的调用节点
*/
return Collections.singletonList( return Collections.singletonList(
Tree.Kind.VARIABLE Tree.Kind.VARIABLE
); );

Loading…
Cancel
Save