Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

/**
* <p>This class provides the {@link #main(String[])} entrypoint into the application,
* and also registers some GraalVM features, allowing the application to run properly
* and also registers some GraalVM features, allowing the application to run properly
* as GraalVM native images.</p>
*
*
* @author Ruud Senden
*/
public class FortifyCLI {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ private record PendingFileWrite(String filename, Path filePath, String content,

private record RollbackFileWrite(String filename, Path filePath, byte[] originalBytes) {}

private record RemediationKey(String fileName, Path filePath,int lineFrom,int lineTo,String comparisonCode){}

private enum SkipReason {
SOURCE_FILE_MISSING("Source file missing"),
SOURCE_FILE_OUTSIDE_SOURCE_DIR("Source file outside source directory"),
Expand Down Expand Up @@ -157,6 +159,7 @@ public RemediationMetric processRemediationXML() {
Set<String> modifiedFiles = new LinkedHashSet<>();
Map<String, Integer> skippedByReason = new LinkedHashMap<>();


// Sanitize and normalize the base source directory path once.
String trimmedSourceDir = sourceCodeDirectory.trim();
if (trimmedSourceDir.length() > 1 &&
Expand Down
Loading