Is there some tool or webservice that takes a .gitignore file, tests the rules somehow and notifies one about duplicate rules (i.e. whose matches overlap)?
I have a long-running Git-repository that was initialised with several of GitHub's default .gitignore templates, which were amended manually over the course of several months. After removing some obvious duplicate ignore rules such as test-A.md
and test-*
manually I started wondering.
So far, I found methods to clean a text of duplicate phrases, but nothing that could actively evaluate the ignore rules. An answer may be useful for Syncthing and BitTorrent Sync users trying to clean up convoluted .syncignore rules. Thank you!