Meziantou.Analyzer
SharpSource
Meziantou.Analyzer | SharpSource | |
---|---|---|
3 | 1 | |
837 | 27 | |
- | - | |
8.9 | 3.7 | |
15 days ago | 2 months ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Meziantou.Analyzer
-
Can I disable the use of html tags in Blazor pages?
Nevermind, I already write my analyzer using this repository as a sample: https://github.com/meziantou/Meziantou.Analyzer/
-
Cool trick: Requiring optional parameters to be named
Another analyzer to help naming parameters: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0003.md
-
Cancellation Token
I can recommend this library of roslyn analzers. There is also an analyzer for cancellation tokens: https://github.com/meziantou/Meziantou.Analyzer
SharpSource
-
What specific patterns are inefficient or cause issues at runtime?
Using a string.Format() call where the arguments don't match the placeholders [docs]
What are some alternatives?
Durian - Durian is a collection of Roslyn-based analyzers and source generators that extend the default capabilities of C#.
BestPracticeAnalyzer - A .NET analyzer for developers complaining about people not following "best practices"
LinqGen - Alloc-free and fast replacement for Linq, with code generation
RecordValueAnalyser - C# Roslyn code analyser to check records for correct value semantics
porting-assistant-dotnet-client - The 'Porting Assistant for .NET' is a standalone compatibility analyzer that helps customers to port their .NET Framework (“.NET”) applications to .NET Core on Linux.
awesome-roslyn - Curated list of awesome Roslyn books, tutorials, open-source projects, analyzers, code fixes, refactorings, and source generators