-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy path.golangci.yml
More file actions
executable file
·68 lines (63 loc) · 1.72 KB
/
Copy path.golangci.yml
File metadata and controls
executable file
·68 lines (63 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Schema version. golangci-lint v2 refuses a v1 config outright — "unsupported
# version of the configuration" — before it reads a line of Go. That is what
# happened here: the action asked for `latest`, v2 shipped, and this file stayed
# v1, so the advisory lint job failed in 67ms on every run and checked nothing
# at all. Keep this line, and pin the version in ci.yml.
version: "2"
run:
modules-download-mode: readonly
linters:
enable:
- bodyclose
- misspell
- noctx
- prealloc
- unconvert
- unparam
settings:
errcheck:
check-type-assertions: true
govet:
enable-all: true
disable:
- fieldalignment
misspell:
# CLAS is the ADT object-type code for a class, not a typo for CLASS.
# It appears in URLs, tool schemas and switch statements; "correcting" it
# breaks the code. The first lint run after the v2 migration flagged six
# of these, which is a fair illustration of why lint output gets read
# rather than applied.
ignore-rules:
- clas
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- path: _test\.go
linters:
- errcheck
- unparam
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- goimports
settings:
goimports:
# Was github.com/vibingsteamer/mcp-abap-adt-go — a module path this repo
# has never had (see go.mod), so local-import grouping matched nothing.
local-prefixes:
- github.com/oisee/vibing-steampunk
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$