C
C#4w ago
eXpl0it3r

State of Analyzers? StyleCop and/or ...?

I tried to find some information on what's the current most recommended set of analyzers, but ran into lots of different recommendation. While StyleCop hasn't really been updated in a long time, it still seems quite popular. What would be considered the "best" set of analyzers?
21 Replies
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
sibber
sibber4w ago
its still being updated its just stuck on beta all the time
sibber
sibber4w ago
.net 9 updated some things regarding code analysis which lets you actually enforce all of the default ones on build https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview?tabs=net-9
Code analysis in .NET
Learn about source code analysis in the .NET SDK.
sibber
sibber4w ago
but rider still doesnt support this newer editor config format so stylecop is still the most reliable
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
eXpl0it3r
eXpl0it3rOP4w ago
Oh, didn't get any notifications 😅 Yes
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
eXpl0it3r
eXpl0it3rOP4w ago
It's so odd/annoying that they aren't release just a new version and everyone just accepts the beta tag. Not like anyone is going to sue them if it has an issue in "stable" version 🤔 Isn't one of the issues though that it only supports up to C# 8 So it has no idea about newer language features?
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
eXpl0it3r
eXpl0it3rOP4w ago
Does the beta support the newer language features? Kind of unclear from the repo
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
eXpl0it3r
eXpl0it3rOP4w ago
So I guess the point is, there isn't something that matches StyleCop in power, that's why people still use/recommend it, despite it not being able to support the latest language version and having a forever beta stage?
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
eXpl0it3r
eXpl0it3rOP4w ago
I get that honestly
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
eXpl0it3r
eXpl0it3rOP4w ago
I do my fair share of OSS dev 😄
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
eXpl0it3r
eXpl0it3rOP4w ago
I just find that the analyzer situation is in a very confusing state and it's hard to understand what one should use
MODiX
MODiX4w ago
TeBeCo
you also need to ANYWAY create a proper editor config and add dotnet format --check-for-no-change-read-the-docs
Quoted by
React with ❌ to remove this embed.
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
eXpl0it3r
eXpl0it3rOP4w ago
I guess it would help a lot if the readme clarified the state of things. Maybe there is already, but some sort of roadmap would be useful to see what is required to get to a next "stable" version and where the beta version is at. Trying to catch-all before releasing is just a losing battle with how fast .NET/roslyn is moving and having to play catch up in their personal time Guess, I'll see if I can add some points. First gotta fix that codecov badge 😄 Welp tests are failing, maybe that needs fixing first 🙃
Want results from more Discord servers?
Add your server