xt0rted / dotnet-format-problem-matcher

A GitHub Action that registers a problem matcher for dotnet-format's report output
MIT License
11 stars 6 forks source link

Support new console format starting with v5.1.225507 #206

Open xt0rted opened 3 years ago

xt0rted commented 3 years ago

In v5.1.225507 the Diagnostic Id and error/warning level was added to the report & console output, as well as fully qualified file paths. These changes break the regex currently being used.

xt0rted commented 3 years ago

Current proposed regex:

/^\s*(.*)\((\d+),(\d+)\):\s+(.*)\s+(.*):\s+(.*)\s+\[(.*)\]$/gm

https://regex101.com/r/rDejc6/1