From 3ae32306a765b67293be1a47e0003451a18d6c07 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Mon, 6 Sep 2021 00:06:58 -0700 Subject: [PATCH] lint: add lib and scripts to clean_files.txt and disable `shfmt` for now pending upstream mvdan/sh#721 Let function blocks begin on new lines so that the opennign and closing braces align. --- .editorconfig | 1 + .pre-commit-config.yaml | 4 ++-- clean_files.txt | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index e0eb845511..c0a079c05a 100755 --- a/.editorconfig +++ b/.editorconfig @@ -23,6 +23,7 @@ binary_next_line = true # like -bn switch_case_indent = true # like -ci space_redirects = true # like -sr keep_padding = false # like -kp +function_next_line = true # like -fn end_of_line = lf charset = utf-8 trim_trailing_whitespace = true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af5f30afe5..1b92e84c29 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,8 +20,8 @@ repos: - id: git-check # Configure in .gitattributes - id: shellcheck exclude: ".bats$" - - id: shfmt - exclude: ".bats$" +# - id: shfmt +# exclude: ".bats$" - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.1.7 hooks: diff --git a/clean_files.txt b/clean_files.txt index b8fcee4f05..ccff31a398 100644 --- a/clean_files.txt +++ b/clean_files.txt @@ -18,6 +18,8 @@ # docs/ hooks/ +lib/ +scripts/ # root files # @@ -26,6 +28,7 @@ bash_it.sh clean_files.txt install.sh lint_clean_files.sh +uninstall.sh # aliases #