Super minor performance nit: if we do the dotfile and excludes test first, we could exit early and avoid the getLanguageForPath() call, which does a bit of string manipulation to determine the language.