mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-06 05:58:47 +02:00
Update and rename .shfmt to .shfmt.yaml
This commit is contained in:
11
.github/linters/.shfmt
vendored
11
.github/linters/.shfmt
vendored
@@ -1,11 +0,0 @@
|
|||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
end_of_line = lf
|
|
||||||
charset = utf-8
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
insert_final_newline = true
|
|
||||||
[*.md]
|
|
||||||
trim_trailing_whitespace = false
|
|
||||||
35
.github/linters/.shfmt.yaml
vendored
Normal file
35
.github/linters/.shfmt.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# ==================================================================================
|
||||||
|
# shfmt Configuration - Shell Script Formatting Standards
|
||||||
|
# ==================================================================================
|
||||||
|
|
||||||
|
# Indent with 2 spaces
|
||||||
|
indent: 2
|
||||||
|
|
||||||
|
# Use spaces instead of tabs
|
||||||
|
use_tabs: false
|
||||||
|
|
||||||
|
# Put binary operators at the beginning of lines
|
||||||
|
binary_next_line: true
|
||||||
|
|
||||||
|
# Put case statement patterns on the same line as the case
|
||||||
|
case_indent: true
|
||||||
|
|
||||||
|
# Simplify the code
|
||||||
|
simplify: true
|
||||||
|
|
||||||
|
# Language variant (bash, posix, mksh)
|
||||||
|
language_variant: bash
|
||||||
|
|
||||||
|
# Function declaration style
|
||||||
|
# func_style: 0 # function name() { ... }
|
||||||
|
# func_style: 1 # name() { ... }
|
||||||
|
func_style: 1
|
||||||
|
|
||||||
|
# Keep column alignment for continuation lines
|
||||||
|
keep_column_alignment: true
|
||||||
|
|
||||||
|
# Minify scripts by removing comments and extra whitespace
|
||||||
|
# minify: false
|
||||||
|
|
||||||
|
# Apply formatting recursively to included files
|
||||||
|
# find: true
|
||||||
Reference in New Issue
Block a user