Plugins 可以在插件中访问sonarqube分析结果吗?

Plugins 可以在插件中访问sonarqube分析结果吗?,plugins,sonarqube,Plugins,Sonarqube,根据sonar日志,我看到sonar首先运行传感器,然后运行装饰程序,然后将分析结果存储到数据库中。可以在声纳插件中访问分析结果吗 感谢Sonar web应用程序可在localhost:9000(或安装在任何地方)获得 还有一个用于Eclipse查看问题的插件: 我终于在这里找到了解决问题的方法。 //此注释对于确保问题的相关数据是最新的非常重要。 @DependsUpon(decororbarriers.ISSUES\u跟踪) 公共最终类MyDecorator实现Decorator{ 个人观

根据sonar日志,我看到sonar首先运行传感器,然后运行装饰程序,然后将分析结果存储到数据库中。可以在声纳插件中访问分析结果吗


感谢

Sonar web应用程序可在localhost:9000(或安装在任何地方)获得

还有一个用于Eclipse查看问题的插件:
我终于在这里找到了解决问题的方法。

//此注释对于确保问题的相关数据是最新的非常重要。
@DependsUpon(decororbarriers.ISSUES\u跟踪)
公共最终类MyDecorator实现Decorator{
个人观点;
公共技术DebtDecorator(资源视角){
这个。透视图=透视图;
}
公共空间装饰(资源、装饰或上下文){
Issuable Issuable=perspecties.as(Issuable.class,resource);
如果(可发布!=null){
列出问题=可发布的。问题();
//问题有方法isNew()
}
}
}

我想你误解了这里的问题。我正在考虑一个插件,它使用当前分析的结果并对其进行操作。所以,问题是,这能做到吗?这完全可行吗?
// 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()
    }
  }
}