2014-01-17 79 views

回答

0

我終於找到了解決我的問題在這裏。
http://sonarqube.15.x6.nabble.com/sonar-dev-Where-can-I-find-new-issue-information-on-sonar-db-td5021022.html

// this annotation is important to be sure that relevant data on issues are up-to-date. 
@DependsUpon(DecoratorBarriers.ISSUES_TRACKED) 
public final class MyDecorator implements Decorator { 
    private final ResourcePerspectives perspectives; 

    public TechnicalDebtDecorator(ResourcePerspectives perspectives) { 
    this.perspectives = perspectives; 
    } 

    public void decorate(Resource resource, DecoratorContext context) { 
    Issuable issuable = perspectives.as(Issuable.class, resource); 
    if (issuable != null) { 
     List<Issue> issues = issuable.issues(); 
     // Issue has method isNew() 
    } 
    } 
} 
0

聲納Web應用程序可在本地主機:9000(或其它地方它的安裝)。

還有一個Eclipse插件來查看問題: http://docs.codehaus.org/display/SONAR/SonarQube+in+Eclipse

+0

我想你在這裏誤解了這個問題。 我在想這裏的插件,它使用當前分析的結果並對它們進行操作。 所以,問題是,可以這樣做嗎?它可行嗎? –

相關問題