Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
adding rule for checking anchor ID in xrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
rohennes committed Sep 15, 2022
1 parent c205cdd commit b5f40f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

8 changes: 8 additions & 0 deletions styles/ocp/XrefContainsAnchorID.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
extends: existence
scope: raw
ignorecase: true
level: suggestion
message: "Does your xref contain an anchor ID?"
raw:
- 'xref(.*)(\.adoc)(?!\#)'

0 comments on commit b5f40f0

Please sign in to comment.