AmadeusITGroup / sonar-stash

Stash (BitBucket) plugin, a pull-request decorator which allows to integrate SonarQube violations directly into your pull-request
MIT License
165 stars 82 forks source link

analyse only the diff in pull request #165

Closed ajayOO8 closed 6 years ago

ajayOO8 commented 6 years ago

Is there a way/option from which I can enable this plugin to analyse only the diff and show the results of that only( not the whole project). Thanks in advance

t-8ch commented 6 years ago

Hi @appleajay, The only way this plugin can work reliably is by having a baseline scan of the main development branch. Then you execute sonar in preview/issues mode with this plugin on a PR branch to get the differences between the PR and the main development branch.