Meziantou.Analyzer
RecordValueAnalyser
Meziantou.Analyzer | RecordValueAnalyser | |
---|---|---|
3 | 1 | |
837 | 4 | |
- | - | |
8.9 | 9.0 | |
15 days ago | 4 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
RecordValueAnalyser
-
Publishing a Roslyn analyser on nuget
I've written a small code analyser for Roslyn, which works fine when included as a csproj. The source is at https://github.com/lookbusy1344/RecordValueAnalyser
What are some alternatives?
Durian - Durian is a collection of Roslyn-based analyzers and source generators that extend the default capabilities of C#.
LinqGen - Alloc-free and fast replacement for Linq, with code generation
PolySharp - PolySharp provides generated, source-only polyfills for C# language features, to easily use all runtime-agnostic features downlevel. Add a reference, set your C# version to latest and have fun! π
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
mongo-csharp-analyzer - The MongoDB Analyzer is a free tool that helps you understand how your code translates into the MongoDB Query API.
SharpSource - surfacing defects at compile time and preventing issues that would otherwise go unnoticed
platform-compat - Roslyn analyzer that finds usages of APIs that will throw PlatformNotSupportedException on certain platforms.