Skip to content

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

  1. make a change to a ruby file and add the commit locally
  2. run the pre-push command: lefthook run pre-push -v
  3. verify static-verification does not run
  4. 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
  5. run the pre-push command: lefthook run pre-push -v
  6. 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.

Edited by Terri Chu

Merge request reports