org.sonar.plugins.issuesdensity.batch
Class IssuesDensityDecorator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IssuesDensityDecorator
public IssuesDensityDecorator()
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.