chore: add .husky

This commit is contained in:
Kevin Franklin Kim 2025-07-31 16:14:42 +02:00
parent daf9191393
commit 96c1e8d187
No known key found for this signature in database
16 changed files with 48 additions and 3 deletions

View File

@ -1,8 +1,7 @@
version: "2" version: "2"
run: run:
go: 1.24.1 go: 1.24.1
build-tags: build-tags: [safe]
- safe
modules-download-mode: readonly modules-download-mode: readonly
linters: linters:
default: none default: none
@ -197,6 +196,10 @@ linters:
disabled: true disabled: true
- name: unchecked-type-assertion - name: unchecked-type-assertion
disabled: true disabled: true
- name: var-naming
disabled: true
- name: enforce-switch-style
disabled: true
staticcheck: staticcheck:
checks: checks:
- -SA1029 - -SA1029

View File

@ -1,6 +1,6 @@
hooks: hooks:
pre-commit: pre-commit:
- golangci-lint run --fast - golangci-lint run --fast-only
- husky lint-staged - husky lint-staged
commit-msg: commit-msg:
# only execute if not in a merge # only execute if not in a merge

3
.husky/applypatch-msg Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/commit-msg Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/fsmonitor-watchman Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/post-update Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/pre-applypatch Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/pre-commit Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/pre-merge-commit Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/pre-push Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/pre-rebase Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/pre-receive Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/prepare-commit-msg Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/push-to-checkout Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/sendemail-validate Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*

3
.husky/update Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
husky hook $(basename "$0") $*