Instead of scanning the files with every new rule with <filematches>, we
could collect the patterns upfront and then iterate over all files and
try all the patterns whose filename pattern matches for that file.
The idea is that the system could keep this file cached / open for all
passes.
WDYT? And aren't we already doing it? (I didn't check)
Ondra