org.sonar.plugins.core.sensors
Class ViolationsDensityDecorator
java.lang.Object
org.sonar.plugins.core.sensors.ViolationsDensityDecorator
- All Implemented Interfaces:
- CheckProject, Decorator, BatchComponent, BatchExtension, Extension
public class ViolationsDensityDecorator
- extends Object
- implements Decorator
ViolationsDensityDecorator
public ViolationsDensityDecorator()
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-2011 SonarSource. All Rights Reserved.