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:
parent
95d5d94117
commit
5c5533f16e
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
rules:
|
||||
line-length:
|
||||
max: 100
|
||||
allow-non-breakable-words: true
|
||||
allow-non-breakable-inline-mappings: false
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue