1
1
# SPDX-FileCopyrightText: 2024 Intel Corporation
2
2
# Copyright 2019 free5GC.org
3
+ #
3
4
# SPDX-License-Identifier: Apache-2.0
5
+ #
4
6
5
7
# This file contains all available configuration options
6
8
# with their default values.
25
27
skip-dirs :
26
28
# default is true. Enables skipping of directories:
27
29
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
28
- skip-dirs-use-default : true
29
30
# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
30
31
# If invoked with -mod=readonly, the go command is disallowed from the implicit
31
32
# automatic updating of go.mod described above. Instead, it fails when any changes
@@ -46,8 +47,6 @@ output:
46
47
print-issued-lines : true
47
48
# print linter name in the end of issue text, default is true
48
49
print-linter-name : true
49
- # make issues output unique by line, default is true
50
- uniq-by-line : true
51
50
# all available settings of specific linters
52
51
linters-settings :
53
52
errcheck :
@@ -119,7 +118,7 @@ linters-settings:
119
118
goimports :
120
119
# put imports beginning with prefix after 3rd-party packages;
121
120
# it's a comma-separated list of prefixes
122
- local-prefixes : github.com/org/ project
121
+ local-prefixes : github.com/omec- project
123
122
golint :
124
123
# minimal confidence for issues, default is 0.8
125
124
min-confidence : 0.8
@@ -194,27 +193,45 @@ linters-settings:
194
193
misspell :
195
194
# locale: US
196
195
ignore-words :
196
+ wsl :
197
+ # If true append is only allowed to be cuddled if appending value is
198
+ # matching variables, fields or types on line above. Default is true.
199
+ strict-append : true
200
+ # Allow calls and assignments to be cuddled as long as the lines have any
201
+ # matching variables, fields or types. Default is true.
202
+ allow-assign-and-call : true
203
+ # Allow multiline assignments to be cuddled. Default is true.
204
+ allow-multiline-assign : true
205
+ # Allow declarations (var) to be cuddled.
206
+ allow-cuddle-declarations : false
207
+ # Allow trailing comments in ending of blocks
208
+ allow-trailing-comment : true
209
+ # Force newlines in end of case at this limit (0 = never).
210
+ force-case-trailing-whitespace : 0
211
+ # Force cuddling of err checks with err var assignment
212
+ force-err-cuddling : false
213
+ # Allow leading comments to be separated with empty liens
214
+ allow-separated-leading-comment : false
197
215
custom :
198
216
# Each custom linter should have a unique name.
199
217
200
218
linters :
201
219
enable :
202
220
- gofmt
203
- - govet
221
+ # - govet
204
222
- errcheck
205
- - staticcheck
206
223
- unused
207
224
- gosimple
208
225
- ineffassign
209
226
- typecheck
210
227
# Additional
211
228
# - lll
212
229
- godox
213
- # - gomnd
230
+ # - mnd
214
231
- goconst
215
232
# - gocognit
216
233
# - nestif
217
- # - gomodguard
234
+ - gomodguard
218
235
# - nakedret
219
236
- gci
220
237
- misspell
@@ -239,15 +256,13 @@ issues:
239
256
# excluded by default patterns execute `golangci-lint run --help`
240
257
exclude :
241
258
# Excluding configuration per-path, per-linter, per-text and per-source
242
- exclude-files :
243
- - " routers.go"
244
259
exclude-rules :
245
260
# Exclude some linters from running on tests files.
246
261
# Independently from option `exclude` we use default exclude patterns,
247
262
# it can be disabled by this option. To list all
248
263
# excluded by default patterns execute `golangci-lint run --help`.
249
264
# Default value for this option is true.
250
- exclude-use-default : false
265
+ exclude-use-default : true
251
266
# The default value is false. If set to true exclude and exclude-rules
252
267
# regular expressions become case sensitive.
253
268
exclude-case-sensitive : false
@@ -269,6 +284,7 @@ issues:
269
284
new-from-rev : " "
270
285
# Show only new issues created in git patch with set file path.
271
286
# new-from-patch: path/to/patch/file
287
+ uniq-by-line : true
272
288
severity :
273
289
# Default value is empty string.
274
290
# Set the default severity for issues. If severity rules are defined and the issues
0 commit comments