hmarr / codeowners

🔒 Command line tool and Go library for CODEOWNERS files
MIT License
167 stars 19 forks source link

Update file parsing to handle lines with only whitespace. #24

Closed captainreality closed 3 months ago

captainreality commented 5 months ago

This commit updates file parsing so that lines that contain solely whitespace (as defined by by Unicode) are ignored. It's fairly common for people to accidentally create CODEOWNERS files with lines containing solely whitespace, and as it's semantically meaningless, it's better to ignore them then raise an error.

captainreality commented 3 months ago

Closed the PR because it was merged in https://github.com/hmarr/codeowners/pull/26.

hmarr commented 2 months ago

Thanks @captainreality, I've just pushed a fix for this in 06d1caa3a6e75af021478430d0304e2d59ddde19