Skip to content

Commit

Permalink
RAT-369: Issue errors but do not fail the build in order to work incr…
Browse files Browse the repository at this point in the history
…ementally
  • Loading branch information
ottlinger committed Apr 21, 2024
1 parent 7fee5e2 commit 191b119
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void loadFile(final Log log, final File scmIgnore) {
if (scmIgnore != null && scmIgnore.exists() && scmIgnore.isFile()) {
log.debug("Parsing exclusions from " + scmIgnore);

try (BufferedReader reader = new BufferedReader(new FileReader(scmIgnore, StandardCharsets.UTF_8))) {
try (BufferedReader reader = new BufferedReader(new FileReader(scmIgnore))) {
String line;
while ((line = reader.readLine()) != null) {
if (!isComment(line)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public LicenseSetFactory.LicenseFilter internalFilter() {
private class Logger implements Log {

private void write(int level, String msg) {
try (PrintWriter pw = new PrintWriter(new LogOutputStream(Report.this, level), false, StandardCharsets.UTF_8))
try (PrintWriter pw = new PrintWriter(new LogOutputStream(Report.this, level)))
{
pw.write(msg);
}
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ agnostic home for software distribution comprehension and audit tools.
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.8.4.0</version>
<configuration>
<!-- TODO remove after RAT-369 is done -->
<failOnError>false</failOnError>
<!--includeFilterFile>spotbugs-security-include.xml</includeFilterFile>
<excludeFilterFile>spotbugs-security-exclude.xml</excludeFilterFile-->
<plugins>
Expand Down

0 comments on commit 191b119

Please sign in to comment.