Use lefthook git hook to run linters and guards
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem
The monolith recently started using lefthook, a git hook, to perform pre-commit checks. This helps lower cycle times by running linters and also performing some guards prior to running a CI pipeline.
Proposal
Investigate ways lefthook could be used for API Security.
-
Perform linting -
yamllint -
flake8 (python)
-
-
Guards -
Changed .gitlab-ci.e2e-template.yml, but not.gitlab-ci.e2e-generated.yml
-
Implementation:
-
Have our hook install/upgrade the needed dependencies to work (zero friction) -
Add lefthook and create configuration -
Test on Linux, OS X, and Windows
Edited by 🤖 GitLab Bot 🤖