chore: add golangci-lint nad ix makefile

This commit is contained in:
Ruidy 2022-01-21 16:49:21 -04:00
parent 973e87c4ec
commit caeb331c81
2 changed files with 45 additions and 4 deletions

42
.golangci.yml Normal file
View 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

View file

@ -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