-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'linting' into upload_component
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Lint | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
lint: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.mod" | ||
id: go | ||
|
||
- name: Lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.58 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
run: | ||
timeout: "120s" | ||
|
||
output: | ||
formats: | ||
- format: "colored-line-number" | ||
|
||
linters: | ||
enable: | ||
- "gocyclo" | ||
- "unconvert" | ||
- "goimports" | ||
- "govet" | ||
- "misspell" | ||
- "nakedret" | ||
- "revive" | ||
- "goconst" | ||
- "unparam" | ||
- "gofmt" | ||
- "errname" | ||
- "zerologlint" | ||
|
||
linters-settings: | ||
staticcheck: | ||
# SAxxxx checks in https://staticcheck.io/docs/configuration/options/#checks | ||
# Default: ["*"] | ||
checks: ["all"] | ||
|
||
issues: | ||
exclude-use-default: false |