org.sonar.batch.debt
Class NewDebtDecorator

java.lang.Object
  extended by org.sonar.batch.debt.NewDebtDecorator
All Implemented Interfaces:
CheckProject, Decorator, BatchComponent, BatchExtension, Extension

public final class NewDebtDecorator
extends Object
implements Decorator

Decorator that computes the technical debt metric


Constructor Summary
NewDebtDecorator(ResourcePerspectives perspectives, TimeMachineConfiguration timeMachineConfiguration, IssueChangelogDebtCalculator issueChangelogDebtCalculator)
           
 
Method Summary
 void decorate(Resource resource, DecoratorContext context)
           
 List<Metric> generatesMetrics()
           
 boolean shouldExecuteOnProject(Project project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewDebtDecorator

public NewDebtDecorator(ResourcePerspectives perspectives,
                        TimeMachineConfiguration timeMachineConfiguration,
                        IssueChangelogDebtCalculator issueChangelogDebtCalculator)
Method Detail

shouldExecuteOnProject

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

generatesMetrics

public List<Metric> generatesMetrics()

decorate

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


Copyright © 2009–2015 SonarSource. All rights reserved.