1
0
mirror of https://github.com/fumiama/gozel.git synced 2026-06-08 18:10:26 +08:00
This commit is contained in:
源文雨
2026-03-26 00:32:52 +08:00
parent 92dcabe841
commit 6de4b7cabe
3 changed files with 46 additions and 2 deletions

View File

@@ -45,6 +45,11 @@ jobs:
- name: Run tests
run: go test -v -count=1 ./...
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.11
go-generate:
name: Run all Generates & PR
runs-on: ubuntu-latest

41
.golangci.yml Normal file
View File

@@ -0,0 +1,41 @@
version: "2"
linters:
default: none
enable:
- errcheck
- staticcheck
- govet
- ineffassign
- unused
- misspell
- unconvert
- revive
settings:
revive:
rules:
- name: exported
disabled: true
exclusions:
rules:
- path: ^cmd/
linters:
- errcheck
- staticcheck
- govet
- ineffassign
- unused
- misspell
- unconvert
- revive
- linters:
- errcheck
source: "^\\s*defer "
formatters:
enable:
- gofmt
issues:
max-issues-per-linter: 0
max-same-issues: 0

View File

@@ -245,8 +245,6 @@ func main() {
if zev1[i] != expect {
fail = true
fmt.Printf("[%05d] expect %f = %f + %f, got %f.\n", i, expect, floatbuf[i], floatbuf[N+i], zev1[i])
} else {
// fmt.Printf("[%05d] valid %f = %f + %f, got %f.\n", i, expect, floatbuf[i], floatbuf[N+i], zev1[i])
}
}