IgnoredPaths wasn't working since the continue in the for loop checking for the ignorePaths didn't reach the main for loop. Fixed this by adding a flag that will be checked once it is outside the for loop skipping the file if it's in the ignorePaths.