Skip to content

[SDL] Must onboard to FxCop Rosyln Analyzer #69

Open
@TimothyMothra

Description

@TimothyMothra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions