Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating new rules for code review in RAD

 
Sanjay Ram
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,

I am new to this RAD tool and have no hands on experience over this
tool.

My requirement is to write a new rule for code review purpose and how can i do it RAD.

can anybody pls help me out
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanjay,
RAD provides templates that you can use to build the rules. First thing is to think about what you want your rule to be. Then go into the workspace preferences and look for the code review section. The templates are there.
 
Scott Selikoff
author
Saloon Keeper
Posts: 4020
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the code rules engine come from Eclipse? I don't recall.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Scott Selikoff:
Does the code rules engine come from Eclipse? I don't recall.

Yes. But RAD adds a bunch more rules/templates out of the box.
 
Sanjay Ram
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

First of all Thanks for your reply.

But what if i want to write a brand new rule that is not there in
template list . Suppose assume that if i need to review my code in which
all the resources i had used is closed in the finally block.

How to write a new code rule for this kind of requirement using RAD. This rule is not there in template. So i need to write a new one .

so how can i do it in RAD ..??? help me out.

Thanks,
Sanjay
 
Minni Sharma
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go To RAD->windows->Preferance->PMD->Rules Configuration->Add Rule
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic