You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More graceful failure when expected files are missing in Semgrep (#436)
Although some use cases are very strict about SARIF-referenced files
being present, others aren't (like testing) -- we should handle this
more gracefully.
Copy file name to clipboardExpand all lines: plugins/codemodder-plugin-semgrep/src/main/java/io/codemodder/providers/sarif/semgrep/SingleSemgrepRuleSarif.java
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,11 @@
5
5
importcom.contrastsecurity.sarif.SarifSchema210;
6
6
importio.codemodder.RuleSarif;
7
7
importjava.io.IOException;
8
-
importjava.io.UncheckedIOException;
9
8
importjava.nio.file.Files;
10
9
importjava.nio.file.Path;
11
10
importjava.util.*;
11
+
importorg.slf4j.Logger;
12
+
importorg.slf4j.LoggerFactory;
12
13
13
14
/**
14
15
* {@inheritDoc}
@@ -77,8 +78,10 @@ public List<Result> getResultsByLocationPath(final Path path) {
0 commit comments