Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump safer-golangci-lint to 1.52.2 #408

Merged
merged 3 commits into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
22 changes: 11 additions & 11 deletions .github/workflows/safer-golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2021 Montgomery Edwards⁴⁴⁸ (github.com/x448).
# Copyright © 2021-2023 Montgomery Edwards⁴⁴⁸ (github.com/x448).
# This file is licensed under MIT License.
#
# Safer GitHub Actions Workflow for golangci-lint.
Expand Down Expand Up @@ -27,12 +27,13 @@
# 1. GOLINTERS_VERSION
# 2. GOLINTERS_TGZ_DGST
#
# Release v1.51.1 (February 5, 2023)
# - Bump golangci-lint to 1.51.1
# - Shuffle some comments
# - Hash of golangci-lint-1.50.1-linux-amd64.tar.gz
# - SHA-256: 17aeb26c76820c22efa0e1838b0ab93e90cfedef43fbfc9a2f33f27eb9e5e070
# This SHA-256 digest matches golangci-lint-1.51.1-checksums.txt at
# Release v1.52.2 (May 14, 2023)
# - Bump Go to 1.20
# - Bump actions/setup-go to v4
# - Bump golangci-lint to 1.52.2
# - Hash of golangci-lint-1.52.2-linux-amd64.tar.gz
# - SHA-256: c9cf72d12058a131746edd409ed94ccd578fbd178899d1ed41ceae3ce5f54501
# This SHA-256 digest matches golangci-lint-1.52.2-checksums.txt at
# https://github.com/golangci/golangci-lint/releases
#
name: linters
Expand All @@ -43,15 +44,14 @@ permissions: {}
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, closed]
push:
branches: [main, master]

env:
GO_VERSION: 1.19
GOLINTERS_VERSION: 1.51.1
GO_VERSION: '1.20'
GOLINTERS_VERSION: 1.52.2
GOLINTERS_ARCH: linux-amd64
GOLINTERS_TGZ_DGST: 17aeb26c76820c22efa0e1838b0ab93e90cfedef43fbfc9a2f33f27eb9e5e070
GOLINTERS_TGZ_DGST: c9cf72d12058a131746edd409ed94ccd578fbd178899d1ed41ceae3ce5f54501
GOLINTERS_TIMEOUT: 15m
OPENSSL_DGST_CMD: openssl dgst -sha256 -r
CURL_CMD: curl --proto =https --tlsv1.2 --location --silent --show-error --fail
Expand Down
5 changes: 1 addition & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ linters-settings:
linters:
disable-all: true
enable:
- deadcode
- errcheck
- goconst
- gocyclo
Expand All @@ -51,13 +50,11 @@ linters:
- govet
- ineffassign
- misspell
- revive
# - revive # temporarily disabled to reduce noise in golangci-lint 1.52.2
- staticcheck
- structcheck
- typecheck
- unconvert
- unused
- varcheck

issues:
# max-issues-per-linter default is 50. Set to 0 to disable limit.
Expand Down