Note that even with the fix you will have a problem: the pattern you define should refer to the xml file that contains the warnings and not to the rules!
Note that even with the fix you will have a problem: the pattern that you define used (sun_rules) should refer to the xml file that contains the warnings warning results and not to the rules!