Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Creating new rules for code review in RAD  RSS feed

 
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
 
author & internet detective
Marshal
Posts: 38508
653
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.
 
author
Bartender
Posts: 4096
21
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: 38508
653
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
 
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
Boost this thread!