Skip to content

Commit

Permalink
feat: MSBuild parser
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Jun 16, 2021
1 parent d61dbd4 commit ebde8e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
| [_KotlinGradle_](https://github.com/JetBrains/kotlin) | `KOTLINGRADLE` | Output from Kotlin Gradle Plugin.
| [_KotlinMaven_](https://github.com/JetBrains/kotlin) | `KOTLINMAVEN` | Output from Kotlin Maven Plugin.
| [_Lint_]() | `LINT` | A common XML format, used by different linters.
| [_MSBuildLog_](https://docs.microsoft.com/en-us/visualstudio/msbuild/obtaining-build-logs-with-msbuild?view=vs-2019) | `MSBULDLOG` | With `-fileLogger` use `.*msbuild\\.log$` as pattern or `-fl -flp:logfile=MyProjectOutput.log;verbosity=diagnostic` for a custom output filename
| [_MSCpp_](https://visualstudio.microsoft.com/vs/features/cplusplus/) | `MSCPP` |
| [_Mccabe_](https://pypi.python.org/pypi/mccabe) | `FLAKE8` |
| [_MyPy_](https://pypi.python.org/pypi/mypy-lang) | `MYPY` |
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/se/bjurr/violations/main/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public class Runner {
public void main(final String args[]) throws Exception {
final Argument<?> helpArgument = helpArgument("-h", "--help");
final String parsersString =
Arrays.asList(Parser.values())
.stream()
Arrays.asList(Parser.values()).stream()
.map((it) -> it.toString())
.collect(Collectors.joining(", "));
final Argument<List<List<String>>> violationsArg =
Expand Down Expand Up @@ -163,8 +162,7 @@ public void main(final String args[]) throws Exception {
if (this.showDebugInfo) {
System.out.println(
"Given parameters:\n"
+ Arrays.asList(args)
.stream()
+ Arrays.asList(args).stream()
.map((it) -> it.toString())
.collect(Collectors.joining(", "))
+ "\n\nParsed parameters:\n"
Expand Down

0 comments on commit ebde8e9

Please sign in to comment.