DEV Community

Discussion on: C# Linting and Formatting Tools in 2021

Collapse
srmagura profile image
Sam Magura Author

Thanks! The Johnny Reilly post I linked shows how to automate dotnet-format with a precommit hook. I don't think it will be possible to automate any of the other tools to the same extent.

Since SonarLint and StyleCop generate build warnings, you will see those warnings in CI. Here's a screenshot of a Sonar warning from my Azure Pipelines build:

Pipelines