You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Hadrian Zbarcea <hz...@gmail.com> on 2011/02/07 06:33:05 UTC
Camel added to the Sonar pilot
Hi,
The ASF is running a pilot instance of Sonar [1] and, thanks to Brett Porter, Camel was included.
After four failed builds, Olivier Lamy pitched in and made Chuck Norris happy on the fifth try.
Therefore [drum roll] I am happy to introduce the first sonar report of Camel [2]. Feel free to take a look at the many things we can improve in camel.
(I am willing to bet Christian Schneider will jump on the package dependencies). There are a bunch of low hanging fruits, such as redundant throws and collapsible if statements that could quickly improve our rating from an already respectable 78.9%.
Needless to say, it becomes even more important to keep our builds stable and keep working on reducing testing time, as building Camel sucks over 5 hours of scarce build time in the sonar environment.
Many thanks to Brett, Olivier and INFRA for the help.
Hadrian
[1] http://sonar.apache.org/
[2] http://sonar.apache.org/dashboard/index/37401
Re: Camel added to the Sonar pilot
Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Feb 9, 2011 at 8:51 AM, Christian Müller
<ch...@gmail.com> wrote:
> The Camel Sonar Pilot lists 4 blocker for Camel [1]. All in
> org.apache.camel.impl.converter.AnnotationTypeConverterLoader because it use
> the URL.equals() and URL.hashCode() methods.You can find the explanation in
> [2] why this is not a good idea. I would like to change it url.toURI()? Any
> doubt?
>
Well spotted.
+1
> [1]
> http://sonar.apache.org/drilldown/violations/org.apache.camel:camel?priority=BLOCKER#
> [2]
> http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html
>
> Christian
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: Camel added to the Sonar pilot
Posted by Christian Müller <ch...@gmail.com>.
The Camel Sonar Pilot lists 4 blocker for Camel [1]. All in
org.apache.camel.impl.converter.AnnotationTypeConverterLoader because it use
the URL.equals() and URL.hashCode() methods.You can find the explanation in
[2] why this is not a good idea. I would like to change it url.toURI()? Any
doubt?
[1]
http://sonar.apache.org/drilldown/violations/org.apache.camel:camel?priority=BLOCKER#
[2]
http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html
Christian
Re: Camel added to the Sonar pilot
Posted by Hadrian Zbarcea <hz...@gmail.com>.
If you have the karma, please!
When we got the build failures, I asked Brett about having a Camel profile and if I could get karma on sonar, but didn't get an answer. Don't know if he didn't notice my request, or what the reason was for him ignoring it. I chose not to push it.
Thanks,
Hadrian
On Feb 7, 2011, at 9:33 AM, Daniel Kulp wrote:
>
>
> Hadrian,
>
> I believe the sonar build for Camel is using the default "Sun checks with
> Findbugs" setup. I could change that to use the Camel rules for Checkstyle
> and PMD.
>
> The CXF build is now using the CXF rulesets for both. It jumped the
> compliance level from ~85% to ~96% as we didn't feel a bunch of the
> PMC/Checkstyle rules were really violations of anything.
>
> Dan
>
>
> On Monday 07 February 2011 12:33:05 am Hadrian Zbarcea wrote:
>> Hi,
>>
>> The ASF is running a pilot instance of Sonar [1] and, thanks to Brett
>> Porter, Camel was included. After four failed builds, Olivier Lamy pitched
>> in and made Chuck Norris happy on the fifth try.
>>
>> Therefore [drum roll] I am happy to introduce the first sonar report of
>> Camel [2]. Feel free to take a look at the many things we can improve in
>> camel. (I am willing to bet Christian Schneider will jump on the package
>> dependencies). There are a bunch of low hanging fruits, such as redundant
>> throws and collapsible if statements that could quickly improve our rating
>> from an already respectable 78.9%.
>>
>> Needless to say, it becomes even more important to keep our builds stable
>> and keep working on reducing testing time, as building Camel sucks over 5
>> hours of scarce build time in the sonar environment.
>>
>> Many thanks to Brett, Olivier and INFRA for the help.
>> Hadrian
>>
>> [1] http://sonar.apache.org/
>> [2] http://sonar.apache.org/dashboard/index/37401
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
Re: Camel added to the Sonar pilot
Posted by Daniel Kulp <dk...@apache.org>.
Hadrian,
I believe the sonar build for Camel is using the default "Sun checks with
Findbugs" setup. I could change that to use the Camel rules for Checkstyle
and PMD.
The CXF build is now using the CXF rulesets for both. It jumped the
compliance level from ~85% to ~96% as we didn't feel a bunch of the
PMC/Checkstyle rules were really violations of anything.
Dan
On Monday 07 February 2011 12:33:05 am Hadrian Zbarcea wrote:
> Hi,
>
> The ASF is running a pilot instance of Sonar [1] and, thanks to Brett
> Porter, Camel was included. After four failed builds, Olivier Lamy pitched
> in and made Chuck Norris happy on the fifth try.
>
> Therefore [drum roll] I am happy to introduce the first sonar report of
> Camel [2]. Feel free to take a look at the many things we can improve in
> camel. (I am willing to bet Christian Schneider will jump on the package
> dependencies). There are a bunch of low hanging fruits, such as redundant
> throws and collapsible if statements that could quickly improve our rating
> from an already respectable 78.9%.
>
> Needless to say, it becomes even more important to keep our builds stable
> and keep working on reducing testing time, as building Camel sucks over 5
> hours of scarce build time in the sonar environment.
>
> Many thanks to Brett, Olivier and INFRA for the help.
> Hadrian
>
> [1] http://sonar.apache.org/
> [2] http://sonar.apache.org/dashboard/index/37401
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog