Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC/Software Analyzer and other static code analysis tools

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

0 votes



4 answers

Permanent link
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.

0 votes


Permanent link
the stuff we are looking to do with maven seems to be covered by the Ant tasks at the moment - thanks for the info.

0 votes


Permanent link
OK, good. We are looking to improve our support for Maven, so if you have suggestions please let us know.

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 25 '09, 10:42 a.m.

Question was seen: 9,494 times

Last updated: Sep 25 '09, 10:42 a.m.

Confirmation Cancel Confirm