Method attribute missing for some violations
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Violations related to methods should set the method attribute.
XSL processing focusing on methods may be imprecise.
Examples:
<violation beginline="234" endline="310" begincolumn="15" endcolumn="5" rule="CyclomaticComplexity" ruleset="Code Size" package="p" class="c" externalInfoUrl="" priority="5"> The method 'build_tabfolder' has a Cyclomatic Complexity of 10. </violation>
or
<violation beginline="234" endline="310" begincolumn="15" endcolumn="5" rule="NPathComplexity" ruleset="Code Size" package="p" class="c" externalInfoUrl="" priority="5"> The method build_tabfolder() has an NPath complexity of 25000 </violation>
In both XML elements, the method's name could be omitted if the attributes were set:
Method has a Cyclomatic Complexity of 10.
Method has an NPath complexity of 25000.
This will fixed with the next release.