mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 16:06:14 +00:00
Enforce .editorconfig by running eclint (#213)
* tune .editorconfig for the existing files * fix reported linting issues * travis: switch language to node_js to be able to run npm * travis: build on ubuntu bionic
This commit is contained in:
parent
d901eb05b9
commit
fb37723cc3
@ -5,6 +5,25 @@ root = true
|
|||||||
|
|
||||||
[*]
|
[*]
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
|
indent_style = tab
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
trim_trailing_whitespaces = true
|
trim_trailing_whitespaces = true
|
||||||
indent_style = tab
|
|
||||||
|
[{*.{yml,yaml},.yamllint}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.{md,txt}]
|
||||||
|
indent_style = space
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[Dockerfile*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.py]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.ldif]
|
||||||
|
indent_style = space
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
language: bash
|
dist: bionic
|
||||||
|
language: node_js
|
||||||
|
|
||||||
|
node_js:
|
||||||
|
- stable
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- HADOLINT_VERSION=1.16.3
|
- HADOLINT_VERSION=1.16.3
|
||||||
@ -20,6 +25,7 @@ before_install:
|
|||||||
- sudo chmod +rx /usr/local/bin/docker-compose
|
- sudo chmod +rx /usr/local/bin/docker-compose
|
||||||
- sudo apt update && sudo apt install -y expect
|
- sudo apt update && sudo apt install -y expect
|
||||||
- sudo pip install --upgrade pip && sudo pip install yamllint
|
- sudo pip install --upgrade pip && sudo pip install yamllint
|
||||||
|
- npm install -g eclint
|
||||||
install:
|
install:
|
||||||
- make lint
|
- make lint
|
||||||
- "./test.exp"
|
- "./test.exp"
|
||||||
|
1
Makefile
1
Makefile
@ -325,6 +325,7 @@ publish-zpush: tag-zpush
|
|||||||
component=zpush make publish-container
|
component=zpush make publish-container
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
git ls-files | xargs --max-lines=1 eclint check
|
||||||
grep -rIl '^#![[:blank:]]*/bin/\(bash\|sh\|zsh\)' \
|
grep -rIl '^#![[:blank:]]*/bin/\(bash\|sh\|zsh\)' \
|
||||||
--exclude-dir=.git --exclude=*.sw? \
|
--exclude-dir=.git --exclude=*.sw? \
|
||||||
| xargs shellcheck -x
|
| xargs shellcheck -x
|
||||||
|
@ -21,5 +21,4 @@ General prefix |
|
|||||||
Name of the configuration option in the configuration file
|
Name of the configuration option in the configuration file
|
||||||
|
|
|
|
||||||
Value of the configuration option
|
Value of the configuration option
|
||||||
|
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user