开发者

Sonar - Can we use for OSB/BPEL code review?

I am new to sonar,just heard about this to开发者_StackOverflow社区ol.

Can we use this tool to perform code review for FMW(Fusion Middleware) -OSB(Oracle Service Bus)/BPEL project ? If so can anyone give some inputs on this?


The official plugin-List : http://docs.codehaus.org/display/SONAR/Sonar+Plugin+Library/ does not mention support for your tools.

But sonar can be extended with custom plugins, so you may be able to write your own plugins to provide metrics for your tools.


What level of review you want to cover? It is really easy to make your own review tool for BPEL. All BPEL resources are XML files. For example if you want to check for naming convetion of BPEL activities, you can define a simple XPath based rule. Ex:

//sequence/@name ~= "^sequence.*".

A Java program can use the above XPath to pull-out all sequence names from the xxxx.bpel file and compare it against a regular expression. Similar rules can be created for checking WSDL usage, partner links, end-point addresses, usage of Error handling etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜