Skip to content

Commit

Permalink
skip rules that contain errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Timbals committed Jan 11, 2024
1 parent 255e848 commit fc41763
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,15 @@ public List<CrySLRule> readRulesFromFiles(List<File> files) throws CryptoAnalysi
if (!(resource instanceof LazyLinkingResource)) {
continue;
}

CrySLRule rule = createRuleFromResource(resource);

if (!ruleMap.containsKey(rule.getClassName())) {
ruleMap.put(rule.getClassName(), rule);

try {
CrySLRule rule = createRuleFromResource(resource);

if (!ruleMap.containsKey(rule.getClassName())) {
ruleMap.put(rule.getClassName(), rule);
}
} catch (CryptoAnalysisException e) {
LOGGER.error(e.toString());
}
}

Expand Down

0 comments on commit fc41763

Please sign in to comment.