SqlServer.Rules v5.0.0 is now available

SqlServer.Rules is an open-source static code analysis library and toolset for SQL Server database projects, command line, and Visual Studio, that helps teams catch design flaws, naming inconsistencies, performance anti-patterns, and risky T-SQL constructs early — during development and build time instead of in production.

The value is straightforward: it shifts SQL quality checks left, gives fast and repeatable feedback in CI/CD and local workflows, and helps improve reliability, maintainability, and performance of database code with clear, actionable rule-based guidance.

This major release expands rule coverage significantly and continues consolidation around the SqlServer.Rules codebase and tooling.

Highlights

  • Large set of new and migrated design and performance rules
  • New SQL project/database option checks
  • Completed migration from legacy TSQLSmells packaging
  • Tooling and repository improvements

Design rules

Performance rules

SQL project/database option rules

Tooling and cleanup

  • Documentation generation moved to a separate tool
  • Solution updates (including .slnx)
  • Legacy TSQLSmells package/sign/test removal

Upgrade

<PackageReference Include="ErikEJ.DacFX.SqlServer.Rules" Version="5.0.0">
  <PrivateAssets>all</PrivateAssets>
</PackageReference>

Full changelog

Thanks to all contributors and everyone using and testing SqlServer.Rules.