Menu

#1250 Method attribute missing for some violations

PMD-5.1.3
closed
None
PMD
4-Minor
Bug
2015-02-04
2014-08-24
Jolkdarr
No

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.

Discussion

  • Andreas Dangel

    Andreas Dangel - 2014-08-30
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Type: Feature-Request --> Bug
     
  • Andreas Dangel

    Andreas Dangel - 2014-08-30

    This will fixed with the next release.

     

Log in to post a comment.