Skip to content

Commit

Permalink
chore: remove warnings on .golangci.yaml
Browse files Browse the repository at this point in the history
Update the go linter configuration file to
remove several warnings in relation with deprecated
fields.

Signed-off-by: Alejandro Visiedo <[email protected]>
  • Loading branch information
avisiedo authored and frasertweedale committed Aug 9, 2024
1 parent edf1cd2 commit 3e4f214
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ run:
# build-tags:
# - mytag

# Which dirs to skip: issues from them won't be reported.
# Which dirs to exclude: issues from them won't be reported.
# Can use regexp here: `generated.*`, regexp is applied on full path.
# Default value is empty list,
# but default dirs are skipped independently of this option's value (see skip-dirs-use-default).
# "/" will be replaced by current OS file path separator to properly work on Windows.
skip-dirs:
exclude-dirs:
- deploy
- secrets
- scripts
Expand All @@ -41,18 +41,18 @@ run:
- secrets
- internal/test/mock

# Enables skipping of directories:
# Enables excluding of directories:
# - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
# Default: true
skip-dirs-use-default: false
exclude-dirs-use-default: false

# Which files to skip: they will be analyzed, but issues from them won't be reported.
# Which files to exclude: 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:
exclude-files:
- ".*\\.gen\\.go$"

# If set we pass it to "go list -mod={option}". From "go help modules":
Expand All @@ -79,15 +79,15 @@ run:

# output configuration options
output:
# Format: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
# Formats: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
#
# Multiple can be specified by separating them by comma, output can be provided
# for each of them by separating format name and path by colon symbol.
# Output path can be either `stdout`, `stderr` or path to the file to write to.
# Example: "checkstyle:report.json,colored-line-number"
#
# Default: colored-line-number
format: line-number
formats: line-number
# Print lines of code with issue.
# Default: true
print-issued-lines: false
Expand Down Expand Up @@ -331,7 +331,7 @@ linters-settings:
min-complexity: 10
govet:
# https://golangci-lint.run/usage/linters/#govet
check-shadowing: true
shadow: true
settings:
printf:
funcs:
Expand All @@ -344,7 +344,6 @@ linters-settings:
enable-all: true
gofumpt:
# https://golangci-lint.run/usage/linters/#gofumpt
lang-version: "1.21"
module-path: github.com/podengo-project/idmsvc-backend
extra-rules: true
testifylint:
Expand Down

0 comments on commit 3e4f214

Please sign in to comment.