| 1 |
From: Martin Dosch <[email protected]> |
| 2 |
Date: Thu, 6 Nov 2025 18:57:15 +0100 |
| 3 |
Subject: Fix integer overflow on 32bit architectures |
| 4 |
|
| 5 |
https://github.com/gabriel-vasile/mimetype/pull/733 |
| 6 |
--- |
| 7 |
.golangci.yml | 42 ++++++++++++++++++++++-------------------- |
| 8 |
1 file changed, 22 insertions(+), 20 deletions(-) |
| 9 |
|
| 10 |
diff --git a/.golangci.yml b/.golangci.yml |
| 11 |
index 5b30cd6..e8f6c1f 100644 |
| 12 |
--- a/.golangci.yml |
| 13 |
+++ b/.golangci.yml |
| 14 |
@@ -11,26 +11,28 @@ linters: |
| 15 |
- gosec # Detects security problems. |
| 16 |
# Keep all extras disabled for now to focus on the integer overflow problem. |
| 17 |
# TODO: enable these and other good linters |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
+ # - dogsled # Detects assignments with too many blank identifiers. |
| 39 |
+ # - errcheck |
| 40 |
+ # - errchkjson # Detects unsupported types passed to json encoding functions and reports if checks for the returned error can be omitted. |
| 41 |
+ # - exhaustive # Detects missing options in enum switch statements. |
| 42 |
+ # - gocyclo |
| 43 |
+ # - govet |
| 44 |
+ # - ineffassign |
| 45 |
+ # - makezero # Finds slice declarations with non-zero initial length. |
| 46 |
+ # - misspell # Detects commonly misspelled English words in comments. |
| 47 |
+ # - nakedret # Detects uses of naked returns. |
| 48 |
+ # - prealloc # Detects slice declarations that could potentially be pre-allocated. |
| 49 |
+ # - predeclared # Detects code that shadows one of Go's predeclared identifiers. |
| 50 |
+ # - reassign # Detects reassigning a top-level variable in another package. |
| 51 |
+ # - staticcheck |
| 52 |
+ # - thelper # Detects test helpers without t.Helper(). |
| 53 |
+ # - tparallel # Detects inappropriate usage of t.Parallel(). |
| 54 |
+ # - unconvert # Detects unnecessary type conversions. |
| 55 |
+ # - unused |
| 56 |
+ # - usestdlibvars # Detects the possibility to use variables/constants from the Go standard library. |
| 57 |
+ # - usetesting # Reports uses of functions with replacement inside the testing package. |
| 58 |
+ # - usestdlibvars # Detects the possibility to use variables/constants from the Go standard library. |
| 59 |
+ # - usetesting # Reports uses of functions with replacement inside the testing package. |
| 60 |
settings: |
| 61 |
govet: |
| 62 |
disable: |