[gitlab] Fix sh linting in vim and pipeline
This commit is contained in:
parent
7f6b1d5c03
commit
6e09ca47cb
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue