Fix linter config.

This commit is contained in:
2025-11-15 13:16:30 -08:00
parent fd9f9f6d66
commit 928c643d8d
2 changed files with 53 additions and 82 deletions

View File

@@ -1,3 +1,5 @@
version: "2"
run: run:
timeout: 5m timeout: 5m
tests: true tests: true
@@ -25,7 +27,7 @@ linters:
- revive - revive
- typecheck - typecheck
linters-settings: settings:
gocyclo: gocyclo:
min-complexity: 15 min-complexity: 15
@@ -33,9 +35,6 @@ linters-settings:
min-len: 3 min-len: 3
min-occurrences: 3 min-occurrences: 3
misspell:
locale: US
revive: revive:
rules: rules:
- name: exported - name: exported
@@ -54,7 +53,7 @@ linters-settings:
- G304 # File path from variable (common in file utilities) - G304 # File path from variable (common in file utilities)
- G404 # Use of weak random (acceptable for non-crypto use) - G404 # Use of weak random (acceptable for non-crypto use)
issues: issues:
exclude-rules: exclude-rules:
# Exclude some linters from running on tests files # Exclude some linters from running on tests files
- path: _test\.go - path: _test\.go
@@ -81,7 +80,5 @@ issues:
output: output:
formats: formats:
- format: colored-line-number text:
path: stdout colors: false
print-issued-lines: true
print-linter-name: true

View File

@@ -1,26 +0,0 @@
arch:
- amd64
- ppc64le
sudo: false
language: go
go:
- tip
- 1.9
jobs:
exclude:
- go: 1.9
arch: amd64
- go: 1.9
arch: ppc64le
script:
- go get golang.org/x/lint/golint
- go get golang.org/x/tools/cmd/cover
- go get github.com/kisom/goutils/...
- go test -cover github.com/kisom/goutils/...
- golint github.com/kisom/goutils/...
notifications:
email:
recipients:
- coder@kyleisom.net
on_success: change
on_failure: change