From ebde8e920a8ad236d39bfc96cd8e811d1ee01922 Mon Sep 17 00:00:00 2001 From: Tomas Bjerre Date: Wed, 16 Jun 2021 18:45:21 +0200 Subject: [PATCH] feat: MSBuild parser --- README.md | 1 + src/main/java/se/bjurr/violations/main/Runner.java | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 50fc422..a2e2c07 100644 --- a/README.md +++ b/README.md @@ -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` | diff --git a/src/main/java/se/bjurr/violations/main/Runner.java b/src/main/java/se/bjurr/violations/main/Runner.java index 873992b..9c78e22 100644 --- a/src/main/java/se/bjurr/violations/main/Runner.java +++ b/src/main/java/se/bjurr/violations/main/Runner.java @@ -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>> violationsArg = @@ -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"