修改:添加判断方式

wuhaoyang
RenFengJiang 10 months ago
parent 77cedae6b1
commit 536e299ef8
  1. 6
      sonar-keyware-plugins-cxx/src/main/java/com/keyware/sonar/cxx/rules/checkers/SQLVerifyChecker.java

@ -76,6 +76,12 @@ public class SQLVerifyChecker extends SquidCheck<Grammar> {
for (AstNode expr:astNodeList) {
lists.add(expr.getToken().getValue());
}
if(astNodeList.size() == 0){
List<AstNode> descendants = astNode.getDescendants(CxxGrammarImpl.condition);
for (AstNode desc:descendants) {
lists.add(desc.getToken().getValue());
}
}
}
}
//获取表达是数据信息

Loading…
Cancel
Save