Menu

#1201 Error "Can't find resource null" when ruleset contains spaces after comma

PMD-5.1.2
closed
PMD
3-Major
Bug
5.1.1
2014-07-20
2014-05-15
Los Pejos
No

Error "Can't find resource null" when ruleset contains spaces after comma. Consider trimming strings (ruleset names) after splitting comma-separated by separator (commas):
Example:
1) configuration.setRuleSets("ecmascript-basic,ecmascript-braces,ecmascript-unnecessary") is ok
2) configuration.setRuleSets("ecmascript-basic, ecmascript-braces, ecmascript-unnecessary") leads to error "net.sourceforge.pmd.RuleSetNotFoundException: Can't find resource null. Make sure the resource is a valid file or URL and is on the CLASSPATH."

Discussion

  • Andreas Dangel

    Andreas Dangel - 2014-07-19
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-Next
     
  • Andreas Dangel

    Andreas Dangel - 2014-07-19

    Will be fixed with the next version.

     

Log in to post a comment.