-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df13bbb
commit c2acb84
Showing
8 changed files
with
211 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
issues: | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- gocyclo | ||
|
||
linters: | ||
tests-disable-all: true | ||
# Enable specific linter | ||
# https://golangci-lint.run/usage/linters/#enabled-by-default | ||
disable: | ||
- testpackage | ||
- funlen | ||
- gofumpt | ||
- gocognit | ||
- nestif | ||
- wsl | ||
- varnamelen | ||
enable: | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- bodyclose | ||
- canonicalheader | ||
- containedctx | ||
- contextcheck | ||
- copyloopvar | ||
- decorder | ||
- depguard | ||
- dogsled | ||
- dupl | ||
- dupword | ||
- durationcheck | ||
- err113 | ||
- errcheck | ||
- errchkjson | ||
- errname | ||
- errorlint | ||
- exhaustive | ||
- fatcontext | ||
- forbidigo | ||
- forcetypeassert | ||
- gci | ||
- ginkgolinter | ||
- gocheckcompilerdirectives | ||
- gochecknoglobals | ||
- gochecknoinits | ||
- gochecksumtype | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- godot | ||
- godox | ||
- gofmt | ||
- goheader | ||
- goimports | ||
- gomoddirectives | ||
- gomodguard | ||
- goprintffuncname | ||
- gosec | ||
- gosimple | ||
- gosmopolitan | ||
- govet | ||
- grouper | ||
- importas | ||
- inamedparam | ||
- ineffassign | ||
- interfacebloat | ||
- intrange | ||
- ireturn | ||
- lll | ||
- loggercheck | ||
- maintidx | ||
- makezero | ||
- mirror | ||
- misspell | ||
- mnd | ||
- musttag | ||
- nakedret | ||
- nilerr | ||
- nilnil | ||
- nlreturn | ||
- noctx | ||
- nolintlint | ||
- nonamedreturns | ||
- nosprintfhostport | ||
- paralleltest | ||
- perfsprint | ||
- prealloc | ||
- predeclared | ||
- promlinter | ||
- protogetter | ||
- reassign | ||
- revive | ||
- rowserrcheck | ||
- sloglint | ||
- spancheck | ||
- sqlclosecheck | ||
- staticcheck | ||
- stylecheck | ||
- tagalign | ||
- tagliatelle | ||
- tenv | ||
- testableexamples | ||
- testifylint | ||
- thelper | ||
- tparallel | ||
- unconvert | ||
- unparam | ||
- unused | ||
- usestdlibvars | ||
- wastedassign | ||
- whitespace | ||
- zerologlint | ||
# Enable presets. | ||
# https://golangci-lint.run/usage/linters | ||
# Default: [] | ||
presets: | ||
- bugs | ||
- comment | ||
- complexity | ||
- error | ||
- format | ||
- import | ||
- metalinter | ||
- module | ||
- performance | ||
- sql | ||
- style | ||
- test | ||
- unused | ||
# Enable only fast linters from enabled linters set (first run won't be fast) | ||
# Default: false | ||
fast: true | ||
|
||
linters-settings: | ||
gocyclo: | ||
min-complexity: 10 | ||
depguard: | ||
rules: | ||
main: | ||
# List of file globs that will match this list of settings to compare against. | ||
# Default: $all | ||
files: | ||
- $all | ||
# List of allowed packages. | ||
allow: | ||
- $gostd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.DEFAULT_GOAL := all | ||
|
||
all: fmt lint test | ||
|
||
fmt: | ||
go fmt $$(go list ./...) | ||
|
||
lint: vet | ||
golangci-lint run | ||
|
||
lit: lint | ||
|
||
vet: | ||
go vet $$(go list ./...) | ||
|
||
test: | ||
go test -v -race -run ^Test -parallel=8 ./... | ||
|
||
.PHONY: fmt lint test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/thevilledev/go-thespine | ||
|
||
go 1.20 | ||
go 1.23.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters