Run dotnet-sonarscanner on pre-commit hooks.
repos:
- repo: https://github.com/algebratech/dotnet-sonar-pre-commit
rev: v1.0.0
hooks:
- id: dotnet-sonarscanner
args: [
'--sonar-project-key=projectKey',
'--sonar-project-name=projectName',
'--sonar-organization=organization'
]