core: replace gofmt with golangci-lint
This has the effect of running gofmt and gofumpt at the same time.
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit c5f59db859)
This commit is contained in:
1 parent
9e37c33f32
commit
e4fa520a18
4 files changed
+80
-32
No files matched your search
@@ -33,21 +33,12 @@ jobs:
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
|
||||
with:
|
||||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
||||
version: v1.62
|
||||
|
||||
# Optional: working directory, useful for monorepos
|
||||
# working-directory: somedir
|
||||
|
||||
# Optional: golangci-lint command line arguments.
|
||||
args: -E gosec -E gofmt -E gofumpt --timeout=10m
|
||||
|
||||
# `version` is parsed by build/makelib/golang.mk
|
||||
# Do not change the structure of this job without updating the parsing logic.
|
||||
version: v2.0.2
|
||||
# actions/setup-go already handles caching
|
||||
skip-cache: true
|
||||
|
||||
# Optional: show only new issues if it's a pull request. The default value is `false`.
|
||||
# only-new-issues: true
|
||||
|
||||
govulncheck:
|
||||
name: govulncheck
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in new issue
Block a user