From 84e239cb05b1784a69fee91dfdccdc46ec2ce339 Mon Sep 17 00:00:00 2001 From: $MY_NAME Date: Fri, 3 Feb 2023 13:17:58 +0300 Subject: [PATCH 1/4] m --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ede033a..cd07ba52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -175,7 +175,7 @@ jobs: wget -nc --output-document=/tmp/semgrep-go.zip https://github.com/dgryski/semgrep-go/archive/refs/heads/master.zip unzip -o /tmp/semgrep-go.zip -d /tmp/semgrep-go go get github.com/quasilyte/go-ruleguard/dsl - # golangci-lint run --config .golangci.yml ./... + golangci-lint run --config .golangci.yml ./... go mod tidy python -m venv /tmp/.venv . /tmp/.venv/bin/activate From 62f7f16969291f22bf3efdc9b887ffac0dbfe1a3 Mon Sep 17 00:00:00 2001 From: $MY_NAME Date: Fri, 3 Feb 2023 13:18:58 +0300 Subject: [PATCH 2/4] m --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7252df3e..701c32ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Most recent version is listed first. ## v0.0.30 - Update to Go v1.20: https://github.com/komuw/ong/pull/209 - Use net.Dialer.ControlContext instead of use net.Dialer.Control: https://github.com/komuw/ong/pull/212 +- Re-enable golangci-lint: https://github.com/komuw/ong/pull/214 ## v0.0.29 - WithCtx should only use the id from context, if that ctx actually contains an Id: https://github.com/komuw/ong/pull/196 From bec5f0119e6342cab4257b4d3736fc053b7d7f8f Mon Sep 17 00:00:00 2001 From: $MY_NAME Date: Fri, 3 Feb 2023 13:23:23 +0300 Subject: [PATCH 3/4] m --- id/id.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/id/id.go b/id/id.go index f1bc0251..a976b081 100644 --- a/id/id.go +++ b/id/id.go @@ -51,7 +51,7 @@ func Random(n int) string { //lint:ignore SA1019 `mathRand.Read` is deprecated. // However, for our case here is okay since the func id.Random is not used for cryptography. // Also we like the property of `mathRand.Read` always returning a nil error. - _, _ = mathRand.Read(b) // docs say that it always returns a nil error. + _, _ = mathRand.Read(b) // nolint:staticcheck } return enc.EncodeToString(b)[:n] From 3b0f4fdba56f5dec0d77cdf929868dc8b36d131e Mon Sep 17 00:00:00 2001 From: $MY_NAME Date: Fri, 3 Feb 2023 13:25:40 +0300 Subject: [PATCH 4/4] m --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd07ba52..53d5208c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -130,7 +130,7 @@ jobs: - name: install tools run: | set -x - go install honnef.co/go/tools/cmd/staticcheck@master + go install honnef.co/go/tools/cmd/staticcheck@latest go install github.com/securego/gosec/cmd/gosec@latest go install github.com/quasilyte/go-ruleguard/cmd/ruleguard@latest go install github.com/orijtech/structslop/cmd/structslop@latest