Skip to content

Commit

Permalink
chore: add lint-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryQW committed Apr 19, 2024
1 parent 158be37 commit ae90213
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ repos:
rev: v2.42.1
hooks:
- id: commitizen
- repo: https://github.com/daveshanley/vacuum
rev: v0.9.14
hooks:
- id: vacuum
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ ifeq ($(VERSION),)
VERSION="0.0.0"
endif

lint:
lint-doc:
docker run --rm -v ./docs:/work:ro dshanley/vacuum lint openapi.yaml -d

lint: lint-doc
go mod tidy
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2 run

Expand Down

0 comments on commit ae90213

Please sign in to comment.