Reputation: 1393
We're trying to set up Jenkins with the latest version of StyleCop.
Our existing Jenkins setup invokes StyleCop via StyleCopCmd via nant, but StyleCopCmd seems to be increasingly out-of-date, and unmaintained; and I’d rather cut it out. So best supported solution seems to be to invoke StyleCop from msbuild.
Our solution consists of multiple projects, but the Jenkins Violations plugin expects a single stylecop.violations.xml
file, so the widely documented solution of importing StyleCop.targets and invoking it from each 'csproj' file seems like it won’t work (because this would produce multiple violations files, which the Jenkins plugin can't cope with).
SO:
Any help gratefully received.
Upvotes: 4
Views: 7068
Reputation: 10582
Basically, use the XML FileName Pattern **/*/StyleCopViolations.xml
.
Upvotes: 5