Skip to content

Commit

Permalink
Exclude iCloud and Dropbox on MacOS by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
xeraph committed Feb 6, 2022
1 parent 96fb5af commit 09c691a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/com/logpresso/scanner/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,13 @@ else if (!reportFile.isDirectory())
}
}

// exclude iCloud and Dropbox by default
String osName = System.getProperty("os.name");
if (osName != null && osName.toLowerCase().startsWith("mac")) {
c.excludePatterns.add("/Dropbox");
c.excludePatterns.add("/Library/Mobile Documents");
}

// check conflict between --report-csv and --report-json
if (c.reportCsv && c.reportJson && c.reportPath != null)
throw new IllegalArgumentException(
Expand Down

0 comments on commit 09c691a

Please sign in to comment.