sindresorhus / awesome-lint

Linter for Awesome lists
MIT License
600 stars 56 forks source link

FIX: avoid temp files like .readme.md.swp #184

Closed WillForan closed 8 months ago

WillForan commented 8 months ago

The default readme regexp is very liberal. So much so, it captures vim swap files for me. Is it reasonable to require the filename not have extra characters before or after the matching pattern?

I can imagine forcing ^ could be to strict if filename includes additional path information. but I think $ should always be reasonable. (and would avoid any vim .swp.

And maybe it's entirely unnecessary. I can specify readme.md as a CLI argument if i'm worried about swap files.