Skip to content
Andrey Lipatkin edited this page Feb 8, 2015 · 5 revisions

What this rule is about?

Rule checks that all project within solution have specified warning level or higher. Exceptions are supported (see example below). More details about warning level can be found here: https://msdn.microsoft.com/en-us/library/13b90fz7.aspx

Why should I enable this rule?

It enforces more strict code policy.

How to enable/configure this rule

<Rules>
...
<WarningLevel enabled="true">
  <MinimalValue>4</MinimalValue>
  <Exception>
    <Project>ProjectThatIsAllowedToHaveWarningLevel_2.csproj</Project>
    <MinimalValue>2</MinimalValue>
  </Exception>
  <Exception>
    <Project>AnotherProjectToFullyExcludeFromChecks.csproj</Project>
  </Exception>
</WarningLevel>
...
</Rules>