StefanMaron / vsc-lintercop

MIT License
6 stars 6 forks source link

Check the linter warnings in the Pull Request #3

Closed Lazys closed 2 years ago

Lazys commented 2 years ago

We're using Azure Dev Ops and Pull Requests. Do you have any idea how could we add your linter to the Pull Request as the "gate" or sth like this?

In another words - how can we check on the Pull Request if there are no warnings in the code that someone wants to merge to the main branch?

I'm looking for sth similar as SonarQube - https://www.sonarqube.org/microsoft-azure-devops-integration/

StefanMaron commented 2 years ago

I am not using azure devops, but I know that the Run-ALPipeline command has a parameter -failOnWarning.

https://www.powershellgallery.com/packages/BcContainerHelper/3.0.0/Content/AppHandling%5CRun-AlPipeline.ps1

image

You can also pass in custom cops like this linter:

image

Lazys commented 2 years ago

Thanks for the idea.