make sure the messages are filtered out for formatters

What I want to achieve is to make sure the lint error messages in imported files are filtered using the same mechanism in the formatters as on the command line. At the moment there is no filtering that would take into consideration which imported files to include for external formatters ...