Merge branch 'feature/pre-commit-hook' into enforce-pre-commit
* feature/pre-commit-hook: In case we ARE committing to tabs now... Add a note on how to use the pre-commit yaml. Enforce some coding standards for the contributerspull/1434/head
commit
30e47f224c
|
|
@ -1,12 +1,32 @@
|
|||
# EditorConfig is awesome: http://EditorConfig.org
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
indent_style = tab
|
||||
indent_size = 1
|
||||
|
||||
shell_variant = bash
|
||||
binary_next_line = true # like -bn
|
||||
switch_case_indent = true # like -ci
|
||||
space_redirects = true # like -sr
|
||||
keep_padding = true # like -kp
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.*sh]
|
||||
indent_style = tab
|
||||
indent_size = 1
|
||||
|
||||
shell_variant = bash
|
||||
binary_next_line = true # like -bn
|
||||
switch_case_indent = true # like -ci
|
||||
space_redirects = true # like -sr
|
||||
keep_padding = true # like -kp
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
|
|
|||
|
|
@ -18,10 +18,6 @@ repos:
|
|||
- id: git-check # Configure in .gitattributes
|
||||
- id: shellcheck
|
||||
- id: shfmt
|
||||
- repo: git://github.com/detailyang/pre-commit-shell
|
||||
rev: 1.0.5
|
||||
hooks:
|
||||
- id: shell-lint
|
||||
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
||||
rev: v1.1.7
|
||||
hooks:
|
||||
|
|
|
|||
Loading…
Reference in New Issue