Skip to content

Commit

Permalink
run swag-check on lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr committed Aug 6, 2023
1 parent 1bd1b82 commit 7936e1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,13 @@ swag-fmt:
swag fmt --dir internal/http
go fmt ./internal/http/...

## Run linter
## Run linters
.PHONY: lint
lint:
lint: golangci-lint swag-check

## Run golangci-lint
.PHONY: golangci-lint
golangci-lint:
golangci-lint run

## Run unit tests
Expand Down
2 changes: 1 addition & 1 deletion docs/Contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ make swagger

## Lint the code

In order to lint the code, you need to have installed [golangci-lint](https://golangci-lint.run).
In order to lint the code, you need to have installed [golangci-lint](https://golangci-lint.run) and [swag](https://github.com/swaggo/swag).

After that, run the following command:

Expand Down

0 comments on commit 7936e1b

Please sign in to comment.