Skip to content

Commit

Permalink
fix #31: skip adding "-text" option
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Feb 18, 2019
1 parent b3328b7 commit 5689fdb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ public SpotBugsSpec build() {
outputArg += ':' + r.getStylesheet().asFile().getAbsolutePath();
}
}
args.add(outputArg);
if ("-text".equals(outputArg)) {
// text mode is default behaviour of SpotBugs, then no need to add argument
} else {
args.add(outputArg);
}
args.add("-outputFile");
args.add(reportsImpl.getFirstEnabled().getDestination().getAbsolutePath());
} else {
Expand Down

0 comments on commit 5689fdb

Please sign in to comment.