add fmt and lint to README
This commit is contained in:
parent
bc2f64eefd
commit
d52ba880cd
3
Makefile
3
Makefile
|
@ -27,6 +27,9 @@ verify: ## Verify dependencies have expected content
|
||||||
format: ## Format go code
|
format: ## Format go code
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
|
|
||||||
|
lint: ## Run linter (staticcheck)
|
||||||
|
staticcheck -f stylish ./...
|
||||||
|
|
||||||
test: ## Run tests
|
test: ## Run tests
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,8 @@ Use these Make targets for convenience:
|
||||||
- `build`: Compile project
|
- `build`: Compile project
|
||||||
- `tidy`: Add missing and remove unused modules
|
- `tidy`: Add missing and remove unused modules
|
||||||
- `verify`: Verify dependencies have expected content
|
- `verify`: Verify dependencies have expected content
|
||||||
|
- `format`: Format go code
|
||||||
|
- `lint`: Run linter (staticcheck)
|
||||||
- `test`: Run tests
|
- `test`: Run tests
|
||||||
- `cert`: Create https certificate for local testing
|
- `cert`: Create https certificate for local testing
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue