Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml → .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ jobs:
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.22.x
cache-dependency-path: "go.sum"

- name: golangci-lint
uses: golangci/golangci-lint-action@v7
uses: golangci/golangci-lint-action@v8
with:
version: v2.0.2
args: --config .golangci.yml
version: v2.1.6
args: --config .golangci.yaml

- name: Build Binaries
run: |
Expand Down
17 changes: 17 additions & 0 deletions .golangci.yml → .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0

version: "2"
run:
timeout: 10m
build-tags:
- nats
linters:
default: none
enable:
- asasalint
- asciicheck
- bidichk
- contextcheck
- copyloopvar
- decorder
- dogsled
Expand Down Expand Up @@ -70,6 +78,15 @@ linters:
- common-false-positives
- legacy
- std-error-handling
rules:
- path: (.+)\.go$
text: |-
string `Usage:
` has (\d+) occurrences, make it a constant
- path: (.+)\.go$
text: |-
string `For example:
` has (\d+) occurrences, make it a constant
paths:
- third_party$
- builtin$
Expand Down
Loading