mszostok / codeowners-validator

The GitHub CODEOWNERS file validator
Apache License 2.0
211 stars 48 forks source link

White space characters in Team Name #214

Closed trevor-holliday-instacart closed 4 months ago

trevor-holliday-instacart commented 4 months ago

Description

The Code owners doc, states the syntax rules (minus a few exceptions) should be honored. The GitIgnore documentation states we should use the forward slash \ for escaping white space characters.

Upon providing the escape the tool reports the owners file is invalid.

example: /Root/Feature/ @orginization/Team\ A

Expected result

The code owners file is valid if it has an escape character prefixing a space

Actual result

File is marked as invalid.

Steps to reproduce

Add a owner with a name that has a white space character.

Screenshot 2024-02-21 at 12 32 46 PM

trevor-holliday-instacart commented 4 months ago

wrong code owner validation repo apologies.