Skip to content

Update .golangci.yml #8

Update .golangci.yml

Update .golangci.yml #8

Workflow file for this run

version: "2"

Check failure on line 1 in .github/workflows/.golangci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/.golangci.yml

Invalid workflow file

(Line: 1, Col: 1): Unexpected value 'version', (Line: 3, Col: 1): Unexpected value 'linters', (Line: 9, Col: 1): Unexpected value 'linters-settings', (Line: 13, Col: 1): Unexpected value 'run', (Line: 15, Col: 1): Unexpected value 'issues', (Line: 1, Col: 1): Required property is missing: jobs
linters:
default: none
enable:
- gocognit # 检查函数 Cognitive Complexity 复杂度
linters-settings:
errcheck:
exclude-functions:
- (io.Closer).Close
run:
tests: false
issues:
exclude-dirs:
- '(^|/)test($|/)'