public class ViolationsDensityDecorator extends Object implements Decorator
Constructor and Description |
---|
ViolationsDensityDecorator() |
Modifier and Type | Method and Description |
---|---|
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() |
public ViolationsDensityDecorator()
public boolean shouldExecuteOnProject(Project project)
shouldExecuteOnProject
in interface CheckProject
public List<Metric> dependsUponWeightedViolationsAndNcloc()
public Metric generatesViolationsDensity()
public void decorate(Resource resource, DecoratorContext context)
protected boolean shouldDecorateResource(DecoratorContext context)
protected static double calculate(int debt, int ncloc)
Copyright © 2009-2012 SonarSource. All Rights Reserved.