add .editorconfig and remove static indent shfmt setting from lint action

This commit is contained in:
Roni Väyrynen
2021-12-06 16:59:36 +02:00
parent a7ecc106ff
commit 94eca439ff
2 changed files with 12 additions and 3 deletions

9
.editorconfig Normal file
View File

@@ -0,0 +1,9 @@
[*]
indent_style = space
indent_size = 4
tab_width = 8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
function_next_line = true
switch_case_indent = true

View File

@@ -20,7 +20,7 @@ jobs:
- name: run shfmt - name: run shfmt
uses: luizm/action-sh-checker@v0.3.0 uses: luizm/action-sh-checker@v0.3.0
env: env:
SHFMT_OPTS: -i 4 -d SHFMT_OPTS: -d
with: with:
sh_checker_comment: false sh_checker_comment: false
sh_checker_shellcheck_disable: true sh_checker_shellcheck_disable: true