Skip to content

Enable code analysis with roslyn analyzers  #176

Open
@balanikas

Description

@balanikas

Adding and enabling analyzers in the foundation solution produces warnings and recommendation that increase awareness of code issues and therefore code quality.

Add these 2 analyzers:
https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers (strongly recommended) which is a collection of recommended analyzers by Microsoft.
https://www.nuget.org/packages/microsoft.visualstudio.threading.analyzers (secondary but useful) which suggests some threading related good practices.

The severity of issues in both packages can be configured but i recommend that initially the severity level is set to informational or warning, to not be obtrusive.

Add them either per project as needed, or via global configuration (i.e. analyzers.props)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions