2014-01-17 51 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

我想你在这里误解了这个问题。 我在想这里的插件,它使用当前分析的结果并对它们进行操作。 所以,问题是,可以这样做吗?它可行吗? –

相关问题