Skip to content

Commit

Permalink
drop the ".sh" extension from executable scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jumanjiman committed Aug 23, 2018
1 parent 7318d22 commit 8fcd1e0
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Expand Up @@ -29,7 +29,7 @@ repos:
- id: forbid-binary
name: forbid-binary (local)
language: script
entry: pre_commit_hooks/forbid-binary.sh
entry: pre_commit_hooks/forbid-binary
types: ['binary']
exclude: >
(?x)^(
Expand All @@ -39,13 +39,13 @@ repos:
- id: forbid-space-in-indent
name: forbid-space-in-indent (local)
language: script
entry: pre_commit_hooks/forbid-space-in-indent.sh
entry: pre_commit_hooks/forbid-space-in-indent
exclude: ^.*$

- id: git-dirty
name: git-dirty (local)
language: script
entry: pre_commit_hooks/git-dirty.sh
entry: pre_commit_hooks/git-dirty

- id: require-ascii
name: file encoding (local)
Expand All @@ -59,15 +59,15 @@ repos:
- id: shellcheck
name: shellcheck (local)
language: script
entry: pre_commit_hooks/shellcheck.sh
entry: pre_commit_hooks/shellcheck
types: [shell]
args: [-e, SC1091]
additional_dependencies: [shellcheck]

- id: shfmt
name: shfmt (local)
language: script
entry: pre_commit_hooks/shfmt.sh
entry: pre_commit_hooks/shfmt
types: [shell]
args: ['-l', '-i', '2', '-ci']
additional_dependencies: [shfmt]
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-hooks.yaml
Expand Up @@ -20,27 +20,27 @@
- id: forbid-binary
name: Forbid binaries
description: Forbid binary files from being committed
entry: pre_commit_hooks/forbid-binary.sh
entry: pre_commit_hooks/forbid-binary
language: script
types: ['binary']

- id: forbid-space-in-indent
name: Forbid spaces in indentation
description: Forbid spaces in indentation
entry: pre_commit_hooks/forbid-space-in-indent.sh
entry: pre_commit_hooks/forbid-space-in-indent
language: script

- id: git-check
name: Check for conflict markers and core.whitespace errors
# yamllint disable-line rule:line-length
description: Use git to check for conflict markers and core.whitespace errors, respecting .gitattributes
entry: pre_commit_hooks/git-check.sh
entry: pre_commit_hooks/git-check
language: script

- id: git-dirty
name: Check if the git tree is dirty
description: Detect if git tree contains modified, staged, or untracked files
entry: pre_commit_hooks/git-dirty.sh
entry: pre_commit_hooks/git-dirty
language: script

- id: reek
Expand Down Expand Up @@ -68,7 +68,7 @@
- id: shellcheck
name: Test shell scripts with shellcheck
description: Shell scripts conform to shellcheck
entry: pre_commit_hooks/shellcheck.sh
entry: pre_commit_hooks/shellcheck
language: script
types: [shell]
args: [-e, SC1091]
Expand All @@ -77,7 +77,7 @@
- id: shfmt
name: Check shell style with shfmt
language: script
entry: pre_commit_hooks/shfmt.sh
entry: pre_commit_hooks/shfmt
types: [shell]
args: ['-l', '-i', '2', '-ci']
additional_dependencies: [shfmt]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8fcd1e0

Please sign in to comment.