Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDL] Must onboard to FxCop Rosyln Analyzer #69

Open
TimothyMothra opened this issue Dec 20, 2019 · 0 comments
Open

[SDL] Must onboard to FxCop Rosyln Analyzer #69

TimothyMothra opened this issue Dec 20, 2019 · 0 comments

Comments

@TimothyMothra
Copy link
Contributor

TODO

STRETCH GOAL

  • Fail on Warnings
    <Choose>
      <When Condition=" '$(Configuration)' == 'Release' ">
        <PropertyGroup>
          <!-- Microsoft recommends that we disable CodeAnalysis in favor of FxCop Analyzers. aka.ms/fxcopanalyzers -->
          <RunCodeAnalysis>false</RunCodeAnalysis>
          <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
        </PropertyGroup>
      </When>
      <When Condition=" '$(Configuration)' != 'Release' ">
        <PropertyGroup>
          <RunCodeAnalysis>false</RunCodeAnalysis>
          <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
        </PropertyGroup>
      </When>
    </Choose>

For reference: https://github.com/microsoft/ApplicationInsights-dotnet/blob/develop/BASE/src/Microsoft.ApplicationInsights/Microsoft.ApplicationInsights.csproj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant