forked from llm-d/llm-d-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
102 lines (98 loc) · 3.3 KB
/
Copy path.golangci.yml
File metadata and controls
102 lines (98 loc) · 3.3 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "2"
run:
timeout: 5m
allow-parallel-runners: true
formatters:
enable:
- goimports
- gofmt
linters:
enable:
- importas
- bodyclose
- copyloopvar
- dupword
- durationcheck
- errcheck
- fatcontext
- ginkgolinter
- goconst
- gocritic
- govet
- ineffassign
- loggercheck
- makezero
- misspell
- nakedret
- nilnil
- perfsprint
- prealloc
- revive
- staticcheck
- unparam
- unused
- unconvert
exclusions:
presets:
- comments # suppress missing comment violations on packages and exported symbols
- std-error-handling # suppress unchecked errors on well-known stdlib patterns (e.g. Close())
rules:
# Package names inherited from GAIE upstream (common, types, utils, http) are intentional
- linters: [revive]
text: "avoid meaningless package names"
- linters: [revive]
text: "avoid package names that conflict with Go standard library package names"
settings:
importas:
no-unaliased: false # unaliased imports are allowed; only enforce when an alias is used
alias:
- pkg: github.com/llm-d/llm-d-router/pkg/epp/framework/interface/scheduling
alias: fwksched
- pkg: github.com/llm-d/llm-d-router/pkg/epp/framework/interface/requestcontrol
alias: fwkrc
- pkg: github.com/llm-d/llm-d-router/pkg/epp/framework/interface/flowcontrol
alias: fwkfc
- pkg: github.com/llm-d/llm-d-router/pkg/epp/framework/interface/flowcontrol/mocks
alias: fwkfcmocks
- pkg: github.com/llm-d/llm-d-router/pkg/epp/framework/interface/plugin
alias: fwkplugin
- pkg: github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/attribute/prefix
alias: attrprefix
- pkg: github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/extractor/metrics
alias: extractormetrics
- pkg: github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/source/metrics
alias: sourcemetrics
- pkg: github.com/llm-d/llm-d-router/pkg/epp/util/pool
alias: poolutil
- pkg: github.com/llm-d/llm-d-router/pkg/epp/util/testing
alias: testutil
- pkg: github.com/llm-d/llm-d-router/pkg/common/error
alias: errcommon
- pkg: github.com/llm-d/llm-d-router/test/utils/igw
alias: igwtestutils
revive: # see https://github.com/mgechev/revive#available-rules for all options
rules:
- name: blank-imports
- name: context-as-argument
- name: context-keys-type
- name: dot-imports
- name: error-return
- name: error-strings
- name: error-naming
- name: errorf
- name: if-return
- name: increment-decrement
- name: indent-error-flow
- name: package-comments
- name: range
- name: receiver-naming
- name: time-naming
- name: unexported-return
- name: var-declaration
- name: var-naming
issues:
# do not limit the number of issues, ensure even identical are reported
max-issues-per-linter: 0
max-same-issues: 0
# Note: 'new' setting is controlled via Makefile LINT_NEW_ONLY variable
# Set to true to only check new code, false (default) to check all code