ably / ably-dotnet

.NET, MAUI, Xamarin, Mono and Unity client library SDK for Ably realtime messaging service
https://ably.com/download
Apache License 2.0
45 stars 22 forks source link

Replace static code analysis to use `Microsoft.CodeAnalysis.NetAnalyzers` instead of FxCop #1063

Open marto83 opened 2 years ago

marto83 commented 2 years ago

The FxCop and Microsoft.CodeAnalysis.Analyzers are now deprecated. We should move to using Microsoft.CodeAnalysis.NetAnalyzers and moving the rules into .editorconfig which will help IDEs enforce the rules too. The migration is described in https://docs.microsoft.com/en-us/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers?view=vs-2022

Updating the analyzers might help with https://github.com/ably/ably-dotnet/issues/926

┆Issue is synchronized with this Jira Task by Unito

QuintinWillison commented 1 year ago

Further thoughts from @tomkirbygreen ...

Static Code Analysis for Pull Requests

We should enable GitHub Action hosted static code analysis for all pull requests (on-create and onupdate) utilizing at a minimum the latest Roslyn Analyzers. Ably may want to consider evaluating SonarQube as a cross SDK analysis platform as it provides support for pretty much all our core SDKs.