[gitlab] Fix sh linting in vim and pipeline

This commit is contained in:
Marty Oehme 2019-07-23 16:50:30 +02:00
parent 7f6b1d5c03
commit 6e09ca47cb
2 changed files with 7 additions and 5 deletions

View file

@ -272,11 +272,13 @@ let g:ale_fixers = {
\'html': ['tidy','prettier'],
\'typescript': ['prettier','tslint'],
\'*': ['remove_trailing_lines', 'trim_whitespace'],
\'go': ['gofmt'],
\'sh': ['shfmt'],
\}
let g:ale_linters = {
\ 'go': ['gopls'],
\ 'sh': ['language_server','shellcheck','shfmt'],
\ 'sh': ['language_server','shellcheck'],
\}
" PLUGIN: AIRLINE

View file

@ -9,9 +9,9 @@ shellcheck:
before_script:
- shellcheck --version
script:
- echo "######### CHECKING POSIX SHELLSCRIPTS ###########"
- echo "--------- CHECKING POSIX SHELLSCRIPTS -------------"
- find . -type f -name '*.sh' | xargs shellcheck
- echo "######### CHECKING ZSH SHELLSCRIPTS ###########"
- echo "--------- CHECKING ZSH SHELLSCRIPTS -------------"
- find . -type f -name '*.zsh' | xargs shellcheck
shfmt:
@ -19,7 +19,7 @@ shfmt:
before_script:
- shfmt -version
script:
- echo "######### CHECKING POSIX FORMATTING ###########"
- echo "--------- CHECKING POSIX SHELLSCRIPTS -------------"
- find . -type f -name '*.sh' | xargs shfmt -d -i 2
- echo "######### CHECKING ZSH FORMATTING ###########"
- echo "--------- CHECKING ZSH SHELLSCRIPTS -------------"
- find . -type f -name '*.zsh' | xargs shfmt -d -i 2