Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kataev committed Apr 10, 2024
1 parent a335d77 commit cd598f9
Show file tree
Hide file tree
Showing 5 changed files with 513 additions and 167 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'
- uses: golangci/golangci-lint-action@v3
31 changes: 15 additions & 16 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
run:
timeout: 2m
modules-download-mode: readonly
go: 1.21
go: "1.22"

output:
format: colored-line-number
formats:
- format: colored-line-number
sort-results: true

linters-settings:
Expand All @@ -13,14 +14,10 @@ linters-settings:
statements: 50
varnamelen:
min-name-length: 2
cyclop:
max-complexity: 15
exhaustruct:
exclude:
- 'net/http\..*'
- github.com/a-kataev/tg.Chat
wsl:
allow-assign-and-anything: true
tagliatelle:
case:
rules:
Expand All @@ -44,6 +41,7 @@ linters:
- bodyclose
- containedctx
- contextcheck
- copyloopvar
- cyclop
## - deadcode # deprecated
- decorder
Expand All @@ -55,7 +53,6 @@ linters:
- errcheck
- errchkjson
- errname
- errorlint
- execinquery
- exhaustive
## - exhaustivestruct # deprecated
Expand All @@ -69,6 +66,7 @@ linters:
- gocheckcompilerdirectives
- gochecknoglobals
- gochecknoinits
- gochecksumtype
- gocognit
- goconst
- gocritic
Expand All @@ -79,27 +77,29 @@ linters:
- gofmt
- gofumpt
- goheader
- goimports
## - golint # deprecated
- gomnd
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- gosimple
- gosmopolitan
- govet
- grouper
## - ifshort # deprecated
- importas
- inamedparam
- ineffassign
- interfacebloat
## - interfacer # deprecated
- intrange
- ireturn
- lll
- loggercheck
- maintidx
- makezero
## - maligned # deprecated
- mirror
- misspell
- musttag
- nakedret
Expand All @@ -112,32 +112,31 @@ linters:
- nonamedreturns
## - nosnakecase # deprecated
- nosprintfhostport
- paralleltest
- perfsprint
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
- revive
- rowserrcheck
## - scopelint # deprecated
- sqlclosecheck
- sloglint
- spancheck
- staticcheck
## - structcheck # deprecated
- stylecheck
- tagalign
- tagliatelle
- tenv
- testableexamples
- testpackage
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
## - varcheck # deprecated
- varnamelen
- wastedassign
- whitespace
- wrapcheck
- wsl
- zerologlint
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/a-kataev/tg

go 1.21
go 1.22

require github.com/stretchr/testify v1.9.0

Expand Down
15 changes: 9 additions & 6 deletions tg_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cd598f9

Please sign in to comment.