I see that the errors are filtered in 2 different places? Here and in main.

Why not just pass the list of ignored list to check_source and filter the errors there?