You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@find internal/store -type f -not -name '*_test.go' -exec sed -nE 's/.*"(kube_[^"]+)".*/\1/p' {} \;| sort -u > code_metrics
59
59
@diff -u0 code_metrics documented_metrics || (echo "ERROR: Metrics with - are present in code but missing in documentation, metrics with + are documented but not found in code.";exit 1)
60
60
@echo OK
61
61
@rm -f code_metrics documented_metrics
62
62
@echo "- Checking for orphan documentation files"
63
-
@cd docs;fordocin*.md;doif [ "$$doc"!="README.md" ] &&! grep -q "$$doc"*.md;thenecho"ERROR: No link to documentation file $${doc} detected";exit 1;fi;done
63
+
@cd docs;fordocin$$(find metrics/* -name '*.md'| sed 's/.*\///');doif [ "$$doc"!="README.md" ] &&! grep -q "$$doc"*.md;thenecho"ERROR: No link to documentation file $${doc} detected";exit 1;fi;done
0 commit comments