mirror of
https://github.com/rjNemo/go-pass-gen
synced 2026-06-06 02:46:40 +00:00
chore: add golangci-lint nad ix makefile
This commit is contained in:
parent
973e87c4ec
commit
caeb331c81
2 changed files with 45 additions and 4 deletions
42
.golangci.yml
Normal file
42
.golangci.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
skip-dirs-use-default: true
|
||||||
|
|
||||||
|
run:
|
||||||
|
timeout: 5m
|
||||||
|
|
||||||
|
linters:
|
||||||
|
enable:
|
||||||
|
- bodyclose
|
||||||
|
- deadcode
|
||||||
|
- depguard
|
||||||
|
- dogsled
|
||||||
|
- errcheck
|
||||||
|
- errorlint
|
||||||
|
- exportloopref
|
||||||
|
- gocritic
|
||||||
|
- gocyclo
|
||||||
|
- gofmt
|
||||||
|
- goimports
|
||||||
|
- goprintffuncname
|
||||||
|
- gosimple
|
||||||
|
- gosec
|
||||||
|
- govet
|
||||||
|
- ineffassign
|
||||||
|
- misspell
|
||||||
|
- noctx
|
||||||
|
- nolintlint
|
||||||
|
- prealloc
|
||||||
|
- rowserrcheck
|
||||||
|
- staticcheck
|
||||||
|
- structcheck
|
||||||
|
- stylecheck
|
||||||
|
- typecheck
|
||||||
|
- unconvert
|
||||||
|
- unparam
|
||||||
|
- unused
|
||||||
|
- varcheck
|
||||||
|
- whitespace
|
||||||
|
fast: true
|
||||||
|
|
||||||
|
linters-settings:
|
||||||
|
goimports:
|
||||||
|
local-prefixes: github.com/rjNemo/go-passgen
|
||||||
7
Makefile
7
Makefile
|
|
@ -1,15 +1,14 @@
|
||||||
lint:
|
lint:
|
||||||
golint cmd/...
|
golangci-lint run
|
||||||
golint passgen/...
|
|
||||||
|
|
||||||
dev:
|
dev:
|
||||||
air
|
air
|
||||||
|
|
||||||
run:
|
run:
|
||||||
go main.go
|
go run main.go
|
||||||
|
|
||||||
run-web:
|
run-web:
|
||||||
go main.go --web=t
|
go run main.go --web=t
|
||||||
|
|
||||||
web:
|
web:
|
||||||
cd client && npm run start
|
cd client && npm run start
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue