It's all about the answers!

Ask a question

RTC/Software Analyzer and other static code analysis tools


Paul Barker (61) | asked Sep 25 '09, 10:42 a.m.
A couple of questions regarding static code analysis options when using RTC.

We have a standard set of open source static analysis tools (checkstyle, PMD and findbugs) we'd like to incorporate with RTC. We execute these from maven. In version 1.x of RTC I understand the staticAnalysis incubator project provided a mechanism for bringing the results back into RTC for visibility. However this functionality seems to have been removed in version 2 and we cant find the alternative.

In the meantime we're looking at using the static analysis capability provided by Software Analyzer, which we'd like to trigger using a pre-condition when a developer commits changes. We have an example of this working in a SCRUM process and would like to see that same trigger in an OpenUP process definition.

Any guidance on how to configure this functionality withinthe OpenUP processthis would be gratefully recieved.

Additionally we would also like to trigger this as a part of the build, is there a plugin to maven that would allow us to do this?

Thanks in advance

4 answers



permanent link
Nick Edgar (6.5k711) | answered Sep 25 '09, 5:27 p.m.
JAZZ DEVELOPER
For an explanation of what happened to the incubators, please see:
http://jazz.net/forums/viewtopic.php?t=4504

RSAR (Rational Software Analyzer) is working on integrating with RTC. The current release provides a process precondition on the SCM deliver operation, and they're currently working on a high-fidelity integration with RTC Build, e.g. showing results in the build editor.

For integrating other static analysis tools, you could upload their output as log files. Alternatively, you could copy their output to a separate server then link to it from the build result. Both of these can be done using the Ant tasks in the Build Toolkit. For more details, see https://jazz.net/wiki/bin/view/Main/BuildFAQ#BuildSystemToolkitContents

Currently, showing rich results for such data in the build result editor requires writing plug-ins. We want to make this simpler in 3.0. See 94475: Make it easy to contribute arbitrary data to a build, and view it.

If you already have a process precondition configured in your SCRUM process, it should be straightforward to do this for an OpenUP process. You should be able to just copy the relevant section of your process specification, via the project area editor's Process Configuration page, presumably under Team Configuration > Operation Behavior > 'Source Control' category > Deliver (client).

For Maven support, could you clarify what you're looking for? We do have basic support for running a Maven script from RTC, but to publish downloads/logs/links back to the build result you currently need to use the Ant tasks. See also 90042: Maven SCM plugin extension for RTC.

permanent link
Paul Barker (61) | answered Sep 29 '09, 5:51 a.m.
the stuff we are looking to do with maven seems to be covered by the Ant tasks at the moment - thanks for the info.

permanent link
Nick Edgar (6.5k711) | answered Sep 29 '09, 8:30 p.m.
JAZZ DEVELOPER
OK, good. We are looking to improve our support for Maven, so if you have suggestions please let us know.

permanent link
Jose Miguel Ordax Cassa (2.4k4126100) | answered Nov 24 '09, 3:38 a.m.
On 25-Sep-09 11:37 PM, nedgar wrote:
RSAR (Rational Software Analyzer) is working on integrating with RTC.
The current release provides a process precondition on the SCM deliver
operation, and they're currently working on a high-fidelity
integration with RTC Build, e.g. showing results in the build
editor.

RSAR 7.1.0.1 is out and it includes the build integration:
http://www-01.ibm.com/support/docview.wss?uid=swg24024710

Regards,

Chemi.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.