diff --git a/README.md b/README.md index e9d556c..6014a7f 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,5 @@ https://github.com/rohennes/ocp-rules/releases/download/v1/ocp.zip BasedOnStyles = RedHat, ocp ```` +PR contributions welcome to this repo. The current list of potential rules is in the gdoc here: https://docs.google.com/document/d/1xawRkloLUDj0cz3hlbMxTYIFBK31jMbF6X54U3MPGGY/edit?usp=sharing Feel free to add any rules ideas to this gdoc also. + diff --git a/styles/ocp/XrefContainsAnchorID.yml b/styles/ocp/XrefContainsAnchorID.yml new file mode 100644 index 0000000..5b7c0b8 --- /dev/null +++ b/styles/ocp/XrefContainsAnchorID.yml @@ -0,0 +1,8 @@ +--- +extends: existence +scope: raw +ignorecase: true +level: suggestion +message: "Does your xref contain an anchor ID?" +raw: + - 'xref(.*)(\.adoc)(?!\#)'