Re: [pmd-devel] Issue with Customizing Own Ruleset
A source code analyzer
Brought to you by:
adangel,
juansotuyo
|
From: Juan M. S. D. <jua...@gm...> - 2017-09-04 13:11:06
|
This looks as if you are incorrectly referencing the rule (notice the capital *‘D’* in *‘Design’* on your error message). You are also missing the language for the ruleset. As per the documentation <https://pmd.github.io/pmd-5.8.1/customizing/howtomakearuleset.html> the correct way to reference such a rule would be: <rule ref="rulesets/java/design.xml/CloseResource"/> In the future, please provide complete information when asking for help. The error message on it’s own may not be enough to help you. On this case, a copy of your ruleset (or a minimal failing ruleset) would have been expected. Regards On Tue, Aug 29, 2017 at 5:39 AM, Neha Phatak <neh...@tc...> wrote: > Dear Team, > > I am trying to customize my own pmd ruleset but getting error as. I am > trying to define java-design ruleset for CloseResource. Please help me why > this error occuring > > > > -- > Thanks & Regards > Neha Phatak > Tata Consultancy Services Limited > Ph:- 022-67781998 > Mailto: neh...@tc... > Website: http://www.tcs.com > ____________________________________________ > Experience certainty. IT Services > Business Solutions > Consulting > ____________________________________________ > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Pmd-devel mailing list > Pmd...@li... > https://lists.sourceforge.net/lists/listinfo/pmd-devel > > |