-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up logging and update golangci file (#340)
* Clean up logging Signed-off-by: Arrobo, Gabriel <[email protected]> * Update golangci file Signed-off-by: Arrobo, Gabriel <[email protected]> --------- Signed-off-by: Arrobo, Gabriel <[email protected]>
- Loading branch information
1 parent
ca31b27
commit a93e605
Showing
6 changed files
with
82 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2024 Intel Corporation | ||
# SPDX-FileCopyrightText: 2021 Open Networking Foundation <[email protected]> | ||
# Copyright 2019 free5GC.org | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# This file contains all available configuration options | ||
# with their default values. | ||
|
@@ -28,19 +27,6 @@ run: | |
# default is true. Enables skipping of directories: | ||
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ | ||
skip-dirs-use-default: true | ||
# which files to skip: they will be analyzed, but issues from them | ||
# won't be reported. Default value is empty list, but there is | ||
# no need to include all autogenerated files, we confidently recognize | ||
# autogenerated files. If it's not please let us know. | ||
# "/" will be replaced by current OS file path separator to properly work | ||
# on Windows. | ||
skip-files: | ||
- "api_.*\\.go$" | ||
- "model_.*\\.go$" | ||
- "routers.go" | ||
- "client.go" | ||
- "configuration.go" | ||
- "nas.go" | ||
# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules": | ||
# If invoked with -mod=readonly, the go command is disallowed from the implicit | ||
# automatic updating of go.mod described above. Instead, it fails when any changes | ||
|
@@ -56,7 +42,7 @@ run: | |
# output configuration options | ||
output: | ||
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" | ||
format: colored-line-number | ||
formats: colored-line-number | ||
# print lines of code with issue, default is true | ||
print-issued-lines: true | ||
# print linter name in the end of issue text, default is true | ||
|
@@ -139,10 +125,14 @@ linters-settings: | |
# minimal confidence for issues, default is 0.8 | ||
min-confidence: 0.8 | ||
gomnd: | ||
settings: | ||
mnd: | ||
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description. | ||
checks: argument,case,condition,operation,return,assign | ||
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description. | ||
checks: | ||
- argument | ||
- case | ||
- condition | ||
- operation | ||
- return | ||
- assign | ||
gomodguard: | ||
allowed: | ||
modules: # List of allowed modules | ||
|
@@ -160,8 +150,6 @@ linters-settings: | |
# version: "< 1.1.0" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons | ||
# reason: "testing if blocked version constraint works." # Reason why the version constraint exists. (Optional) | ||
govet: | ||
# report about shadowed variables | ||
check-shadowing: true | ||
# settings per analyzer | ||
settings: | ||
printf: # analyzer name, run `go tool vet help` to see all analyzers | ||
|
@@ -207,8 +195,6 @@ linters-settings: | |
whitespace: | ||
multi-if: false # Enforces newlines (or comments) after every multi-line if statement | ||
multi-func: false # Enforces newlines (or comments) after every multi-line function signature | ||
gci: | ||
local-prefixes: "bitbucket.org" | ||
misspell: | ||
#locale: US | ||
ignore-words: | ||
|
@@ -263,9 +249,9 @@ linters: | |
- dogsled | ||
# - bodyclose | ||
- asciicheck | ||
#- stylecheck | ||
# - stylecheck | ||
- unparam | ||
# - wsl | ||
# - wsl | ||
|
||
#disable-all: false | ||
fast: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.