org.sonar.batch.debt
Class DebtDecorator

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

public final class DebtDecorator
extends Object
implements Decorator

Decorator that computes the technical debt metric


Constructor Summary
DebtDecorator(ResourcePerspectives perspectives, TechnicalDebtModel model, Rules rules, RuleFinder ruleFinder)
           
 
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

DebtDecorator

public DebtDecorator(ResourcePerspectives perspectives,
                     TechnicalDebtModel model,
                     Rules rules,
                     RuleFinder ruleFinder)
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.