mirror of
https://github.com/Dasharo/coreboot.git
synced 2026-06-13 10:16:48 -07:00
pre-commit: add configs
Change-Id: I339b06c878fd5b47d5913c2b3848cb3df8745cf0 Upstream-Status: Inappropriate [Dasharo downstream] Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[codespell]
|
||||
exclude-file = .codespellx
|
||||
ignore-words-list = "FPT,FTP,fpt,ftp"
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
policies:
|
||||
- type: commit
|
||||
spec:
|
||||
header:
|
||||
length: 80
|
||||
imperative: false
|
||||
invalidLastCharacters: .
|
||||
body:
|
||||
required: false
|
||||
dco: true
|
||||
gpg:
|
||||
required: true
|
||||
spellcheck:
|
||||
locale: US
|
||||
maximumOfOneCommit: false
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
default_stages: [pre-commit]
|
||||
|
||||
default_install_hook_types: [pre-commit, commit-msg]
|
||||
|
||||
ci:
|
||||
autoupdate_commit_msg: 'pre-commit: autoupdate hooks'
|
||||
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-merge-conflict
|
||||
- id: check-symlinks
|
||||
- id: detect-private-key
|
||||
# Consider re-enabling (a lot of coreboot code is affected, but with
|
||||
# vendorcode excluded is much less)
|
||||
# - id: end-of-file-fixer
|
||||
# exclude: "src/vendorcode"
|
||||
# - id: trailing-whitespace
|
||||
# exclude: "src/vendorcode"
|
||||
- id: mixed-line-ending
|
||||
|
||||
- repo: https://github.com/talos-systems/conform
|
||||
rev: v0.1.0-alpha.27
|
||||
hooks:
|
||||
- id: conform
|
||||
stages:
|
||||
- commit-msg
|
||||
|
||||
# Consider re-enabling (a lot of coreboot code is affected, but with
|
||||
# vendorcode excluded it is much less)
|
||||
# - repo: https://github.com/codespell-project/codespell
|
||||
# rev: v2.2.5
|
||||
# hooks:
|
||||
# - id: codespell
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: coreboot_lint
|
||||
name: Runs coreboot lint-stable linter checks
|
||||
entry: util/lint/lint lint-stable
|
||||
language: script
|
||||
types: [file]
|
||||
Reference in New Issue
Block a user