Is there really no way of doing a proper check? most projects define ignored files using wildcards.