use of com.checkmarx.sdk.dto.ast.report.FindingNode in project cx-flow by checkmarx-ltd.
the class ScanUtils method getNodeData.
private static Map<String, String> getNodeData(List<FindingNode> nodes, int nodeIndex) {
// Node data: file/line/object
Map<String, String> nodeData = new HashMap<>();
FindingNode node = nodes.get(nodeIndex);
nodeData.put("file", node.getFileName());
nodeData.put("line", "" + node.getLine());
nodeData.put("column", "" + node.getColumn());
nodeData.put("object", node.getName());
return nodeData;
}
use of com.checkmarx.sdk.dto.ast.report.FindingNode in project cx-flow by checkmarx-ltd.
the class GitHubCommentsASTSteps method addNodes.
private void addNodes(Finding f) {
FindingNode node = new FindingNode();
node.setFileName("file");
node.setLine(10);
node.setName("");
node.setColumn(20);
LinkedList<FindingNode> nodes = new LinkedList<>();
nodes.add(node);
f.setNodes(nodes);
}
use of com.checkmarx.sdk.dto.ast.report.FindingNode in project cx-flow by checkmarx-ltd.
the class Github2AdoSteps method createAstFinding.
private Finding createAstFinding(int index) {
Finding f1 = new Finding();
f1.setDescription(DESCRIPTION_AST + index);
f1.setState(TO_VERIFY);
f1.setQueryName("Query Name " + index);
f1.setSeverity("HIGH");
f1.setCweID(index);
f1.setSimilarityID(index);
f1.setUniqueID(index);
f1.setNodes(Arrays.asList(new FindingNode()));
f1.getNodes().get(0).setFileName(index + "file.java");
return f1;
}
Aggregations