forked from kubesphere/ks-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
150 lines (148 loc) · 5.63 KB
/
.golangci.yml
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# golangci-lint configuration from https://golangci-lint.run/usage/configuration/
# options for analysis running
run:
# default concurrency is a available CPU number
concurrency: 4
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
skip-dirs:
- .git
- .github
- bin
- docs
- hack
skip-files:
- cmd/allinone/app/entrypoint.go
- cmd/apiserver/app/server.go
- cmd/controller/app/server.go
- cmd/tools/jwt/app/configmap_updater.go
- cmd/tools/jwt/app/jwt_root.go
- cmd/tools/jwt/app/jwt_root_test.go
- controllers/devopscredential/devopscredential_controller.go
- controllers/devopsproject/devopsproject_controller.go
- controllers/pipeline/pipeline_controller.go
- controllers/suite_test.go
- pkg/api/devops/v1alpha1/register.go
- pkg/api/devops/v1alpha1/s2ibinary_types_test.go
- pkg/api/devops/v1alpha1/s2ibuilder_types.go
- pkg/api/devops/v1alpha1/s2ibuilder_types_test.go
- pkg/api/devops/v1alpha1/s2ibuildertemplate_types_test.go
- pkg/api/devops/v1alpha1/s2irun_types.go
- pkg/api/devops/v1alpha1/s2irun_types_test.go
- pkg/api/devops/v1alpha2/types.go
- pkg/api/devops/v1alpha3/pipeline_types.go
- pkg/api/types.go
- pkg/apiserver/apiserver.go
- pkg/apiserver/authentication/oauth/oauth_options.go
- pkg/jwt/token/issuer.go
- pkg/jwt/token/jwt.go
- pkg/apiserver/filters/requestinfo.go
- pkg/apiserver/query/types.go
- pkg/apiserver/request/context.go
- pkg/apiserver/request/context_test.go
- pkg/apiserver/request/requestinfo.go
- pkg/apiserver/runtime/runtime.go
- pkg/client/devops/build.go
- pkg/client/devops/credential.go
- pkg/client/devops/fake/fakedevops.go
- pkg/client/devops/jenkins/build.go
- pkg/client/devops/jenkins/constants.go
- pkg/client/devops/jenkins/credential.go
- pkg/client/devops/jenkins/folder.go
- pkg/client/devops/jenkins/internal/bitbucket.go
- pkg/client/devops/jenkins/internal/git.go
- pkg/client/devops/jenkins/internal/github.go
- pkg/client/devops/jenkins/internal/gitlab.go
- pkg/client/devops/jenkins/internal/svn.go
- pkg/client/devops/jenkins/jenkins.go
- pkg/client/devops/jenkins/job.go
- pkg/client/devops/jenkins/pipeline.go
- pkg/client/devops/jenkins/pipeline_internal.go
- pkg/client/devops/jenkins/pipeline_model_converter.go
- pkg/client/devops/jenkins/pipeline_test.go
- pkg/client/devops/jenkins/project.go
- pkg/client/devops/jenkins/project_pipeline.go
- pkg/client/devops/jenkins/pure_request.go
- pkg/client/devops/jenkins/request.go
- pkg/client/devops/jenkins/triggers/genericwebhook.go
- pkg/client/devops/jenkins/utils.go
- pkg/client/devops/pipeline.go
- pkg/client/devops/project.go
- pkg/client/devops/project_pipeline.go
- pkg/client/k8s/fake_client.go
- pkg/client/k8s/kubernetes.go
- pkg/client/k8s/null_client.go
- pkg/client/s3/fake/fakes3.go
- pkg/client/sonarqube/interface.go
- pkg/config/config.go
- pkg/constants/constants.go
- pkg/informers/informers.go
- pkg/informers/null_informers.go
- pkg/kapis/devops/v1alpha2/devops.go
- pkg/kapis/devops/v1alpha2/pipeline_sonar.go
- pkg/kapis/devops/v1alpha2/register.go
- pkg/kapis/devops/v1alpha2/s2ibinary.go
- pkg/kapis/oauth/handler.go
- pkg/models/devops/common.go
- pkg/models/devops/devops.go
- pkg/models/devops/devops_test.go
- pkg/models/devops/project.go
- pkg/models/devops/project_credential_handler.go
- pkg/models/devops/project_pipeline_sonar_handler.go
- pkg/server/errors/errors.go
- pkg/server/options/options.go
- pkg/server/params/params.go
- pkg/utils/idutils/id_utils.go
- pkg/utils/idutils/id_utils_test.go
- pkg/client/sonarqube/options.go
- pkg/client/sonarqube/sonarqube.go
- pkg/client/cache/simple_cache.go
- pkg/kapis/devops/v1alpha2.handler.go
- pkg/client/s3/s3.go
- pkg/utils/reflectutils/deep.go
- pkg/models/auth/token.go
- pkg/utils/hash.go
- pkg/utils/sliceutil/sliceutils.go
- pkg/apiserver/authentication/options/authenticate_options.go
- pkg/client/cache/redis.go
- pkg/models/devops/s2ibinary_handler.go
- pkg/client/devops/jenkins/options.go
- pkg/client/devops/jenkins/role.go
- pkg/client/devops/role.go
- pkg/api/devops/v1alpha3/devopsproject_types.go
- pkg/client/devops/jenkins/internal/pull_request.go
- controllers/fake_controller.go
- controllers/s2irun/s2irun_controller.go
- pkg/client/s3/interface.go
- pkg/client/k8s/options.go
- pkg/models/devops/jkerror.go
- pkg/client/devops/jenkins/devops.go
- pkg/utils/reflectutils/reflect.go
- pkg/api/devops/v1alpha1/s2ibinary_type.go
- pkg/client/devops/interface.go
- pkg/utils/stringutils/string.go
- pkg/models/resources/v1alpha3/devops/devops.go
- pkg/models/resources/v1alpha3/interface.go
- pkg/apiserver/query/field.go
- pkg/api/utils.go
- pkg/utils/readerutils/MD5Reader.go
- cmd/controller/app/options/options.go
- cmd/tools/jwt/app/kubernetes.go
- cmd/apiserver/app/options/options.go
- pkg/utils/net/net.go
- pkg/utils/hashutil/MD5.go
- pkg/kapis/oauth/register.go
- pkg/apiserver/authentication/authenticators/bearertoken/bearertoken.go
- pkg/apiserver/authentication/request/anonymous/anonymous.go
- pkg/client/cache/options.go
- pkg/api/devops/v1alpha1/s2ibuildertemplate_types.go
- pkg/api/devops/v1alpha1/s2ibinary_types.go
- pkg/client/cache/cache.go
issues:
exclude:
- EXC0012
- SA1019
exclude-use-default: false
linters:
enable:
- revive # replacement for golint