1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-11 16:32:59 +00:00

Add linting for yaml files (#186)

* rename check-scripts target to lint
* install yamllint through pip on travis
* add yamllint config, do not fail on too long lines
* fix yaml linting errors
* remove circular dependency
This commit is contained in:
Felix Bartels
2019-06-19 18:08:36 +02:00
committed by GitHub
parent e4983a96a2
commit 4d2cffbe09
7 changed files with 92 additions and 85 deletions
+2 -1
View File
@@ -321,10 +321,11 @@ publish-webapp: tag-webapp
publish-zpush: tag-zpush
component=zpush make publish-container
check-scripts:
lint:
grep -rIl '^#![[:blank:]]*/bin/\(bash\|sh\|zsh\)' \
--exclude-dir=.git --exclude=*.sw? \
| xargs shellcheck -x
git ls-files --exclude='*.yml' --ignored | xargs --max-lines=1 yamllint
# List files which name starts with 'Dockerfile'
# eg. Dockerfile, Dockerfile.build, etc.
git ls-files --exclude='Dockerfile*' --ignored | xargs --max-lines=1 hadolint