mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-24 23:19:37 -05:00
9b6895b06f
Useful to detect unwanted characters in third party contributions patches using a CI hook.
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
---
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
|
|
- id: unicode-prohibit
|
|
name: unicode-prohibit
|
|
entry: scripts/unicode-prohibit.sh
|
|
language: script
|
|
pass_filenames: true
|
|
description: Prohibit Unicode
|
|
|
|
- id: reuse
|
|
name: reuse
|
|
entry: reuse
|
|
args: [lint]
|
|
language: python
|
|
pass_filenames: false
|
|
description: Lint files to comply with the REUSE Specification
|
|
|
|
- id: salt-lint
|
|
name: salt-lint
|
|
entry: scripts/salt-lint.sh
|
|
language: script
|
|
pass_filenames: true
|
|
description: Lint Salt files
|
|
|
|
- id: shellcheck
|
|
name: shellcheck
|
|
entry: scripts/shell-lint.sh
|
|
language: script
|
|
pass_filenames: true
|
|
description: Lint Shellscripts
|
|
|
|
- id: gitlint
|
|
name: gitlint
|
|
language: python
|
|
entry: gitlint
|
|
args: [--staged, --msg-filename]
|
|
stages: [commit-msg]
|
|
description: Lint Git commits
|