From: Martin Dosch Date: Thu, 6 Nov 2025 18:57:15 +0100 Subject: Fix integer overflow on 32bit architectures https://github.com/gabriel-vasile/mimetype/pull/733 --- .golangci.yml | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 5b30cd6..e8f6c1f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -11,26 +11,28 @@ linters: - gosec # Detects security problems. # Keep all extras disabled for now to focus on the integer overflow problem. # TODO: enable these and other good linters - - dogsled # Detects assignments with too many blank identifiers. - - errcheck - - errchkjson # Detects unsupported types passed to json encoding functions and reports if checks for the returned error can be omitted. - - exhaustive # Detects missing options in enum switch statements. - - gocyclo - - govet - - ineffassign - - makezero # Finds slice declarations with non-zero initial length. - - misspell # Detects commonly misspelled English words in comments. - - nakedret # Detects uses of naked returns. - - prealloc # Detects slice declarations that could potentially be pre-allocated. - - predeclared # Detects code that shadows one of Go's predeclared identifiers. - - reassign # Detects reassigning a top-level variable in another package. - - staticcheck - - thelper # Detects test helpers without t.Helper(). - - tparallel # Detects inappropriate usage of t.Parallel(). - - unconvert # Detects unnecessary type conversions. - - unused - - usestdlibvars # Detects the possibility to use variables/constants from the Go standard library. - - usetesting # Reports uses of functions with replacement inside the testing package. + # - dogsled # Detects assignments with too many blank identifiers. + # - errcheck + # - errchkjson # Detects unsupported types passed to json encoding functions and reports if checks for the returned error can be omitted. + # - exhaustive # Detects missing options in enum switch statements. + # - gocyclo + # - govet + # - ineffassign + # - makezero # Finds slice declarations with non-zero initial length. + # - misspell # Detects commonly misspelled English words in comments. + # - nakedret # Detects uses of naked returns. + # - prealloc # Detects slice declarations that could potentially be pre-allocated. + # - predeclared # Detects code that shadows one of Go's predeclared identifiers. + # - reassign # Detects reassigning a top-level variable in another package. + # - staticcheck + # - thelper # Detects test helpers without t.Helper(). + # - tparallel # Detects inappropriate usage of t.Parallel(). + # - unconvert # Detects unnecessary type conversions. + # - unused + # - usestdlibvars # Detects the possibility to use variables/constants from the Go standard library. + # - usetesting # Reports uses of functions with replacement inside the testing package. + # - usestdlibvars # Detects the possibility to use variables/constants from the Go standard library. + # - usetesting # Reports uses of functions with replacement inside the testing package. settings: govet: disable: