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
9 changes: 5 additions & 4 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ jobs:
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
cache: true

- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.12.2

- name: Check formatting
run: |
Expand Down
16 changes: 8 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# golangci-lint configuration for roxie

version: 2
version: "2"

run:
timeout: 5m
Expand All @@ -15,23 +15,23 @@ linters:
- ineffassign # Detect ineffectual assignments
- misspell # Find commonly misspelled words

settings:
staticcheck:
checks: ["all", "-SA4009", "-ST1000", "-ST1003", "-ST1020"]
Comment thread
mclasmeier marked this conversation as resolved.

# Disable noisy linters
disable:
- errcheck # Too many false positives for cleanup code
- gosec # Security linter is too strict for dev tooling
- revive # Style linter is too opinionated
- unparam # Often flags valid parameter flexibility

linters-settings:
staticcheck:
checks: ["all", "-SA4009"] # Disable "argument is overwritten" check

issues:
# Don't limit the number of issues
max-issues-per-linter: 0
max-same-issues: 0

output:
print-issued-lines: true
print-linter-name: true
sort-results: true
formats:
text:
path: stdout
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ARG TARGETARCH

WORKDIR /build
USER root
ENV GOTOOLCHAIN=auto

# Copy go mod files first for better layer caching
COPY go.mod go.sum ./
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/stackrox/roxie

go 1.25.6
go 1.26

require (
dario.cat/mergo v1.0.2
Expand Down
Loading