Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 9be2aef

Browse files
committed
handle ?params in API - which should not be there
1 parent 1378ad8 commit 9be2aef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ lint:
8888
api:
8989
@tmp=/tmp/_$$$$_ ; \
9090
$(PYTHON) -m cli4 --dump | sort > $$tmp.1 ; \
91-
$(PYTHON) -m cli4 --api | sed -e 's/^[A-Z][A-Z]* *//' -e 's/\/:[a-z_]*/\/:id/g' -e 's/\/{[a-z_]*}/\/:id/g' -e 's/\/:id$$//' -e 's/\/:id ;/ ;/' | sort | uniq > $$tmp.2 ; \
91+
$(PYTHON) -m cli4 --api | sed -e 's/^[A-Z][A-Z]* *//' -e 's/?.*//' -e 's/\/:[a-z_]*/\/:id/g' -e 's/\/:[a-z_]*}/\/:id/g' -e 's/\/:id$$//' -e 's/\/:id ;/ ;/' | sort | uniq > $$tmp.2 ; \
9292
egrep -v '; deprecated' < $$tmp.2 | diff $$tmp.1 - > $$tmp.3 ; \
9393
echo "In code:" ; \
9494
egrep '< ' < $$tmp.3 | sed -e 's/< / /' | sort | tee $$tmp.4 ; \

0 commit comments

Comments
 (0)