...
1# Copyright 2022 Google LLC.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# .golangci.yml
15linters:
16 disable-all: true
17 enable:
18 - goimports
19 - revive
20issues:
21 exclude-use-default: false
22linters-settings:
23 revive:
24 rules:
25 - name: blank-imports
26 - name: context-as-argument
27 - name: context-keys-type
28 - name: dot-imports
29 - name: error-return
30 - name: error-strings
31 - name: error-naming
32 - name: exported
33 - name: if-return
34 - name: increment-decrement
35 - name: var-naming
36 - name: var-declaration
37 - name: range
38 - name: receiver-naming
39 - name: time-naming
40 - name: unexported-return
41 - name: indent-error-flow
42 - name: errorf
43 - name: empty-block
44 - name: superfluous-else
45 - name: unused-parameter
46 - name: unreachable-code
47 - name: redefines-builtin-id
48 - name: range-val-in-closure
49 - name: range-val-address
50 - name: import-shadowing
View as plain text