1
+ # SPDX-FileCopyrightText: 2024 Intel Corporation
1
2
# Copyright 2019 free5GC.org
3
+ #
2
4
# SPDX-License-Identifier: Apache-2.0
5
+ #
3
6
4
7
# This file contains all available configuration options
5
8
# with their default values.
24
27
skip-dirs :
25
28
# default is true. Enables skipping of directories:
26
29
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
27
- skip-dirs-use-default : true
28
30
# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
29
31
# If invoked with -mod=readonly, the go command is disallowed from the implicit
30
32
# automatic updating of go.mod described above. Instead, it fails when any changes
@@ -45,8 +47,6 @@ output:
45
47
print-issued-lines : true
46
48
# print linter name in the end of issue text, default is true
47
49
print-linter-name : true
48
- # make issues output unique by line, default is true
49
- uniq-by-line : true
50
50
# all available settings of specific linters
51
51
linters-settings :
52
52
errcheck :
@@ -118,7 +118,7 @@ linters-settings:
118
118
goimports :
119
119
# put imports beginning with prefix after 3rd-party packages;
120
120
# it's a comma-separated list of prefixes
121
- local-prefixes : github.com/org/ project
121
+ local-prefixes : github.com/omec- project
122
122
golint :
123
123
# minimal confidence for issues, default is 0.8
124
124
min-confidence : 0.8
@@ -193,13 +193,32 @@ linters-settings:
193
193
misspell :
194
194
# locale: US
195
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
196
215
custom :
197
216
# Each custom linter should have a unique name.
198
217
199
218
linters :
200
219
enable :
201
220
- gofmt
202
- - govet
221
+ # - govet
203
222
# - errcheck
204
223
- unused
205
224
- gosimple
@@ -225,7 +244,7 @@ linters:
225
244
# - bodyclose
226
245
- asciicheck
227
246
# - stylecheck
228
- # - unparam
247
+ - unparam
229
248
# - wsl
230
249
231
250
# disable-all: false
@@ -237,15 +256,13 @@ issues:
237
256
# excluded by default patterns execute `golangci-lint run --help`
238
257
exclude :
239
258
# Excluding configuration per-path, per-linter, per-text and per-source
240
- exclude-files :
241
- - " routers.go"
242
259
exclude-rules :
243
260
# Exclude some linters from running on tests files.
244
261
# Independently from option `exclude` we use default exclude patterns,
245
262
# it can be disabled by this option. To list all
246
263
# excluded by default patterns execute `golangci-lint run --help`.
247
264
# Default value for this option is true.
248
- exclude-use-default : false
265
+ exclude-use-default : true
249
266
# The default value is false. If set to true exclude and exclude-rules
250
267
# regular expressions become case sensitive.
251
268
exclude-case-sensitive : false
@@ -267,6 +284,7 @@ issues:
267
284
new-from-rev : " "
268
285
# Show only new issues created in git patch with set file path.
269
286
# new-from-patch: path/to/patch/file
287
+ uniq-by-line : true
270
288
severity :
271
289
# Default value is empty string.
272
290
# Set the default severity for issues. If severity rules are defined and the issues
0 commit comments