@@ -152,10 +152,10 @@ linters-settings:
152
152
# Settings passed to gocritic.
153
153
# The settings key is the name of a supported gocritic checker.
154
154
# The list of supported checkers can be find in https://go-critic.github.io/overview.
155
- settings :
155
+ settings :
156
156
captLocal : # must be valid enabled check name
157
157
# whether to restrict checker to params only (default true)
158
- paramsOnly : true
158
+ paramsOnly : true
159
159
elseif :
160
160
# whether to skip balanced if-else pairs (default true)
161
161
skipBalanced : true
@@ -219,13 +219,13 @@ linters-settings:
219
219
#
220
220
# {{ AUTHOR }} {{ COMPANY }} {{ YEAR }}
221
221
# SPDX-License-Identifier: Apache-2.0
222
-
222
+
223
223
# Licensed under the Apache License, Version 2.0 (the "License");
224
224
# you may not use this file except in compliance with the License.
225
225
# You may obtain a copy of the License at:
226
-
226
+
227
227
# http://www.apache.org/licenses/LICENSE-2.0
228
-
228
+
229
229
# Unless required by applicable law or agreed to in writing, software
230
230
# distributed under the License is distributed on an "AS IS" BASIS,
231
231
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -321,6 +321,11 @@ linters-settings:
321
321
simple : true
322
322
range-loops : true # Report preallocation suggestions on range loops, true by default
323
323
for-loops : false # Report preallocation suggestions on for loops, false by default
324
+ predeclared :
325
+ # comma-separated list of predeclared identifiers to not report on
326
+ ignore : " "
327
+ # include method names and field names (i.e., qualified names) in checks
328
+ q : false
324
329
nolintlint :
325
330
# Enable to ensure that nolint directives are all used. Default is true.
326
331
allow-unused : false
0 commit comments