I was working long on JDeveloper 11g extension for ADF 11g code quality checks. Finally it is available for public use - first release. This release is based on my Oracle Forms to Oracle Fusion 11g migration experience.
You can download extension - redsamuraiqt_1_0.zip and install it through JDeveloper Update wizard. It is available directly from Oracle JDeveloper Open Source and Partners Extension update center as well. Additionally, you can download sample project I'm using for this post - RedSamuraiToolTestSample.zip.
When you will run it, first screen will be welcome screen:
Next, you will be given with a list of rules to be applied for ADF code quality validation:
And finally, we have confirmation screen:
Extension can be customized through JDeveloper Preferences wizard:
You can install redsamuraiqt_1_0.zip extension through JDeveloper Check for Updates wizard from local file:
Or simply to download it from Open Source and Partner Extensions update center:
In order to invoke Red Samurai tool, right click on Model or ViewController project and select RedSamurai QT option:
To demonstrate extension functionality, I decided to show how you can ensure all View Objects contain ORDER BY clause:
It will report rule violations - View Object name and rule title:
Then you go to View Object screen and add ORDER BY clause:
If same rule is applied again, no more violations will be reported:
Another example - page title. We may have a rule to ensure all page titles are coming from Message Bundle file. If developer forgot to use title from Message Bundle and typed hard coded value:
Let's run Page Document Title rule:
Tool will generate report document, where violation will be reported:
It says that page title must be used from Message Bundle and property key should have specific value. I correct this violation and map page title to Message Bundle entry:
You can check, Message Bundle reference should be included:
Run same rule again, no violations now:
Check for my next blog posts on the same topic - I will post updates and extension improvements.