Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Analyze your changeset in a branch before git push using SonarLint + Git hooks; Round #2

Janos Gyerik
December 08, 2016

Analyze your changeset in a branch before git push using SonarLint + Git hooks; Round #2

Janos Gyerik

December 08, 2016
Tweet

More Decks by Janos Gyerik

Other Decks in Technology

Transcript

  1. ANALYZE YOUR CHANGESET BEFORE GIT PUSH WITH SONARLINT + GIT

    HOOKS ROUND #2 https://speakerdeck.com/janosgyerik/sonarlint-before-git-push-2
  2. Difference from pre-commit checks in IntelliJ * Many commits vs

    one * Less frequent * IntelliJ not needed
  3. Tip #2 : git alias to bypass the analysis somename

    = "!f() { SKIPSONARLINT=1 git push -u origin HEAD \"$@\"; }; f"