2

Iam trying to implement static code analysis for Apache Camel not only for java but also XML based DSL.Is there any SCA Tool available?

Ravi
  • 1,247
  • 4
  • 15
  • 35

2 Answers2

0

Do you refer to the Camel routes as you want some kind of analysis of those? As Apache Camel is just regular Java code, then any regular SCA tools you can use

There is a good list on wikipedia

That said we are working on a "code/route coverage" tool that you run as part of unit tests, and then it can report which parts of your Java or XML routes have been covered or not. That work is still ongoing, you can follow the ticket:

Claus Ibsen
  • 56,060
  • 7
  • 50
  • 65
  • Hi Claus, Thanks for reply Is there any tool where we can define rules for camel coding especially xml for developers and it shows defects if it don't comply to the rules..like we have sonar qube for Java... – Ravi Jul 13 '15 at 17:28
  • No there is no such tool. You can validate the XML that its correct according to the Camel XSD schemas. But there is no tool to validate that you do "something not so good". – Claus Ibsen Jul 14 '15 at 05:54
0

I believe you can certainly create a custom Sonar XPath rule using the XML plug in e.g. testing elements exist with certain attributes.