Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
fetch-depth: 0
- name: Linter
uses: golangci/golangci-lint-action@v6.1.0
uses: golangci/golangci-lint-action@v9.2.0
tests:
name: Tests
needs: lint
Expand Down
43 changes: 43 additions & 0 deletions .golangci.bck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
run:
deadline: 5m
issues-exit-code: 1

output:
formats: colored-line-number
print-issued-lines: true
print-linter-name: true

linters-settings:
dupl:
threshold: 250
lll:
line-length: 160
goconst:
min-len: 2
min-occurrences: 3
errcheck:
exclude-functions:
- (io.Closer).Close
cyclop:
max-complexity: 10
funlen:
lines: 50

linters:
disable-all: true
enable:
- dupl
- errcheck
- goconst
- gosec
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- funlen
- cyclop
- lll
- forbidigo

74 changes: 44 additions & 30 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,43 +1,57 @@
version: "2"
run:
deadline: 5m
issues-exit-code: 1

output:
formats: colored-line-number
print-issued-lines: true
print-linter-name: true

linters-settings:
dupl:
threshold: 250
lll:
line-length: 160
goconst:
min-len: 2
min-occurrences: 3
errcheck:
exclude-functions:
- (io.Closer).Close
cyclop:
max-complexity: 10
funlen:
lines: 50

formats:
text:
path: stdout
print-linter-name: true
print-issued-lines: true
linters:
disable-all: true
default: none
enable:
- cyclop
- dupl
- errcheck
- forbidigo
- funlen
- goconst
- gosec
- gosimple
- govet
- ineffassign
- lll
- staticcheck
- typecheck
- unused
- funlen
- cyclop
- lll
- forbidigo

settings:
cyclop:
max-complexity: 10
dupl:
threshold: 250
errcheck:
exclude-functions:
- (io.Closer).Close
funlen:
lines: 50
goconst:
min-len: 2
min-occurrences: 3
lll:
line-length: 160
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
Loading
Loading