Add static verification as optional lefthook pre-push check
What does this MR do and why?
Adds static verification to pre-push for lefthook as an optional command
Screenshots or screen recordings
N/A
How to set up and validate locally
- make a change to a ruby file and add the commit locally
- run the pre-push command:
lefthook run pre-push -v
- verify
static-verification
does not run - Create or edit your existing
lefthook-local.yml
file (mine looks like this)pre-push: parallel: true skip: - ref: master commands: static-verification: skip: false
- run the pre-push command:
lefthook run pre-push -v
- verify
static-verification
is run
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Terri Chu