Skip to content

Commit 3f37ada

Browse files
committed
revert: ci migration to v2
1 parent 64c0bb7 commit 3f37ada

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed

.golangci.bck.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
linters-settings:
2+
gofmt:
3+
simplify: true
4+
gosec:
5+
excludes:
6+
- G601
7+
ginkgolinter:
8+
forbid-focus-container: true
9+
goimports:
10+
local-prefixes: github.com/ray-project/kuberay
11+
misspell:
12+
locale: US
13+
nolintlint:
14+
require-explanation: true
15+
require-specific: true
16+
revive:
17+
ignore-generated-header: true
18+
rules:
19+
- name: blank-imports
20+
- name: context-as-argument
21+
- name: context-keys-type
22+
- name: empty-block
23+
- name: error-naming
24+
- name: error-return
25+
- name: error-strings
26+
- name: errorf
27+
- name: exported
28+
disabled: true
29+
- name: if-return
30+
- name: increment-decrement
31+
- name: indent-error-flow
32+
- name: package-comments
33+
- name: range
34+
- name: receiver-naming
35+
- name: redefines-builtin-id
36+
- name: superfluous-else
37+
- name: time-naming
38+
- name: unexported-return
39+
- name: unreachable-code
40+
- name: unused-parameter
41+
- name: var-declaration
42+
- name: var-naming
43+
exclude:
44+
- "**/ray-operator/apis/config/v1alpha1/*.go"
45+
- "**/ray-operator/apis/ray/v1alpha1/*.go"
46+
- "**/ray-operator/apis/ray/v1/*.go"
47+
arguments:
48+
- ["ID", "JSON", "HTTP", "IP"] # AllowList
49+
- [] # DenyList
50+
- - upperCaseConst: true
51+
gocyclo:
52+
min-complexity: 15
53+
govet:
54+
enable:
55+
- fieldalignment
56+
lll:
57+
line-length: 120
58+
gci: # Splits all import blocks into different sections and sorts them.
59+
sections:
60+
- standard # Go official imports, like "fmt"
61+
- default # Third-party libraries (anything not in standard or prefix)
62+
- prefix(github.com/ray-project/kuberay) # kuberay packages
63+
skip-generated: true
64+
linters:
65+
enable:
66+
- asciicheck
67+
- errcheck
68+
- errorlint
69+
- gci
70+
- ginkgolinter
71+
# - gocyclo
72+
- gofmt
73+
- gofumpt
74+
- goimports
75+
- gosec
76+
- gosimple
77+
- govet
78+
- ineffassign
79+
# - lll
80+
- makezero
81+
- misspell
82+
- nilerr
83+
- noctx
84+
- nolintlint
85+
- predeclared
86+
- revive
87+
- staticcheck
88+
- typecheck
89+
- unconvert
90+
- unparam
91+
- unused
92+
- wastedassign
93+
- testifylint
94+
disable-all: true
95+
issues:
96+
max-issues-per-linter: 0
97+
max-same-issues: 0
98+
run:
99+
timeout: 3m

0 commit comments

Comments
 (0)