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
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
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.
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.
On 25-Sep-09 11:37 PM, nedgar wrote:
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.
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.