Skip to content

Commit

Permalink
ci attempt fix and upgraded alt packages
Browse files Browse the repository at this point in the history
  • Loading branch information
anak-nolep committed Dec 4, 2023
1 parent f380ba6 commit c25f2cd
Show file tree
Hide file tree
Showing 22 changed files with 342 additions and 333 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*.so
*.dylib
bin/
*.log

# Test binary, built with `go test -c`
*.test
Expand Down
275 changes: 138 additions & 137 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,137 +1,138 @@
linters-settings:
gci:
local-prefixes: github.com/evrone/go-clean-template
dupl:
threshold: 100
errorlint:
errorf: true
errcheck:
check-type-assertions: true
check-blank: true
exhaustive:
check-generated: false
default-signifies-exhaustive: false
funlen:
lines: 65
statements: 40
gocognit:
min-complexity: 15
gocyclo:
min-complexity: 10
goconst:
min-len: 2
min-occurrences: 2
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- dupImport
- unnecessaryBlock
gofumpt:
extra-rules: true
gomnd:
settings:
mnd:
checks:
- argument
- case
- condition
- operation
- return
govet:
check-shadowing: true
misspell:
locale: US
nestif:
min-complexity: 4
nolintlint:
require-explanation: true
require-specific: true

linters:
disable-all: true
enable:
- asciicheck
- bodyclose
- cyclop
- deadcode
- depguard
- dogsled
- dupl
- durationcheck
- errcheck
- errorlint
- exhaustive
- exportloopref
- forbidigo
- funlen
- gci
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- godox
- goerr113
- gofmt
- gofumpt
- goimports
- gomnd
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- makezero
- misspell
- nakedret
- nestif
- nlreturn
- noctx
- nolintlint
- paralleltest
- predeclared
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- structcheck
- stylecheck
- tparallel
- thelper
- typecheck
- unconvert
- unparam
- unused
- varcheck
- wsl
- whitespace

# disable:
# - exhaustivestruct
# - ifshort
# - goheader
# - prealloc
# - testpackage
# - wrapcheck

issues:
exclude-rules:
- path: integration-test
linters:
- paralleltest
- godot
- path: internal/controller/http
linters:
- godot

run:
skip-dirs:
- docs
linters-settings:
gci:
local-prefixes: go-clean-template
dupl:
threshold: 100
errorlint:
errorf: true
errcheck:
check-type-assertions: true
check-blank: true
exhaustive:
check-generated: false
default-signifies-exhaustive: false
funlen:
lines: 65
statements: 40
gocognit:
min-complexity: 15
gocyclo:
min-complexity: 10
goconst:
min-len: 2
min-occurrences: 2
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- dupImport
- unnecessaryBlock
gofumpt:
extra-rules: true
gomnd:
settings:
mnd:
checks:
- argument
- case
- condition
- operation
- return
govet:
check-shadowing: true
misspell:
locale: US
nestif:
min-complexity: 4
nolintlint:
require-explanation: true
require-specific: true
revive:
rules:
- name: dot-imports
severity: warning
disabled: true
stylecheck:
dot-import-whitelist:
- go-hit

linters:
disable-all: true
enable:
- asciicheck
- bodyclose
- cyclop
- dogsled
- dupl
- durationcheck
- errcheck
- errorlint
- exhaustive
- exportloopref
- forbidigo
- funlen
- gochecknoglobals
- gochecknoinits
- gocognit
- gocritic
- gocyclo
- godot
- godox
- goerr113
- gofmt
- gofumpt
- goimports
- gomnd
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- makezero
- misspell
- nakedret
- nestif
- nlreturn
- noctx
- paralleltest
- predeclared
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- stylecheck
- tparallel
- thelper
- typecheck
- unconvert
- unparam
- unused
- wsl
- whitespace

# disable:
# - exhaustivestruct
# - ifshort
# - goheader
# - prealloc
# - testpackage
# - wrapcheck

issues:
exclude-rules:
- path: integration-test
linters:
- paralleltest
- godot
- path: internal/controller/http
linters:
- godot

run:
skip-dirs:
- docs
Loading

0 comments on commit c25f2cd

Please sign in to comment.