Skip to content

Commit f2f322e

Browse files
committed
add vulncheck to reference
1 parent 4d3b3af commit f2f322e

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.golangci.reference.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,6 +1848,9 @@ linters-settings:
18481848
- T any
18491849
- m map[string]int
18501850

1851+
vulncheck:
1852+
vuln-database: [https://vuln.go.dev]
1853+
18511854
whitespace:
18521855
# Enforces newlines (or comments) after every multi-line if statement.
18531856
# Default: false
@@ -1892,48 +1895,48 @@ linters-settings:
18921895
# this is set to true - the append call must append either a variable
18931896
# assigned, called or used on the line above.
18941897
strict-append: true
1895-
1898+
18961899
# Allows assignments to be cuddled with variables used in calls on
18971900
# line above and calls to be cuddled with assignments of variables
18981901
# used in call on line above.
18991902
allow-assign-and-call: true
1900-
1903+
19011904
# Allows assignments to be cuddled with anything.
19021905
allow-assign-and-anything: false
1903-
1906+
19041907
# Allows cuddling to assignments even if they span over multiple lines.
19051908
allow-multiline-assign: true
1906-
1909+
19071910
# If the number of lines in a case block is equal to or lager than this
19081911
# number, the case *must* end white a newline.
19091912
force-case-trailing-whitespace: 0
1910-
1913+
19111914
# Allow blocks to end with comments.
19121915
allow-trailing-comment: false
1913-
1916+
19141917
# Allow multiple comments in the beginning of a block separated with newline.
19151918
allow-separated-leading-comment: false
1916-
1919+
19171920
# Allow multiple var/declaration statements to be cuddled.
19181921
allow-cuddle-declarations: false
1919-
1922+
19201923
# A list of call idents that everything can be cuddled with.
19211924
# Defaults to calls looking like locks.
19221925
allow-cuddle-with-calls: [ "Lock", "RLock" ]
1923-
1926+
19241927
# AllowCuddleWithRHS is a list of right hand side variables that is allowed
19251928
# to be cuddled with anything. Defaults to assignments or calls looking
19261929
# like unlocks.
19271930
allow-cuddle-with-rhs: [ "Unlock", "RUnlock" ]
1928-
1931+
19291932
# Causes an error when an If statement that checks an error variable doesn't
19301933
# cuddle with the assignment of that variable.
19311934
enforce-err-cuddling: false
1932-
1935+
19331936
# When enforce-err-cuddling is enabled this is a list of names
19341937
# used for error variables to check for in the conditional.
19351938
error-variable-names: [ "err" ]
1936-
1939+
19371940
# Causes an error if a short declaration (:=) cuddles with anything other than
19381941
# another short declaration.
19391942
# This logic overrides enforce-err-cuddling among others.
@@ -2058,6 +2061,7 @@ linters:
20582061
- usestdlibvars
20592062
- varcheck
20602063
- varnamelen
2064+
- vulncheck
20612065
- wastedassign
20622066
- whitespace
20632067
- wrapcheck
@@ -2165,6 +2169,7 @@ linters:
21652169
- usestdlibvars
21662170
- varcheck
21672171
- varnamelen
2172+
- vulncheck
21682173
- wastedassign
21692174
- whitespace
21702175
- wrapcheck

0 commit comments

Comments
 (0)