Skip to content

Commit d1229a7

Browse files
committed
Use pre-commit framework in favor of Git Hooks/Git Pre-commit Hook for GNU Bash Projects
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
1 parent f9a3f7e commit d1229a7

File tree

6 files changed

+66
-11
lines changed

6 files changed

+66
-11
lines changed

.gitmodules

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
[submodule "Git Hooks/Git Pre-commit Hook for GNU Bash Projects"]
2-
path = Git Hooks/Git Pre-commit Hook for GNU Bash Projects
3-
url = https://github.com/Lin-Buo-Ren/Git_Pre-commit_Hook_for_GNU_Bash_Projects.git
4-
fetchRecurseSubmodules = no
5-
ignore = all
61
[submodule "Git Clean and Smudge Filters/Clean Filter for GNU Bash Scripts"]
72
path = Git Clean and Smudge Filters/Clean Filter for GNU Bash Scripts
83
url = https://github.com/Lin-Buo-Ren/Clean-Filter-for-GNU-Bash-Scripts.git

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Configuration for pre-commit: A framework for managing and maintaining multi-language pre-commit hooks.
2+
# https://pre-commit.com/
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v1.2.3
6+
hooks:
7+
- id: check-yaml
8+
- id: check-executables-have-shebangs
9+
- id: check-byte-order-marker
10+
- repo: https://github.com/jumanjihouse/pre-commit-hooks
11+
rev: 1.6.0
12+
hooks:
13+
- id: shellcheck
14+
- repo: https://github.com/adrienverge/yamllint
15+
rev: master
16+
hooks:
17+
- id: yamllint

.yamllint

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Configuration File for yamllint(1)
2+
# https://yamllint.readthedocs.io/en/stable/rules.html
3+
---
4+
rules:
5+
braces:
6+
min-spaces-inside: 0
7+
max-spaces-inside: 0
8+
min-spaces-inside-empty: -1
9+
max-spaces-inside-empty: -1
10+
brackets:
11+
min-spaces-inside: 0
12+
max-spaces-inside: 0
13+
min-spaces-inside-empty: -1
14+
max-spaces-inside-empty: -1
15+
colons:
16+
max-spaces-before: 0
17+
max-spaces-after: 1
18+
commas:
19+
max-spaces-before: 0
20+
min-spaces-after: 1
21+
max-spaces-after: 1
22+
comments:
23+
level: warning
24+
require-starting-space: false
25+
min-spaces-from-content: 1
26+
comments-indentation: disable
27+
document-end: disable
28+
document-start: disable
29+
empty-lines:
30+
max: 2
31+
max-start: 0
32+
max-end: 0
33+
hyphens:
34+
max-spaces-after: 1
35+
indentation:
36+
spaces: consistent
37+
indent-sequences: consistent
38+
check-multi-line-strings: false
39+
key-duplicates: enable
40+
line-length:
41+
max: 9999
42+
allow-non-breakable-words: true
43+
allow-non-breakable-inline-mappings: false
44+
new-line-at-end-of-file: enable
45+
new-lines:
46+
type: unix
47+
trailing-spaces: enable
48+
truthy:
49+
level: warning
Lines changed: 0 additions & 1 deletion
This file was deleted.

Git Hooks/README.markdown

Lines changed: 0 additions & 2 deletions
This file was deleted.

Git Hooks/SOFTWARE_DIRECTORY_CONFIGURATION.source

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)