org.sonar.plugins.core.sensors
Class ViolationsDensityDecorator

java.lang.Object
  extended by org.sonar.plugins.core.sensors.ViolationsDensityDecorator
All Implemented Interfaces:
CheckProject, Decorator, BatchComponent, BatchExtension, Extension

public class ViolationsDensityDecorator
extends Object
implements Decorator


Constructor Summary
ViolationsDensityDecorator()
           
 
Method Summary
protected static double calculate(int debt, int ncloc)
           
 void decorate(Resource resource, DecoratorContext context)
           
 List<Metric> dependsUponWeightedViolationsAndNcloc()
           
 Metric generatesViolationsDensity()
           
protected  boolean shouldDecorateResource(DecoratorContext context)
           
 boolean shouldExecuteOnProject(Project project)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViolationsDensityDecorator

public ViolationsDensityDecorator()
Method Detail

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Specified by:
shouldExecuteOnProject in interface CheckProject

dependsUponWeightedViolationsAndNcloc

public List<Metric> dependsUponWeightedViolationsAndNcloc()

generatesViolationsDensity

public Metric generatesViolationsDensity()

decorate

public void decorate(Resource resource,
                     DecoratorContext context)
Specified by:
decorate in interface Decorator

shouldDecorateResource

protected boolean shouldDecorateResource(DecoratorContext context)

calculate

protected static double calculate(int debt,
                                  int ncloc)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 SonarSource. All Rights Reserved.