mirror of
https://github.com/foomo/posh.git
synced 2025-10-16 12:45:38 +00:00
chore: add .husky
This commit is contained in:
parent
daf9191393
commit
96c1e8d187
@ -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
|
||||||
|
|||||||
@ -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
3
.husky/applypatch-msg
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/commit-msg
Executable file
3
.husky/commit-msg
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/fsmonitor-watchman
Executable file
3
.husky/fsmonitor-watchman
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/post-update
Executable file
3
.husky/post-update
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/pre-applypatch
Executable file
3
.husky/pre-applypatch
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/pre-commit
Executable file
3
.husky/pre-commit
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/pre-merge-commit
Executable file
3
.husky/pre-merge-commit
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/pre-push
Executable file
3
.husky/pre-push
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/pre-rebase
Executable file
3
.husky/pre-rebase
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/pre-receive
Executable file
3
.husky/pre-receive
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/prepare-commit-msg
Executable file
3
.husky/prepare-commit-msg
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/push-to-checkout
Executable file
3
.husky/push-to-checkout
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/sendemail-validate
Executable file
3
.husky/sendemail-validate
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
3
.husky/update
Executable file
3
.husky/update
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
husky hook $(basename "$0") $*
|
||||||
Loading…
Reference in New Issue
Block a user