org.sonar.plugins.issuesdensity.batch
Class IssuesDensityDecorator

java.lang.Object
  extended by org.sonar.plugins.issuesdensity.batch.IssuesDensityDecorator
All Implemented Interfaces:
org.sonar.api.batch.CheckProject, org.sonar.api.batch.Decorator, org.sonar.api.BatchComponent, org.sonar.api.BatchExtension, org.sonar.api.Extension

public class IssuesDensityDecorator
extends Object
implements org.sonar.api.batch.Decorator


Constructor Summary
IssuesDensityDecorator()
           
 
Method Summary
protected static double calculate(int debt, int ncloc)
           
 void decorate(org.sonar.api.resources.Resource resource, org.sonar.api.batch.DecoratorContext context)
           
 List<org.sonar.api.measures.Metric> dependsUponWeightedIssuesAndNcloc()
           
 org.sonar.api.measures.Metric generatesIssuesDensity()
           
protected  boolean shouldDecorateResource(org.sonar.api.batch.DecoratorContext context)
           
 boolean shouldExecuteOnProject(org.sonar.api.resources.Project project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssuesDensityDecorator

public IssuesDensityDecorator()
Method Detail

shouldExecuteOnProject

public boolean shouldExecuteOnProject(org.sonar.api.resources.Project project)
Specified by:
shouldExecuteOnProject in interface org.sonar.api.batch.CheckProject

dependsUponWeightedIssuesAndNcloc

public List<org.sonar.api.measures.Metric> dependsUponWeightedIssuesAndNcloc()

generatesIssuesDensity

public org.sonar.api.measures.Metric generatesIssuesDensity()

decorate

public void decorate(org.sonar.api.resources.Resource resource,
                     org.sonar.api.batch.DecoratorContext context)
Specified by:
decorate in interface org.sonar.api.batch.Decorator

shouldDecorateResource

protected boolean shouldDecorateResource(org.sonar.api.batch.DecoratorContext context)

calculate

protected static double calculate(int debt,
                                  int ncloc)


Copyright © 2014 SonarSource. All Rights Reserved.