| Name | CheckStyle plugin |
|---|---|
| Version | 2.0-beta1 |
| Product Versions | 2.0.x |
| Author(s) | Stephan Paulicke |
| Maintainer(s) | Lilians Auvigne |
| Homepage | http://confluence.atlassian.com/display/BAMEXT/CheckStyle+Plugin |
| Price | Free |
| License | BSD |
| IssueTracking | http://developer.atlassian.com/jira/browse/BCHKSTYL |
| Subversion URL | https://svn.atlassian.com/svn/public/contrib/bamboo/bamboo-checkstyle-plugin/trunk/ |
| Fisheye URL | http://svn.atlassian.com/fisheye/browse/public/contrib/bamboo/bamboo-checkstyle-plugin |
| Download JAR | bamboo-checkstyle-plugin-2.0-beta1.jar |
Description/Features
A plugin that will parse and record CheckStyle reports
Usage
- Copy the bamboo-checkstyle-plugin-2.0-beta1.jar file into your <BAMBOO_HOME>/webapp/WEB-INF/lib directory and restart Bamboo.
Think to remove the old version. - In the configuration of your plan, there should be a new CheckStyle section on the 'Builder Configuration' tab. Here you can specify whether your plan generates CheckStyle reports, and if so, the location of the XML report file.
- That should be it, you should now see a CheckStyle tab on your Plan and on any new builds that generate CheckStyle report files.
Version Compatibility
Compatibility of Checkstyle Plugin versions (side) versus Bamboo versions (top).
|
| |||||||||||||||||||||||||||
Version History
| Version | Date | Description |
|---|---|---|
| 1.0.0 | August 30th 2007 | initial version |
| 1.0.1 | October 29th 2007 | fix reported bugs |
| bamboo-checkstyle-plugin-2.0-beta1.jar | Jully 4th 2008 | Bamboo 2.0 migration |
2.0
Fix of version Bamboo 2.0-beta1
2.0-beta1
Initial version Bamboo 2.x





Comments (21)
Sep 05, 2007
Peter Johnstone says:
This look like just what we need, but I can't get it to pick up the checkstyle r...This look like just what we need, but I can't get it to pick up the checkstyle results. The project I'm using to test the plugin has ten checkstyle errors, but the graphs generated show zero errors. I'm pointing the plug in to the checkstyle-result.xml file (**/target/checkstyle-result.xml) is this the correct file?.
Sep 05, 2007
Stephan Paulicke says:
hi, the plugin uses the standard atlassian FileVisitor. in my configuration i ju...hi,
the plugin uses the standard atlassian FileVisitor. in my configuration i just put in the folder to look in, e.g. lib/qmb/reports/CheckStyle (this folder is located within the checkout).
Sep 10, 2007
Peter Johnstone says:
Hi Stephan, This hasn't helped. I don't have the folder lib/qmb/reports/CheckSty...Hi Stephan,
This hasn't helped. I don't have the folder lib/qmb/reports/CheckStyle. I also tried **/target (Removing the file name from my existing configuration).
The Checkstyle plug in creates the following files in the target directory: checkstyle-checker.xml, checkstyle-header.txt and checkstyle-result.xml. And in the target/site directory check-style.mtml and checkstyle.rss.
I had presumed that the plugin was looking for the checkstyle-result.xml. Is this the case, or is the pluggin looking for another file?
For futher information the PC tath I am testing the plug in on does not have internet access, the version of the maven-checkstyle-plugin that I am using is version 2.1. Perhaps the plugin requires a newer version of the plug in?
Thanks,
Peter
Feb 14
Janusz Gorycki says:
Hi, I am getting a simmilar error to Peter's: the plugin always reports that the...Hi,
I am getting a simmilar error to Peter's: the plugin always reports that there are 0 violations. It did report true values exactly once, then somehow seemed to not notice that checkstyle report contains some data. I have set the output dir to **/target/* or just target
Oct 09, 2007
Sebastian Voigt says:
the graph seems sometimes to show false values. I reduced in a project the viol...the graph seems sometimes to show false values.
I reduced in a project the violations from about 50.000 to about 7, and the graph shows 450000.
Is it possible to add value that displays the something like a rating ( violations / source code lines).
Thanks in advance
Oct 10, 2007
Stephan Paulicke says:
Hi, the graph shows a the avarage of a day at minimum. So if you've done some bu...Hi,
the graph shows a the avarage of a day at minimum. So if you've done some builds with 50000 violations and the dropped down to 7 the daily avarage might still be high. The rating might be possibly, due a lack of time I'm not able to do this ... but feel free to modify the plugin
Oct 19, 2007
Maarten Moens says:
Hi, i found a small bug: If there are no 10 violations in the file the plugin cr...Hi, i found a small bug:
If there are no 10 violations in the file the plugin crashes:
2007-10-18 12:59:20,859 ERROR [BAM:Default Queue:BuildExe] [CheckStyleBuildProcessor] Failed to parse artifact result file "checkstyle_errors.xml"
java.lang.IndexOutOfBoundsException: Index: 8, Size: 8
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.get(ArrayList.java:321)
at com.atlassian.bamboo.plugins.checkstyle.CheckStyleReportParser.convertTopViolationsToCsv(CheckStyleReportParser.java:127)
at com.atlassian.bamboo.plugins.checkstyle.CheckStyleBuildProcessor$CheckStyleFileVisitor.runParse(CheckStyleBuildProcessor.java:132)
at com.atlassian.bamboo.plugins.checkstyle.CheckStyleBuildProcessor$CheckStyleFileVisitor.visitFile(CheckStyleBuildProcessor.java:121)
at com.atlassian.bamboo.utils.FileVisitor.visitAlLFilesThatMatchAPattern(FileVisitor.java:78)
at com.atlassian.bamboo.utils.FileVisitor.visitFilesThatMatch(FileVisitor.java:52)
at com.atlassian.bamboo.plugins.checkstyle.CheckStyleBuildProcessor.run(CheckStyleBuildProcessor.java:77)
at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:97)
at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:50)
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:31)
at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
at java.lang.Thread.run(Thread.java:595)
Oct 24, 2007
John Allen says:
Hey I was just going to report that issue\! Easy fix for the developers though.Hey I was just going to report that issue! Easy fix for the developers though.
Oct 28, 2007
Stefan Hansel says:
Don't know where to post this bug, but there are issues (NumberFormatException),...Don't know where to post this bug, but there are issues (NumberFormatException), when you try to generate statistics, while the checkstyle plugin is active. (Unfortunately this effects all statistics - not only the checkstyle statistics).
These only happen under (for instance) a german locale.
To fix go to CheckstyleIndexReader.addBuildToSummary(..) and change the line:
double violations = Double.parseDouble(s);
to
double violations = NumberUtils.stringToDouble(s);
This is needed because in the PostBuildIndexWriter the NumberUtils.padWithZeros(..)-method is used, which respects the current locale (and generates strings like "000001234,00"). A simple Double.parse() thus is not enough.
Oct 29, 2007
Stephan Paulicke says:
Hi all, sorry for the delay, but I've just fixed the 2 reported bugs. CheersHi all,
sorry for the delay, but I've just fixed the 2 reported bugs.
Cheers
Nov 18, 2007
John Allen says:
The aggregated per plan data is inaccurate. We have a multimodule project that r...The aggregated per plan data is inaccurate. We have a multi-module project that results in 10 individual checkstyle.xml report files being generated by checkstyle itself as part of the build, of which there were at least 500+ warning and 1000+ info level violations. However the plugin reports 0 warnings, 0 info. I have not as yet delved into the code but i presume the plugin's functional tests cover converging/aggregating executions?.
Note the bamboo log file shows that the plugin processed each file so our glob wasnt incorrect.
Feb 07
Eric Geordi says:
Stephan, Is there anyway you could add a table below the graph showing the numbe...Stephan, Is there anyway you could add a table below the graph showing the number of checkstyles for each build that showed what the actual checkstyle errors are ? It is kind of hard to tell what to fix just from looking at the top violators. Or does this capability already exist somewhere in the plugin ?
May 08
John Brugge says:
I'm finding two problems with the way this plugin is working: It seems to requi...I'm finding two problems with the way this plugin is working:
We are running Bamboo 1.2.4, with Maven 2.0.8, and our project set up as multiple Maven modules.
Thanks for any hints,
John
May 08
Fernando Silva says:
Hi Paulick\! is any update scheduled to support Bamboo v2??? Thanks in advance,\...Hi Paulick!
is any update scheduled to support Bamboo v2???
Thanks in advance,
Fernando
May 13
Alan Mosely says:
Also interested in a Bamboo 2 compatible plugin with the issues regarding the no...Also interested in a Bamboo 2 compatible plugin with the issues regarding the non aggregation of maven multi module builds resolved, is this planned?
Jun 02
Max Horváth says:
We also need a working version for Bamboo 2 ... anyone working on it?We also need a working version for Bamboo 2 ... anyone working on it?
Jun 04
Sreehary V Kalichamy says:
I am currently using Bamboo 2 when i try using the checkstyle(bamboocheckstylepl...I am currently using Bamboo 2 when i try using the checkstyle(bamboo-checkstyle-plugin-1.0.1.jar )Plugin ,it seems checkstyle doesnt works with the bamboo 2 .Can you give me some suggestion to get checkstyle working with bamboo2 !!!
Jun 16
Lilians AUVIGNE says:
Hi all, I posted a Bamboo 2.0 snapshot version of this plugin : bamboocheckstyl...Hi all,
I posted a Bamboo 2.0 snapshot version of this plugin : bamboo-checkstyle-plugin-2.0-RC1-SNAPSHOT.jar
I'm testing it this week and I'm thinking release it the next week.
Good testing
Jun 20
Stephen says:
It's excellant to see the plugin being maintained... After upgrading to the snap...It's excellant to see the plugin being maintained...
After upgrading to the snapshot jar I'm not seeing anything in the delta column - is this to be expected?
Jun 20
Lilians AUVIGNE says:
No, I don't think. I created this issue :No, I don't think.
I created this issue : http://developer.atlassian.com/jira/browse/BCHKSTYL-4
Jul 09
Kevin Behrens says:
I see a change history for 2.0, but the download link still points at 2.0beta1 I...I see a change history for 2.0, but the download link still points at 2.0-beta1
Is there a 2.0 jar available?