Skip to content

Commit 3723d3b

Browse files
committed
Fix GolanCI linter conifg
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
1 parent aa17adf commit 3723d3b

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
- name: golangci-lint
3030
uses: golangci/golangci-lint-action@v8
3131
with:
32-
version: v2.0.2
33-
args: --config .golangci.yml
32+
version: v2.1.6
33+
args: --config .golangci.yaml
3434

3535
- name: Build Binaries
3636
run: |

.golangci.yml renamed to .golangci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
# Copyright (c) Abstract Machines
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
version: "2"
5+
run:
6+
timeout: 10m
7+
build-tags:
8+
- nats
29
linters:
310
default: none
411
enable:
512
- asasalint
613
- asciicheck
714
- bidichk
15+
- contextcheck
816
- copyloopvar
917
- decorder
1018
- dogsled
@@ -70,6 +78,15 @@ linters:
7078
- common-false-positives
7179
- legacy
7280
- std-error-handling
81+
rules:
82+
- path: (.+)\.go$
83+
text: |-
84+
string `Usage:
85+
` has (\d+) occurrences, make it a constant
86+
- path: (.+)\.go$
87+
text: |-
88+
string `For example:
89+
` has (\d+) occurrences, make it a constant
7390
paths:
7491
- third_party$
7592
- builtin$

0 commit comments

Comments
 (0)