microsoft / FeatureManagement-Dotnet

Microsoft.FeatureManagement provides standardized APIs for enabling feature flags within applications. Utilize this library to secure a consistent experience when developing applications that use patterns such as beta access, rollout, dark deployments, and more.
MIT License
1.02k stars 111 forks source link

Add linting rule #472

Closed zhiyuanliang-ms closed 1 month ago

zhiyuanliang-ms commented 1 month ago

Why this PR?

436

Visible changes

Linting rules are defined in .editorconfig file.

property is added to the csproj file and then all code format issues will be reported during build process. In the editorconfig file, it sets the severity of IDE0055 and some other formating rules to error. This will make build fail if the formating rule is not followed.
zhiyuanliang-ms commented 1 month ago

/AzurePipeline run

azure-pipelines[bot] commented 1 month ago
Azure Pipelines successfully started running 1 pipeline(s).
zhiyuanliang-ms commented 1 month ago

@jimmyca15 @rossgrambo Could you approve this PR so that I can merge main branch to preview branch?