diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 141cc8b..1b31f51 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,7 +8,7 @@ jobs: lint: name: GolangCI Lint runs-on: ubuntu-latest - container: golangci/golangci-lint:v1.46-alpine + container: golangci/golangci-lint:v1.50-alpine steps: - name: Checkout repository @@ -20,7 +20,7 @@ jobs: tests: name: Run unit tests with the race detector enabled runs-on: ubuntu-latest - container: golang:1.18-alpine + container: golang:1.19-alpine steps: - name: Checkout repository diff --git a/.golangci.yml b/.golangci.yml index 50c8a39..c30fb70 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,18 +6,23 @@ run: linters: enable-all: true disable: + - deadcode # deprecated - exhaustivestruct - exhaustruct - forbidigo # we need to use fmt.Print*() - golint # deprecated - gomnd + - ifshort # deprecated - interfacer # deprecated - maligned # deprecated - nolintlint - nonamedreturns + - nosnakecase # deprecated - paralleltest # tests only take 2.5s to run. no need to parallelize - scopelint # deprecated + - structcheck # deprecated - testpackage + - varcheck # deprecated - varnamelen # makes bad suggestions - wsl diff --git a/doc.go b/doc.go index 98a3fbb..95b337f 100644 --- a/doc.go +++ b/doc.go @@ -6,8 +6,9 @@ fmt.Printf("%#v", whatever). The output will be colorized and nicely formatted. The output goes to $TMPDIR/q, away from the noise of stdout. q exports a single Q() function. This is how you use it: - import "q" - ... - q.Q(a, b, c) + + import "q" + ... + q.Q(a, b, c) */ package q