Stanislav Bogatyrev
b1c165a93b
Original shellcheck action requires Docker to run and it's not always available, especially inside Docker containers. Replacing it with python wrapper to simplify usage with Docker-based CI systems like Drone and WoodpeckerCI. Signed-off-by: Stanislav Bogatyrev <s.bogatyrev@yadro.com>
35 lines
832 B
YAML
35 lines
832 B
YAML
ci:
|
|
autofix_prs: false
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-case-conflict
|
|
- id: check-executables-have-shebangs
|
|
- id: check-shebang-scripts-are-executable
|
|
- id: check-merge-conflict
|
|
- id: check-json
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
- id: trailing-whitespace
|
|
args: [--markdown-linebreak-ext=md]
|
|
- id: end-of-file-fixer
|
|
exclude: ".key$"
|
|
|
|
- repo: https://github.com/golangci/golangci-lint
|
|
rev: v1.51.2
|
|
hooks:
|
|
- id: golangci-lint
|
|
|
|
- repo: https://github.com/jorisroovers/gitlint
|
|
rev: v0.18.0
|
|
hooks:
|
|
- id: gitlint
|
|
stages: [commit-msg]
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
rev: v0.9.0.2
|
|
hooks:
|
|
- id: shellcheck
|