Skip to content

Commit

Permalink
snatch
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulov1337 committed Dec 15, 2024
1 parent 48ae50d commit 14475af
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: v1.53
args: --timeout=5m
args: --timeout=5m --config=./.golangci.pipeline.yml
41 changes: 41 additions & 0 deletions .golangci.pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
run:
concurrency: 8
timeout: 5m
issues-exit-code: 1
tests: true

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

linters-settings:
govet:
shadow: true
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 3

linters:
disable-all: true
enable:
- errcheck
- goconst
- goimports
- govet
- ineffassign
- gosimple
- staticcheck
- typecheck
- revive
- unused

issues:
exclude-use-default: false
exclude:
- G104
- exported func .* returns unexported type .*, which can be annoying to use
- should have a package comment
- don't use an underscore in package name

0 comments on commit 14475af

Please sign in to comment.