Skip to content

Commit 46528b1

Browse files
authored
Update .golangci.yml file by removing deprecated options (#199)
Signed-off-by: Arrobo, Gabriel <[email protected]>
1 parent 946afc0 commit 46528b1

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

.golangci.yml

+27-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# SPDX-FileCopyrightText: 2024 Intel Corporation
22
# Copyright 2019 free5GC.org
3+
#
34
# SPDX-License-Identifier: Apache-2.0
5+
#
46

57
# This file contains all available configuration options
68
# with their default values.
@@ -25,7 +27,6 @@ run:
2527
skip-dirs:
2628
# default is true. Enables skipping of directories:
2729
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
28-
skip-dirs-use-default: true
2930
# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
3031
# If invoked with -mod=readonly, the go command is disallowed from the implicit
3132
# automatic updating of go.mod described above. Instead, it fails when any changes
@@ -46,8 +47,6 @@ output:
4647
print-issued-lines: true
4748
# print linter name in the end of issue text, default is true
4849
print-linter-name: true
49-
# make issues output unique by line, default is true
50-
uniq-by-line: true
5150
# all available settings of specific linters
5251
linters-settings:
5352
errcheck:
@@ -119,7 +118,7 @@ linters-settings:
119118
goimports:
120119
# put imports beginning with prefix after 3rd-party packages;
121120
# it's a comma-separated list of prefixes
122-
local-prefixes: github.com/org/project
121+
local-prefixes: github.com/omec-project
123122
golint:
124123
# minimal confidence for issues, default is 0.8
125124
min-confidence: 0.8
@@ -194,27 +193,45 @@ linters-settings:
194193
misspell:
195194
#locale: US
196195
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
197215
custom:
198216
# Each custom linter should have a unique name.
199217

200218
linters:
201219
enable:
202220
- gofmt
203-
- govet
221+
# - govet
204222
- errcheck
205-
- staticcheck
206223
- unused
207224
- gosimple
208225
- ineffassign
209226
- typecheck
210227
# Additional
211228
# - lll
212229
- godox
213-
#- gomnd
230+
# - mnd
214231
- goconst
215232
# - gocognit
216233
# - nestif
217-
# - gomodguard
234+
- gomodguard
218235
# - nakedret
219236
- gci
220237
- misspell
@@ -239,15 +256,13 @@ issues:
239256
# excluded by default patterns execute `golangci-lint run --help`
240257
exclude:
241258
# Excluding configuration per-path, per-linter, per-text and per-source
242-
exclude-files:
243-
- "routers.go"
244259
exclude-rules:
245260
# Exclude some linters from running on tests files.
246261
# Independently from option `exclude` we use default exclude patterns,
247262
# it can be disabled by this option. To list all
248263
# excluded by default patterns execute `golangci-lint run --help`.
249264
# Default value for this option is true.
250-
exclude-use-default: false
265+
exclude-use-default: true
251266
# The default value is false. If set to true exclude and exclude-rules
252267
# regular expressions become case sensitive.
253268
exclude-case-sensitive: false
@@ -269,6 +284,7 @@ issues:
269284
new-from-rev: ""
270285
# Show only new issues created in git patch with set file path.
271286
#new-from-patch: path/to/patch/file
287+
uniq-by-line: true
272288
severity:
273289
# Default value is empty string.
274290
# Set the default severity for issues. If severity rules are defined and the issues

0 commit comments

Comments
 (0)