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
2 changes: 1 addition & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# If you want to matrix build, you can append the following list.
matrix:
go_version:
- '1.20'
- '1.23'
os:
- ubuntu-latest

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
golang:
- '1.20'
- '1.23'
steps:
- uses: actions/setup-go@v3
with:
Expand All @@ -46,10 +46,8 @@ jobs:
go mod tidy

- name: golangci-lint
uses: golangci/golangci-lint-action@v3.4.0
uses: golangci/golangci-lint-action@v6
with:
version: v1.54
# golangci-lint version
version: v1.61
args: --timeout=10m
skip-go-installation: true
skip-pkg-cache: true
skip-build-cache: true
31 changes: 7 additions & 24 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0
gocyclo:
min-complexity: 10
maligned:
suggest-new: true
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2
depguard:
list-type: blacklist
packages:
# logging is allowed only by logutils.Log, logrus
# is allowed to use only in logutils package
- github.com/sirupsen/logrus
misspell:
locale: US
rules:
main:
deny:
- pkg: "github.com/sirupsen/logrus"
desc: logging is allowed only by logutils.Log, logrus, is allowed to use only in logutils package
lll:
line-length: 140
goimports:
Expand All @@ -35,17 +27,14 @@ linters-settings:
linters:
disable-all: true
enable:
- govet
- staticcheck
- ineffassign
- misspell

run:
skip-dirs:
issues:
exclude-dirs:
- test/testdata_etc
- pkg/golinters/goanalysis/(checker|passes)

issues:
exclude-rules:
- text: "weak cryptographic primitive"
linters:
Expand All @@ -54,10 +43,4 @@ issues:
- staticcheck
text: "SA1019:"

# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.15.x # use the fixed version to not introduce new linters unexpectedly
prepare:
- echo "here I can run custom commands, but no preparation needed for this repo"

4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,4 @@ replace (
go.opentelemetry.io/otel/trace => go.opentelemetry.io/otel/trace v1.10.0
)

go 1.23.0

toolchain go1.23.2
go 1.23