Wednesday, March 20, 2013

Code Auditing in Jdev

Code auditing is analysis of code for adherence to programming standards. It results in better code that is easier to maintain. Oracle JDeveloper 11g comes with an extensive set of predefined rules for auditing Java code. In addition you can create your own auditing rules and add them to JDeveloper. JDeveloper let you group Auditing rules into profiles. This provides an easy mechanism to customize the rules used to validate your code.

Some examples of the areas that JDeveloper's audit rules can help enforce include:
  • Proper usage of common Java APIs.
  • Proper declaration of classes, methods, and fields.
  • Completeness and correctness of Javadoc comments.
  • Adherence to standard naming conventions
  • Eliminating unused declarations.
Auditing code should be part of every project's build process, making code quality assurance an integral part of the project.
In order to view the default Audit profiles, Open JDeveloper and go to Tools --> Preferences --> Audit --> Profiles you will see a list of the profiles defined by default.
To run these Audit rules against your code, go to Build --> click on Audit <Project Name> to run Audit profile.



Provide your thoughts !