CODEOWNERS validator
Check a CODEOWNERS file for invalid patterns, missing owners and rules that can never take effect.
CODEOWNERS validator
Paste the contents of a CODEOWNERS file and this tool checks it the way a reviewer would, line by line. It flags patterns that can't be parsed, usernames and teams that are written incorrectly, malformed email addresses, and rules that quietly duplicate or shadow one another — including a rule buried above a later catch-all pattern that has silently taken over every path it used to own.
Pick the platform your repository uses — GitHub, GitLab or Bitbucket — since GitLab's optional section headers ("[Frontend]") aren't recognized on the other two, and a file written for one platform can silently do nothing on another. Turn on "Report paths without an owner" to call out any tested path that no rule covers, "Sort path results by rule order" to group the second field's results by which line decided them instead of the order you pasted them in, and "Show rule count per owner" to see who owns the most of the file at a glance.
Paste a list of file paths into the second field to test them against the rules: CODEOWNERS uses the same "last matching rule wins" logic as .gitignore, so the tool reports exactly which line and which owner apply to each path — not just whether a pattern looks valid. Both Windows and Unix line endings are handled the same way, and the report stays a valid, commented CODEOWNERS file you can read straight from the output.
Everything runs locally in your browser. Your file and the paths you test are never uploaded anywhere, which matters for a file that can list private team and repository structure. Copy the annotated result, download it as a .txt file, or send it back to the input to fix an issue and check again.