-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
70 lines (66 loc) · 2.14 KB
/
Copy path.golangci.yml
File metadata and controls
70 lines (66 loc) · 2.14 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
69
70
version: "2"
run:
timeout: 5m
linters:
default: all
disable:
# Context propagation through background daemon promotion is intentionally explicit.
- contextcheck
# Size and complexity caps are design-review concerns for this small codebase.
- cyclop
- funlen
- gocognit
# No project dependency policy exists yet.
- depguard
# Sentinel-only error construction is too noisy for validation and test errors.
- err113
# Optional fields and test fixtures make exhaustive struct literals impractical.
- exhaustruct
# CLI output intentionally writes to configured stdout/stderr.
- forbidigo
# Function ordering, repeated strings, line length, magic numbers, and whitespace
# are already covered by readability review, gofmt, and focused tests.
- funcorder
- goconst
- lll
- mnd
- nlreturn
- wsl
- wsl_v5
# The project intentionally uses Go's idiomatic inline error handling.
- noinlineerr
# Some tests exercise process/socket behavior and cannot safely run as blanket parallel subtests.
- paralleltest
- tparallel
# The daemon protocol and audit log intentionally use stable snake_case JSON fields.
- tagliatelle
# Internal package tests need internal state access for daemon/socket edge cases.
- testpackage
# Interface/generic returns are intentional at package seams and protocol helpers.
- ireturn
# Micro-optimizations and test-directory preferences are not worth forcing globally.
- prealloc
- usetesting
# Short variable names are allowed when local and conventional.
- varnamelen
# Package-boundary error wrapping is enforced where it affects caller behavior.
- wrapcheck
# JSON tag coverage is enforced by tests for value-free audit/policy shapes.
- musttag
settings:
gosec:
excludes:
# Queue promotion is detached from request cancellation by design.
- G118
revive:
rules:
- name: exported
disabled: true
- name: package-comments
disabled: true
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofmt