A collection of Roslyn analyzers used in Bitbound's projects.
As of this writing, MemberOrder is the only analyzer implemented in this repository. It enforces a consistent ordering of members inside types. Additional analyzers may be added in future updates.
NuGet package: Bitbound.Analyzers.MemberOrder
dotnet add package Bitbound.Analyzers.MemberOrderBitbound.Analyzers.MemberOrder/— Analyzer implementation and diagnostic definitions.Bitbound.Analyzers.MemberOrder.CodeFixes/— Code fix provider(s) for theMemberOrderanalyzer.Bitbound.Analyzers.MemberOrder.Package/— Packaging project for producing distributable artifacts.Bitbound.Analyzers.MemberOrder.Test/— Unit tests for the analyzer and code fixes.
The repository uses the .NET SDK. From the repository root you can build the solution with:
dotnet build Bitbound.Analyzers.slnxTo build a single project (for example the analyzer project):
dotnet build Bitbound.Analyzers.MemberOrder\Bitbound.Analyzers.MemberOrder.csprojRun the unit tests from the solution root:
dotnet testOr run the specific test project:
dotnet test Bitbound.Analyzers.MemberOrder\Bitbound.Analyzers.MemberOrder.Test\Bitbound.Analyzers.MemberOrder.Test.csprojContributions are welcome. If you'd like to add a new analyzer or improve the existing MemberOrder implementation:
- Open a feature branch.
- Add/update analyzer project(s) under a new folder alongside existing analyzers.
- Add unit tests in the corresponding
.Testproject. - Ensure
dotnet buildanddotnet testpass locally. - Open a pull request describing your changes.
This project is licensed under the MIT License. See the LICENSE file for details.