Skip to content

[Improvement] Add static code analyzers #2760

@Evangelink

Description

@Evangelink

I would like to suggest to install Microsoft.CodeAnalysis.NetAnalyzers to enhance code quality and also Microsoft.CodeAnalysis.CSharp.CodeStyle for styling/formatting rules.

This would help this project to increase the overall quality but also help to enforce certain code style you would like to see.

Detailed Description

Context

The first package would help to prevent certain code smells and future bugs to sneak into the codebase. The second helps to have a defined code style and could help contributors to "code" the way you prefer.

Possible Implementation

There are a lot of alternative code analyzers but these two are Microsoft actively contributed and are becoming a defacto standard in .NET5+ (can be opt-in/opt-out).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions