Skip to content

Commit c5c138e

Browse files
[create-pull-request] automated change
1 parent 8c4cfb6 commit c5c138e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.golangci.reference.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1387,14 +1387,16 @@ linters-settings:
13871387
min-complexity: 4
13881388

13891389
nilnil:
1390-
# Checks that there is no simultaneous return of `nil` error and an invalid value.
1391-
# Default: ["ptr", "func", "iface", "map", "chan"]
1390+
# List of return types to check.
1391+
# Default: ["ptr", "func", "iface", "map", "chan", "uintptr", "unsafeptr"]
13921392
checked-types:
13931393
- ptr
13941394
- func
13951395
- iface
13961396
- map
13971397
- chan
1398+
- uintptr
1399+
- unsafeptr
13981400

13991401
nlreturn:
14001402
# Size of the block (including return statement that is still "OK")

jsonschema/golangci.jsonschema.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2082,11 +2082,11 @@
20822082
"properties": {
20832083
"checked-types": {
20842084
"type": "array",
2085-
"description": "Order of return types to check.",
2085+
"description": "List of return types to check.",
20862086
"items": {
2087-
"enum": ["ptr", "func", "iface", "map", "chan"]
2087+
"enum": ["ptr", "func", "iface", "map", "chan", "uintptr", "unsafeptr"]
20882088
},
2089-
"default": ["ptr", "func", "iface", "map", "chan"]
2089+
"default": ["ptr", "func", "iface", "map", "chan", "uintptr", "unsafeptr"]
20902090
}
20912091
}
20922092
},

0 commit comments

Comments
 (0)