Skip to content

Commit

Permalink
Merge pull request #21 from life4/context
Browse files Browse the repository at this point in the history
channels: Use context in all functions
  • Loading branch information
orsinium authored Aug 20, 2023
2 parents 2951a7b + 4553512 commit 3a75f8c
Show file tree
Hide file tree
Showing 10 changed files with 1,109 additions and 891 deletions.
26 changes: 26 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
linters:
disable:
- gosec
- noctx
- errorlint
- exhaustive
- scopelint
- rowserrcheck
- sqlclosecheck
- maligned
- depguard
- gofumpt
presets:
- bugs
# - comment
# - complexity
# - error
- format
- import
# - metalinter
# - module
- performance
# - sql
# - style
# - test
# - unused
11 changes: 11 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
version: "3"

tasks:
lint:
desc: Run Go linters
cmds:
- golangci-lint run

test:
desc: Run go tests with coverage and timeout and without cache
cmds:
- go test -count 1 -cover -timeout 1s ./...

all:
desc: Run all tests and linters
cmds:
- task: lint
- task: test

release:
desc: Tag and upload release
cmds:
Expand Down
Loading

0 comments on commit 3a75f8c

Please sign in to comment.