Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Origin: https://github.com/powerman/golangci-lint-strict version 2.12.2
# Origin: https://github.com/powerman/golangci-lint-strict version 2.15.0
version: "2"
linters:
default: all
Expand Down Expand Up @@ -76,12 +76,14 @@ linters:
exhaustive:
check:
- switch
- map
explicit-exhaustive-map: true # Only check maps with "//exhaustive:enforce" comment.
- mapliteral
explicit-exhaustive: true # Only check maps with "//exhaustive:enforce" comment.
exhaustruct_v5:
explicit-mode: true # Only check structs marked with "//exhaustruct:enforce" comment.
fatcontext:
check-struct-pointers: true
check-loops: false
check-function-literals: false
forbidigo:
forbid:
- pattern: ^print(ln)?$
Expand Down Expand Up @@ -182,6 +184,7 @@ linters:
revive:
directives:
- name: specify-disable-reason
- name: specify-disable-rule
rules:
- name: add-constant
disabled: true # Duplicates goconst and mnd linters.
Expand Down Expand Up @@ -262,11 +265,13 @@ linters:
- name: inefficient-map-lookup
- name: line-length-limit
disabled: true # Duplicates lll linter.
- name: marshal-receiver
- name: max-control-nesting
- name: max-public-structs
disabled: true # Questionable.
- name: modifies-parameter
- name: modifies-value-receiver
- name: multiline-if-init
- name: nested-structs
disabled: true # Questionable (useful in tests, may worth enabling for non-tests).
- name: optimize-operands-order
Expand Down Expand Up @@ -306,6 +311,7 @@ linters:
- name: unnecessary-if
- name: unnecessary-stmt
- name: unreachable-code
- name: use-slices-concat
- name: use-slices-sort
- name: unsecure-url-scheme
- name: unused-parameter
Expand Down
44 changes: 22 additions & 22 deletions mise.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading