Skip to content

Instantly share code, notes, and snippets.

@dragon-dxw
Created January 20, 2022 15:41
Show Gist options
  • Select an option

  • Save dragon-dxw/c0ee596cc8eedb3552ee0581be8fd475 to your computer and use it in GitHub Desktop.

Select an option

Save dragon-dxw/c0ee596cc8eedb3552ee0581be8fd475 to your computer and use it in GitHub Desktop.
Pre-Commit
repos:
- repo: https://github.com/dragon-dxw/pre-commit
rev: v0-0-gb466a5ad3865f76962644c97f8eb731cbecf8b85
hooks:
- id: standardrb
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.3
hooks:
- id: shellcheck
#- repo: https://github.com/mattlqx/pre-commit-ruby
# rev: v1.3.4
# hooks:
# - id: rspec
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
# Git state
- id: check-merge-conflict
stages: [commit]
- id: check-added-large-files
stages: [commit]
# Sensitive information
- id: detect-private-key
stages: [commit]
# Generic file state
#- id: trailing-whitespace
# stages: [commit]
- id: mixed-line-ending
stages: [commit]
#- id: end-of-file-fixer
# stages: [commit]
- id: check-executables-have-shebangs
stages: [commit]
# Language syntax/formatting
- id: check-yaml
stages: [commit]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment