Skip to content

Commit 70ab565

Browse files
Bump the gh-dependency group in /.github/workflows with 2 updates (#91)
* Bump the gh-dependency group in /.github/workflows with 2 updates Bumps the gh-dependency group in /.github/workflows with 2 updates: [actions/setup-go](https://github.com/actions/setup-go) and [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action). Updates `actions/setup-go` from 4 to 5 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](actions/setup-go@v4...v5) Updates `golangci/golangci-lint-action` from 7 to 8 - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v7...v8) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-dependency - dependency-name: golangci/golangci-lint-action dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-dependency ... Signed-off-by: dependabot[bot] <support@github.com> * Fix GolanCI linter conifg Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
1 parent 5795058 commit 70ab565

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: Setup Go
24-
uses: actions/setup-go@v4
24+
uses: actions/setup-go@v5
2525
with:
2626
go-version: 1.22.x
2727
cache-dependency-path: "go.sum"
2828

2929
- name: golangci-lint
30-
uses: golangci/golangci-lint-action@v7
30+
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)