Skip to content

Commit 6fe69a4

Browse files
committed
pre-commit
1 parent 398edcd commit 6fe69a4

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

.golangci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
version: "2"
2+
3+
issues:
4+
fix: true
5+
6+
linters:
7+
default: none
8+
9+
enable:
10+
- errcheck
11+
- exhaustive
12+
- goconst
13+
- govet
14+
- ineffassign
15+
- lll
16+
- nakedret
17+
- nolintlint
18+
- staticcheck
19+
- unconvert
20+
- unparam
21+
- unused
22+
23+
settings:
24+
lll:
25+
line-length: 120
26+
tab-width: 4
27+
28+
nolintlint:
29+
require-explanation: false
30+
require-specific: true
31+
32+
exclusions:
33+
generated: lax
34+
paths:
35+
- vendor$
36+
- third_party$
37+
- testdata$
38+
- Godeps$
39+
- builtin$
40+
41+
formatters:
42+
enable:
43+
- goimports
44+
- gofumpt
45+
46+
settings:
47+
goimports:
48+
local-prefixes:
49+
- github.com/AleksaC/tflint-ruleset-misc
50+
51+
exclusions:
52+
generated: lax
53+
paths:
54+
- vendor$
55+
- third_party$
56+
- testdata$
57+
- Godeps$
58+
- builtin$

.pre-commit-config.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-json
8+
- id: check-yaml
9+
- id: check-symlinks
10+
11+
- repo: https://github.com/sirosen/check-jsonschema
12+
rev: 0.33.3
13+
hooks:
14+
- id: check-github-workflows
15+
16+
- repo: https://github.com/golangci/golangci-lint
17+
rev: v2.4.0
18+
hooks:
19+
- id: golangci-lint-config-verify
20+
- id: golangci-lint-full
21+
22+
- repo: local
23+
hooks:
24+
- id: goreleaser-check
25+
name: goreleaser-check
26+
language: golang
27+
files: .goreleaser.ya?ml$
28+
additional_dependencies:
29+
- github.com/goreleaser/goreleaser/v2@v2.9.0
30+
entry: goreleaser check

0 commit comments

Comments
 (0)