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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user