Home column configuration

11 messages Options
Embed this post
Permalink
Alexander von Zitzewitz () Home column configuration
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Home column configuration Hello !

If I try to add one of SonarJ’s metrics to the project overview by switching on configue I can select it, but it is never displayed. Does a metric need t be accumulated to the parent project to be visible here? If so it should not be selectable in the first place.

Regards

Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327



Simon Brandhof () Re: Home column configuration
Reply Threaded More More options
Print post
Permalink
Hi Alexander,

Is this metric displayed on the project dashboard ? If not, is it a project with modules ? In that case you have to calculate the measure from modules ones. If it's a simple sum, just add the following to your Metric instantiation :

new Metric(....).setFormula(new SumChildValuesFormula(false));

or implement your own Decorator like this one.

Regards,
Simon
Alexander von Zitzewitz () Re: Home column configuration
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Re: [sonar-dev] Home column configuration Hi Simon !

I have now created the decorator and the metric is on the dashboard of each project. I can select the metric in the add a column drop down box, but still the column is not displayed. Are metrics from external plugins handled in any special way?

Regards

Alexander


On 10/22/09 3:07 AM, "Simon Brandhof" <simon.brandhof@...> wrote:

Is this metric displayed on the project dashboard ? If not, is it a project with modules ? In that case you have to calculate the measure from modules ones. If it's a simple sum, just add the following to your Metric instantiation :

        new Metric(....).setFormula(new SumChildValuesFormula(false));

        or implement your own Decorator <http://sonar.codehaus.org/docs/1.11/apidocs/org/sonar/api/batch/Decorator.html>  like this one <http://svn.codehaus.org/sonar/trunk/plugins/sonar-plugin-core/src/main/java/org/sonar/plugins/core/sensors/LineCoverageDecorator.java> .

Regards,
Simon
Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327



Olivier Gaudin () Re: Home column configuration
Reply Threaded More More options
Print post
Permalink
nop, they aren't. Have you run an analysis ?

Olivier



On Thu, Oct 22, 2009 at 7:47 PM, Alexander von Zitzewitz <[hidden email]> wrote:
Hi Simon !

I have now created the decorator and the metric is on the dashboard of each project. I can select the metric in the add a column drop down box, but still the column is not displayed. Are metrics from external plugins handled in any special way?

Regards

Alexander



On 10/22/09 3:07 AM, "Simon Brandhof" <simon.brandhof@...> wrote:

Is this metric displayed on the project dashboard ? If not, is it a project with modules ? In that case you have to calculate the measure from modules ones. If it's a simple sum, just add the following to your Metric instantiation :

        new Metric(....).setFormula(new SumChildValuesFormula(false));

        or implement your own Decorator <http://sonar.codehaus.org/docs/1.11/apidocs/org/sonar/api/batch/Decorator.html>  like this one <http://svn.codehaus.org/sonar/trunk/plugins/sonar-plugin-core/src/main/java/org/sonar/plugins/core/sensors/LineCoverageDecorator.java> .

Regards,
Simon
Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327




Alexander von Zitzewitz () Re: Home column configuration
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Re: [sonar-dev] Home column configuration No analysis done – I just observed this when I tried to add our structural debt metric to the overview...

Does the metric need a history? In the beginning there s only one snapshot with the specific metric...

Regards

Alexander


On 10/22/09 1:53 PM, "Olivier Gaudin" <olivier.gaudin@...> wrote:

nop, they aren't. Have you run an analysis ?

Olivier



On Thu, Oct 22, 2009 at 7:47 PM, Alexander von Zitzewitz <a.zitzewitz@...> wrote:
Hi Simon !

I have now created the decorator and the metric is on the dashboard of each project. I can select the metric in the add a column drop down box, but still the column is not displayed. Are metrics from external plugins handled in any special way?

Regards

Alexander



On 10/22/09 3:07 AM, "Simon Brandhof" <simon.brandhof@... <http://simon.brandhof@...> > wrote:

Is this metric displayed on the project dashboard ? If not, is it a project with modules ? In that case you have to calculate the measure from modules ones. If it's a simple sum, just add the following to your Metric instantiation :

        new Metric(....).setFormula(new SumChildValuesFormula(false));

        or implement your own Decorator <http://sonar.codehaus.org/docs/1.11/apidocs/org/sonar/api/batch/Decorator.html>  like this one <http://svn.codehaus.org/sonar/trunk/plugins/sonar-plugin-core/src/main/java/org/sonar/plugins/core/sensors/LineCoverageDecorator.java> .

Regards,
Simon
Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327




Olivier Gaudin () Re: Home column configuration
Reply Threaded More More options
Print post
Permalink
Can you try making an analysis ? It should make the column magically appear.

Olivier


On Thu, Oct 22, 2009 at 8:22 PM, Alexander von Zitzewitz <[hidden email]> wrote:
No analysis done – I just observed this when I tried to add our structural debt metric to the overview...

Does the metric need a history? In the beginning there s only one snapshot with the specific metric...

Regards

Alexander



On 10/22/09 1:53 PM, "Olivier Gaudin" <olivier.gaudin@...> wrote:

nop, they aren't. Have you run an analysis ?

Olivier



On Thu, Oct 22, 2009 at 7:47 PM, Alexander von Zitzewitz <a.zitzewitz@...> wrote:
Hi Simon !

I have now created the decorator and the metric is on the dashboard of each project. I can select the metric in the add a column drop down box, but still the column is not displayed. Are metrics from external plugins handled in any special way?

Regards

Alexander



On 10/22/09 3:07 AM, "Simon Brandhof" <simon.brandhof@... <http://simon.brandhof@...> > wrote:

Is this metric displayed on the project dashboard ? If not, is it a project with modules ? In that case you have to calculate the measure from modules ones. If it's a simple sum, just add the following to your Metric instantiation :

        new Metric(....).setFormula(new SumChildValuesFormula(false));

        or implement your own Decorator <http://sonar.codehaus.org/docs/1.11/apidocs/org/sonar/api/batch/Decorator.html>  like this one <http://svn.codehaus.org/sonar/trunk/plugins/sonar-plugin-core/src/main/java/org/sonar/plugins/core/sensors/LineCoverageDecorator.java> .

Regards,
Simon
Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz () Re: Home column configuration
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Re: [sonar-dev] Home column configuration What do you mean by analysis? Mvn sonar:sonar?


On 10/22/09 3:32 PM, "Olivier Gaudin" <olivier.gaudin@...> wrote:

Can you try making an analysis ? It should make the column magically appear.

Olivier


On Thu, Oct 22, 2009 at 8:22 PM, Alexander von Zitzewitz <a.zitzewitz@...> wrote:
No analysis done – I just observed this when I tried to add our structural debt metric to the overview...

Does the metric need a history? In the beginning there s only one snapshot with the specific metric...

Regards

Alexander



On 10/22/09 1:53 PM, "Olivier Gaudin" <olivier.gaudin@... <http://olivier.gaudin@...> > wrote:

nop, they aren't. Have you run an analysis ?

Olivier



On Thu, Oct 22, 2009 at 7:47 PM, Alexander von Zitzewitz <a.zitzewitz@... <http://a.zitzewitz@...> > wrote:
Hi Simon !

I have now created the decorator and the metric is on the dashboard of each project. I can select the metric in the add a column drop down box, but still the column is not displayed. Are metrics from external plugins handled in any special way?

Regards

Alexander



On 10/22/09 3:07 AM, "Simon Brandhof" <simon.brandhof@... <http://simon.brandhof@...>  <http://simon.brandhof@...> > wrote:

Is this metric displayed on the project dashboard ? If not, is it a project with modules ? In that case you have to calculate the measure from modules ones. If it's a simple sum, just add the following to your Metric instantiation :

        new Metric(....).setFormula(new SumChildValuesFormula(false));

        or implement your own Decorator <http://sonar.codehaus.org/docs/1.11/apidocs/org/sonar/api/batch/Decorator.html>  like this one <http://svn.codehaus.org/sonar/trunk/plugins/sonar-plugin-core/src/main/java/org/sonar/plugins/core/sensors/LineCoverageDecorator.java> .

Regards,
Simon
Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>  <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz () Re: Home column configuration
Reply Threaded More More options
Print post
Permalink
In reply to this post by Olivier Gaudin
Some javascript/style in this post has been disabled (why?)
Re: [sonar-dev] Home column configuration I think I know the problem – my metrics have a dot ‘.’ in their key...



On 10/22/09 3:32 PM, "Olivier Gaudin" <olivier.gaudin@...> wrote:

Can you try making an analysis ? It should make the column magically appear.

Olivier


On Thu, Oct 22, 2009 at 8:22 PM, Alexander von Zitzewitz <a.zitzewitz@...> wrote:
No analysis done – I just observed this when I tried to add our structural debt metric to the overview...

Does the metric need a history? In the beginning there s only one snapshot with the specific metric...

Regards

Alexander



On 10/22/09 1:53 PM, "Olivier Gaudin" <olivier.gaudin@... <http://olivier.gaudin@...> > wrote:

nop, they aren't. Have you run an analysis ?

Olivier



On Thu, Oct 22, 2009 at 7:47 PM, Alexander von Zitzewitz <a.zitzewitz@... <http://a.zitzewitz@...> > wrote:
Hi Simon !

I have now created the decorator and the metric is on the dashboard of each project. I can select the metric in the add a column drop down box, but still the column is not displayed. Are metrics from external plugins handled in any special way?

Regards

Alexander



On 10/22/09 3:07 AM, "Simon Brandhof" <simon.brandhof@... <http://simon.brandhof@...>  <http://simon.brandhof@...> > wrote:

Is this metric displayed on the project dashboard ? If not, is it a project with modules ? In that case you have to calculate the measure from modules ones. If it's a simple sum, just add the following to your Metric instantiation :

        new Metric(....).setFormula(new SumChildValuesFormula(false));

        or implement your own Decorator <http://sonar.codehaus.org/docs/1.11/apidocs/org/sonar/api/batch/Decorator.html>  like this one <http://svn.codehaus.org/sonar/trunk/plugins/sonar-plugin-core/src/main/java/org/sonar/plugins/core/sensors/LineCoverageDecorator.java> .

Regards,
Simon
Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>  <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Olivier Gaudin () Re: Home column configuration
Reply Threaded More More options
Print post
Permalink
In reply to this post by Alexander von Zitzewitz
Yep, to compute the new metrics once

Olivier


On Thu, Oct 22, 2009 at 9:41 PM, Alexander von Zitzewitz <[hidden email]> wrote:
What do you mean by analysis? Mvn sonar:sonar?



On 10/22/09 3:32 PM, "Olivier Gaudin" <olivier.gaudin@...> wrote:

Can you try making an analysis ? It should make the column magically appear.

Olivier


On Thu, Oct 22, 2009 at 8:22 PM, Alexander von Zitzewitz <a.zitzewitz@...> wrote:
No analysis done – I just observed this when I tried to add our structural debt metric to the overview...

Does the metric need a history? In the beginning there s only one snapshot with the specific metric...

Regards

Alexander



On 10/22/09 1:53 PM, "Olivier Gaudin" <olivier.gaudin@... <http://olivier.gaudin@...> > wrote:

nop, they aren't. Have you run an analysis ?

Olivier



On Thu, Oct 22, 2009 at 7:47 PM, Alexander von Zitzewitz <a.zitzewitz@... <http://a.zitzewitz@...> > wrote:
Hi Simon !

I have now created the decorator and the metric is on the dashboard of each project. I can select the metric in the add a column drop down box, but still the column is not displayed. Are metrics from external plugins handled in any special way?

Regards

Alexander



On 10/22/09 3:07 AM, "Simon Brandhof" <simon.brandhof@... <http://simon.brandhof@...>  <http://simon.brandhof@...> > wrote:

Is this metric displayed on the project dashboard ? If not, is it a project with modules ? In that case you have to calculate the measure from modules ones. If it's a simple sum, just add the following to your Metric instantiation :

        new Metric(....).setFormula(new SumChildValuesFormula(false));

        or implement your own Decorator <http://sonar.codehaus.org/docs/1.11/apidocs/org/sonar/api/batch/Decorator.html>  like this one <http://svn.codehaus.org/sonar/trunk/plugins/sonar-plugin-core/src/main/java/org/sonar/plugins/core/sensors/LineCoverageDecorator.java> .

Regards,
Simon
Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>  <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327






Alexander von Zitzewitz () Re: Home column configuration
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Re: [sonar-dev] Home column configuration It was the dot in the metric key, replaced it with an underscore and everything runs just fine...


On 10/22/09 3:43 PM, "Olivier Gaudin" <olivier.gaudin@...> wrote:

Yep, to compute the new metrics once

Olivier


On Thu, Oct 22, 2009 at 9:41 PM, Alexander von Zitzewitz <a.zitzewitz@...> wrote:
What do you mean by analysis? Mvn sonar:sonar?



On 10/22/09 3:32 PM, "Olivier Gaudin" <olivier.gaudin@... <http://olivier.gaudin@...> > wrote:

Can you try making an analysis ? It should make the column magically appear.

Olivier


On Thu, Oct 22, 2009 at 8:22 PM, Alexander von Zitzewitz <a.zitzewitz@... <http://a.zitzewitz@...> > wrote:
No analysis done – I just observed this when I tried to add our structural debt metric to the overview...

Does the metric need a history? In the beginning there s only one snapshot with the specific metric...

Regards

Alexander



On 10/22/09 1:53 PM, "Olivier Gaudin" <olivier.gaudin@... <http://olivier.gaudin@...>  <http://olivier.gaudin@...> > wrote:

nop, they aren't. Have you run an analysis ?

Olivier



On Thu, Oct 22, 2009 at 7:47 PM, Alexander von Zitzewitz <a.zitzewitz@... <http://a.zitzewitz@...>  <http://a.zitzewitz@...> > wrote:
Hi Simon !

I have now created the decorator and the metric is on the dashboard of each project. I can select the metric in the add a column drop down box, but still the column is not displayed. Are metrics from external plugins handled in any special way?

Regards

Alexander



On 10/22/09 3:07 AM, "Simon Brandhof" <simon.brandhof@... <http://simon.brandhof@...>  <http://simon.brandhof@...>  <http://simon.brandhof@...> > wrote:

Is this metric displayed on the project dashboard ? If not, is it a project with modules ? In that case you have to calculate the measure from modules ones. If it's a simple sum, just add the following to your Metric instantiation :

        new Metric(....).setFormula(new SumChildValuesFormula(false));

        or implement your own Decorator <http://sonar.codehaus.org/docs/1.11/apidocs/org/sonar/api/batch/Decorator.html>  like this one <http://svn.codehaus.org/sonar/trunk/plugins/sonar-plugin-core/src/main/java/org/sonar/plugins/core/sensors/LineCoverageDecorator.java> .

Regards,
Simon
Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>  <http://www.hello2morrow.com>  <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>  <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com <http://www.hello2morrow.com>

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327





Alexander von Zitzewitz



www.hello2morrow.com

SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits

+1 (877) 294-6327






Simon Brandhof () Re: Home column configuration
Reply Threaded More More options
Print post
Permalink
OK, we'll add some javadoc and assertions to release 1.12
Thank you.