[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'],
|
\'html': ['tidy','prettier'],
|
||||||
\'typescript': ['prettier','tslint'],
|
\'typescript': ['prettier','tslint'],
|
||||||
\'*': ['remove_trailing_lines', 'trim_whitespace'],
|
\'*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
|
\'go': ['gofmt'],
|
||||||
|
\'sh': ['shfmt'],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\ 'go': ['gopls'],
|
\ 'go': ['gopls'],
|
||||||
\ 'sh': ['language_server','shellcheck','shfmt'],
|
\ 'sh': ['language_server','shellcheck'],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
" PLUGIN: AIRLINE
|
" PLUGIN: AIRLINE
|
||||||
|
|
|
@ -9,9 +9,9 @@ shellcheck:
|
||||||
before_script:
|
before_script:
|
||||||
- shellcheck --version
|
- shellcheck --version
|
||||||
script:
|
script:
|
||||||
- echo "######### CHECKING POSIX SHELLSCRIPTS ###########"
|
- echo "--------- CHECKING POSIX SHELLSCRIPTS -------------"
|
||||||
- find . -type f -name '*.sh' | xargs shellcheck
|
- find . -type f -name '*.sh' | xargs shellcheck
|
||||||
- echo "######### CHECKING ZSH SHELLSCRIPTS ###########"
|
- echo "--------- CHECKING ZSH SHELLSCRIPTS -------------"
|
||||||
- find . -type f -name '*.zsh' | xargs shellcheck
|
- find . -type f -name '*.zsh' | xargs shellcheck
|
||||||
|
|
||||||
shfmt:
|
shfmt:
|
||||||
|
@ -19,7 +19,7 @@ shfmt:
|
||||||
before_script:
|
before_script:
|
||||||
- shfmt -version
|
- shfmt -version
|
||||||
script:
|
script:
|
||||||
- echo "######### CHECKING POSIX FORMATTING ###########"
|
- echo "--------- CHECKING POSIX SHELLSCRIPTS -------------"
|
||||||
- find . -type f -name '*.sh' | xargs shfmt -d -i 2
|
- 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
|
- find . -type f -name '*.zsh' | xargs shfmt -d -i 2
|
||||||
|
|
Loading…
Reference in a new issue