Use of GlobalSuppressions.cs i StyleCop Runner in Azure Pipeline
0
I have a c# solution that adhere to our custom StyleCop rules as specified in stylecop.json and GlobalSuppresions.cs . Both are located in the solution root and linked each project via their .csproj files. I have an Azure DevOps pipeline set up to build the entire solution and also run StyleCop on it using the runner. However, although our stylecop.json settings are respected by the runner, the GlobalSuppresions.cs ones aren't. In the runner there is an option to specify a path for a settings file, but none for GlobalSuppresions.cs . The question is: Is there a way to make the runner understand GlobalSuppressions.cs ? Or is there a way to merge our rules into stylecop.json ?
c# azure azure-devops azure-pipelines stylecop
...