@@ -80,7 +80,7 @@ output:
80
80
# Multiple can be specified by separating them by comma, output can be provided
81
81
# for each of them by separating format name and path by colon symbol.
82
82
# Output path can be either `stdout`, `stderr` or path to the file to write to.
83
- # Example: "checkstyle:report.json,colored-line-number"
83
+ # Example: "checkstyle:report.xml, json:stdout ,colored-line-number"
84
84
#
85
85
# Default: colored-line-number
86
86
format : json
@@ -1394,6 +1394,13 @@ linters-settings:
1394
1394
severity : warning
1395
1395
disabled : false
1396
1396
arguments : [ 7 ]
1397
+ # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#comment-spacings
1398
+ - name : comment-spacings
1399
+ severity : warning
1400
+ disabled : false
1401
+ arguments :
1402
+ - mypragma
1403
+ - otherpragma
1397
1404
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#confusing-naming
1398
1405
- name : confusing-naming
1399
1406
severity : warning
@@ -1800,7 +1807,7 @@ linters-settings:
1800
1807
# Suggest the use of rpc.DefaultXXPath.
1801
1808
# Default: false
1802
1809
default-rpc-path : true
1803
- # Suggest the use of os.DevNull.
1810
+ # DEPRECATED Suggest the use of os.DevNull.
1804
1811
# Default: false
1805
1812
os-dev-null : true
1806
1813
# Suggest the use of sql.LevelXX.String().
@@ -1812,7 +1819,7 @@ linters-settings:
1812
1819
# Suggest the use of constant.Kind.String().
1813
1820
# Default: false
1814
1821
constant-kind : true
1815
- # Suggest the use of syslog.Priority.
1822
+ # DEPRECATED Suggest the use of syslog.Priority.
1816
1823
# Default: false
1817
1824
syslog-priority : true
1818
1825
@@ -1924,48 +1931,48 @@ linters-settings:
1924
1931
# this is set to true - the append call must append either a variable
1925
1932
# assigned, called or used on the line above.
1926
1933
strict-append : true
1927
-
1934
+
1928
1935
# Allows assignments to be cuddled with variables used in calls on
1929
1936
# line above and calls to be cuddled with assignments of variables
1930
1937
# used in call on line above.
1931
1938
allow-assign-and-call : true
1932
-
1939
+
1933
1940
# Allows assignments to be cuddled with anything.
1934
1941
allow-assign-and-anything : false
1935
-
1942
+
1936
1943
# Allows cuddling to assignments even if they span over multiple lines.
1937
1944
allow-multiline-assign : true
1938
-
1945
+
1939
1946
# If the number of lines in a case block is equal to or lager than this
1940
1947
# number, the case *must* end white a newline.
1941
1948
force-case-trailing-whitespace : 0
1942
-
1949
+
1943
1950
# Allow blocks to end with comments.
1944
1951
allow-trailing-comment : false
1945
-
1952
+
1946
1953
# Allow multiple comments in the beginning of a block separated with newline.
1947
1954
allow-separated-leading-comment : false
1948
-
1955
+
1949
1956
# Allow multiple var/declaration statements to be cuddled.
1950
1957
allow-cuddle-declarations : false
1951
-
1958
+
1952
1959
# A list of call idents that everything can be cuddled with.
1953
1960
# Defaults to calls looking like locks.
1954
1961
allow-cuddle-with-calls : [ "Lock", "RLock" ]
1955
-
1962
+
1956
1963
# AllowCuddleWithRHS is a list of right hand side variables that is allowed
1957
1964
# to be cuddled with anything. Defaults to assignments or calls looking
1958
1965
# like unlocks.
1959
1966
allow-cuddle-with-rhs : [ "Unlock", "RUnlock" ]
1960
-
1967
+
1961
1968
# Causes an error when an If statement that checks an error variable doesn't
1962
1969
# cuddle with the assignment of that variable.
1963
1970
force-err-cuddling : false
1964
-
1971
+
1965
1972
# When force-err-cuddling is enabled this is a list of names
1966
1973
# used for error variables to check for in the conditional.
1967
1974
error-variable-names : [ "err" ]
1968
-
1975
+
1969
1976
# Causes an error if a short declaration (:=) cuddles with anything other than
1970
1977
# another short declaration.
1971
1978
# This logic overrides force-err-cuddling among others.
0 commit comments