Add more linting to various yaml or json files

Was led to do this after I had an error late in the testing process after
I made a typo in the `services/essentials.yaml` file.
This commit is contained in:
Baptiste Mathus 2018-07-25 14:33:55 +02:00
parent 95d5d94117
commit 5c5533f16e
5 changed files with 12 additions and 1 deletions

View File

@ -11,6 +11,7 @@ SQUID_VOLUME_NAME=squid-cache
all: check container
lint: shunit2
../tools/yamllint -s docker-compose*.yml
../tools/yamllint -s config/as-code/*.yaml
../tools/shellcheck -x tests/tests.sh
$(MAKE) -C environments lint

View File

@ -1,4 +1,5 @@
# This file is docker-compose override file, cf. https://docs.docker.com/compose/extends/#adding-and-overriding-configuration
# This file is docker-compose override file, cf.
# https://docs.docker.com/compose/extends/#adding-and-overriding-configuration
# It is use in conjunction with docker-compose.yml core file to add a specific configuration
# to set up an Squid proxy to accelerate plugins downloads during Essentials development.
# This file is automatically used by the tests/*tests.sh files.

6
services/.yamllint Normal file
View File

@ -0,0 +1,6 @@
---
rules:
line-length:
max: 100
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: false

View File

@ -13,6 +13,9 @@ check: depends lint migrate
fi;
lint: depends
../tools/yamllint -s docker-compose*.yml
../tools/yamllint -s essentials.yaml
../tools/jsonlint --quiet ingest.json
npm run eslint
fix-formatting: depends