title: How to set action as error for all stylecop rules
body: <p>We are using StyleCop Analyzers in a C# project. (<a href="https://github.com/DotNetAnalyzers/StyleCopAnalyzers" rel="noreferrer">https://github.com/DotNetAnalyzers/StyleCopAnalyzers</a>)
  The problem is how to set all action to "Error" instead of "Warning" about both rules code analysis(CAXXXX) and style analysis(SAXXXX).  Obviously I could list all rules like:</p>
  
  <pre><code>&lt;Rule Id="CAXXXX" Action="Error" /&gt;
  &lt;Rule Id="SAXXXX" Action="Error" /&gt;
  </code></pre>
  
  <p>But that is inconvenient. Is there any other way to set it ?</p>
  
  <p>The project used stylecop and set propertyGroup:</p>
  
  <pre><code>&lt;StyleCopTreatErrorsAsWarnings&gt;false&lt;/StyleCopTreatErrorsAsWarnings&gt;
  </code></pre>
  
  <p>to set action as error. But that does not work in the new tool, stylecop analyzers.</p>