diff options
author | Ed Santiago <santiago@redhat.com> | 2020-03-30 14:01:29 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-04-14 11:27:44 -0600 |
commit | ba26c763c540b7ff16986fab59ca656aa6806ba7 (patch) | |
tree | 2a094483e19799ccc58d06c1dae3491a45edadf1 /Makefile | |
parent | 0d01f09bf4103538a6011019b690e5aa11c377db (diff) | |
download | podman-ba26c763c540b7ff16986fab59ca656aa6806ba7.tar.gz podman-ba26c763c540b7ff16986fab59ca656aa6806ba7.tar.bz2 podman-ba26c763c540b7ff16986fab59ca656aa6806ba7.zip |
swagger-check: new CI tool to cross-check swagger
New script cross-references r.Handle() and r.HandleFunc()
calls against the preceding '// swagger:operation' comments,
and exits failure (with descriptive error messages) if any
comments do not match the code.
This script should not be necessary: the swagger comments
should be autogenerated from the source code.
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -397,6 +397,10 @@ install-podman-remote-%-docs: podman-remote docs $(MANPAGES) man-page-check: hack/man-page-checker +.PHONY: swagger-check +swagger-check: + hack/swagger-check + .PHONY: codespell codespell: codespell -S bin,vendor,.git,go.sum,changelog.txt,seccomp.json,.cirrus.yml,"*.xz,*.gz,*.tar,*.tgz,bin2img,*ico,*.png,*.1,*.5,copyimg,*.orig,apidoc.go" -L uint,iff,od,seeked,splitted,marge,ERRO,hist -w @@ -624,7 +628,7 @@ validate.completions: completions/bash/podman if [ -x /bin/zsh ]; then /bin/zsh completions/zsh/_podman; fi .PHONY: validate -validate: gofmt lint .gitvalidation validate.completions man-page-check +validate: gofmt lint .gitvalidation validate.completions man-page-check swagger-check .PHONY: build-all-new-commits build-all-new-commits: |