Skip to content

Commit 5d1a90a

Browse files
authored
Update .golangci.yml file by removing deprecated options (#190)
Signed-off-by: Arrobo, Gabriel <[email protected]>
1 parent e96e1ff commit 5d1a90a

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

.golangci.yml

+27-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
# SPDX-FileCopyrightText: 2024 Intel Corporation
12
# Copyright 2019 free5GC.org
3+
#
24
# SPDX-License-Identifier: Apache-2.0
5+
#
36

47
# This file contains all available configuration options
58
# with their default values.
@@ -24,7 +27,6 @@ run:
2427
skip-dirs:
2528
# default is true. Enables skipping of directories:
2629
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
27-
skip-dirs-use-default: true
2830
# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
2931
# If invoked with -mod=readonly, the go command is disallowed from the implicit
3032
# automatic updating of go.mod described above. Instead, it fails when any changes
@@ -45,8 +47,6 @@ output:
4547
print-issued-lines: true
4648
# print linter name in the end of issue text, default is true
4749
print-linter-name: true
48-
# make issues output unique by line, default is true
49-
uniq-by-line: true
5050
# all available settings of specific linters
5151
linters-settings:
5252
errcheck:
@@ -118,7 +118,7 @@ linters-settings:
118118
goimports:
119119
# put imports beginning with prefix after 3rd-party packages;
120120
# it's a comma-separated list of prefixes
121-
local-prefixes: github.com/org/project
121+
local-prefixes: github.com/omec-project
122122
golint:
123123
# minimal confidence for issues, default is 0.8
124124
min-confidence: 0.8
@@ -193,13 +193,32 @@ linters-settings:
193193
misspell:
194194
#locale: US
195195
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
196215
custom:
197216
# Each custom linter should have a unique name.
198217

199218
linters:
200219
enable:
201220
- gofmt
202-
- govet
221+
# - govet
203222
# - errcheck
204223
- unused
205224
- gosimple
@@ -225,7 +244,7 @@ linters:
225244
# - bodyclose
226245
- asciicheck
227246
# - stylecheck
228-
# - unparam
247+
- unparam
229248
# - wsl
230249

231250
#disable-all: false
@@ -237,15 +256,13 @@ issues:
237256
# excluded by default patterns execute `golangci-lint run --help`
238257
exclude:
239258
# Excluding configuration per-path, per-linter, per-text and per-source
240-
exclude-files:
241-
- "routers.go"
242259
exclude-rules:
243260
# Exclude some linters from running on tests files.
244261
# Independently from option `exclude` we use default exclude patterns,
245262
# it can be disabled by this option. To list all
246263
# excluded by default patterns execute `golangci-lint run --help`.
247264
# Default value for this option is true.
248-
exclude-use-default: false
265+
exclude-use-default: true
249266
# The default value is false. If set to true exclude and exclude-rules
250267
# regular expressions become case sensitive.
251268
exclude-case-sensitive: false
@@ -267,6 +284,7 @@ issues:
267284
new-from-rev: ""
268285
# Show only new issues created in git patch with set file path.
269286
#new-from-patch: path/to/patch/file
287+
uniq-by-line: true
270288
severity:
271289
# Default value is empty string.
272290
# Set the default severity for issues. If severity rules are defined and the issues

0 commit comments

Comments
 (0)