aboutsummaryrefslogtreecommitdiff
path: root/tools/pre-commit-hook
AgeCommit message (Collapse)AuthorFilesLines
2025-07-21Remove egrep usage from scriptsMichal Nasiadka1-1/+1
egrep: warning: egrep is obsolescent; using grep -E Change-Id: I4df0d520546da141cafc15e9464149059fdc06a6 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2021-08-17tools: use /usr/bin/env bash instead of /bin/bashMarc 'risson' Schmitt1-1/+1
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> Change-Id: I374f7427a4318d00ca474367818117e11789ec13
2018-06-24Fix pre-commit-hook can't workLiping Mao (limao)1-8/+0
remove unused validate-all-json.sh and validate-all-dockerfiles. Change-Id: Ia534c200f771c23d015ab32b0cc952ca36354451 Closes-Bug: #1778146
2016-05-26Add support to lint the install commands in DockerfilesSwapnil Kulkarni (coolsvap)1-2/+2
Change-Id: Icb47ba8b13b13889e28bb285321f11344400edc2 Closes-Bug:#1582618
2015-04-27Change the default shell to bashChen Zhiwei1-1/+1
Unify the shell to bash in all Kolla scripts. Change-Id: Ib9591b2f8f344eb88455c5e9b7ecf2164fb5960a Implements: blueprint use-bash-shell
2015-01-19Various fixes to pre-commit hookMartin André1-13/+6
Fix incorrect test in sh. Bash implements the new test with [[ that accepts the double equal, however, this is not a bash script. On Debian and derivates, this will be run by dash. Make the script portable by not using GNU extensions of xargs. Call `validate-all-*.sh` scripts whenever possible. Have bashate look for /usr/bin/env style shebang as well. Remove useless validate-json.sh file. Change-Id: Id2d697f2e9ddaa66e25f71f410200528c1e0cf6b
2014-10-31add maintainer check to testsLars Kellogg-Stedman1-4/+10
Change-Id: I6ee985e694142aa7dadeb085b77910667ac6359f
2014-10-14add better validation checks (part 1)Lars Kellogg-Stedman1-0/+45
This patch adds a script for validating YAML files, and replaces the existing JSON checks with one largely identical to the YAML check. This also provides a script that can be installed as a pre-commit hook that will perform this checks when you commit changes. You can install the hook by running tools/pre-commit-hook --install. Change-Id: Ib4742a9db062362cfa61d669c691151bc1ca376c