- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.sonar.api.web.WidgetCategory
类的一些代码示例,展示了WidgetCategory
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WidgetCategory
类的具体详情如下:
包路径:org.sonar.api.web.WidgetCategory
类名称:WidgetCategory
暂无
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Issues"})
public class UnresolvedIssuesStatusesWidget extends CoreWidget {
public UnresolvedIssuesStatusesWidget() {
super("unresolved_issues_statuses", "Unresolved issues by status", "/org/sonar/plugins/core/widgets/issues/unresolved_issues_statuses.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Issues", "Technical Debt"})
public class IssuesWidget extends CoreWidget {
public IssuesWidget() {
super("rules", "Issues and Technical Debt", "/org/sonar/plugins/core/widgets/issues/issues.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Issues"})
public class UnresolvedIssuesPerAssigneeWidget extends CoreWidget {
public UnresolvedIssuesPerAssigneeWidget() {
super("reviews_per_developer", "Unresolved issues per assignee", "/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@UserRole(UserRole.USER)
@WidgetCategory("Technical Debt")
public final class DebtOverviewWidget extends CoreWidget {
public DebtOverviewWidget() {
super("debt_overview", "Technical Debt Overview", "/org/sonar/plugins/core/widgets/debt_overview.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory("Tests")
@UserRole(UserRole.USER)
public class CoverageWidget extends CoreWidget {
public CoverageWidget() {
super("code_coverage", "Code coverage", "/org/sonar/plugins/core/widgets/coverage.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@UserRole(UserRole.USER)
@WidgetCategory("Technical Debt")
public final class TechnicalDebtPyramidWidget extends CoreWidget {
public TechnicalDebtPyramidWidget() {
super("technical_debt_pyramid", "Technical Debt Pyramid", "/org/sonar/plugins/core/widgets/technical_debt_pyramid.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory("Tests")
@UserRole(UserRole.USER)
public class ItCoverageWidget extends CoreWidget {
public ItCoverageWidget() {
super("it-coverage", "Integration Test Coverage", "/org/sonar/plugins/core/widgets/it_coverage.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar-plugins/sonar-violationdensity-plugin
@WidgetCategory({ "Rules" })
@Description("Reports violations and violation density on coding standards.")
public class ViolationDensityWidget extends AbstractRubyTemplate implements RubyRailsWidget {
public String getId() {
return "violationdensity";
}
public String getTitle() {
return "Violation Density";
}
@Override
protected String getTemplatePath() {
return "/org/sonar/plugins/violationdensity/widgets/violationdensity.html.erb";
}
}
代码示例来源:origin: org.codehaus.sonar-plugins/sonar-issues-density-plugin
@WidgetCategory({"Hotspots"})
@WidgetProperties({
@WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5")
})
public class HotspotMostViolatedComponentsWidget extends AbstractRubyTemplate implements RubyRailsWidget {
@Override
public String getId() {
return "hotspot_most_violated_resources";
}
@Override
public String getTitle() {
return "Most Violated Components";
}
@Override
protected String getTemplatePath() {
return "/issuesdensity/widgets/hotspot_most_violated_components.html.erb";
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Issues"})
@WidgetProperties({
@WidgetProperty(key = "showResolvedIssues", type = WidgetPropertyType.BOOLEAN, defaultValue = "true")
})
public class ActionPlansWidget extends CoreWidget {
public ActionPlansWidget() {
super("action_plans", "Issues action plans", "/org/sonar/plugins/core/widgets/issues/action_plans.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Issues"})
@WidgetProperties({
@WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5")
})
public class FalsePositiveIssuesWidget extends CoreWidget {
public FalsePositiveIssuesWidget() {
super("false_positive_reviews", "False positive open issues", "/org/sonar/plugins/core/widgets/issues/false_positive_issues.html.erb");
}
}
代码示例来源:origin: QualInsight/qualinsight-plugins-sonarqube-smell
@WidgetCategory("QualInsight")
@WidgetScope({
"PROJECT"
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Issues"})
@WidgetScope(GLOBAL)
@WidgetProperties({
@WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5")
})
public class MyUnresolvedIssuesWidget extends CoreWidget {
public MyUnresolvedIssuesWidget() {
super("my_reviews", "My unresolved issues", "/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Filters"})
@WidgetScope(GLOBAL)
@WidgetProperties({
@WidgetProperty(key = "filter", type = WidgetPropertyType.FILTER, optional = false),
@WidgetProperty(key = "chartTitle", type = WidgetPropertyType.STRING),
@WidgetProperty(key = "sizeMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.COMPLEXITY_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
@WidgetProperty(key = "colorMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.COVERAGE_KEY,
options = { WidgetConstants.FILTER_OUT_NEW_METRICS, "type:PERCENT" }),
@WidgetProperty(key = "maxItems", type = WidgetPropertyType.INTEGER, defaultValue = "100")
})
public class MeasureFilterAsCloudWidget extends CoreWidget {
public MeasureFilterAsCloudWidget() {
super("measure_filter_cloud", "Measure Filter as Cloud", "/org/sonar/plugins/core/widgets/measures/measure_filter_cloud.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar-plugins/sonar-thucydides-plugin
@UserRole(UserRole.USER)
@WidgetCategory("Tests")
@Description("Thucydides Web Testing Plugin")
public final class ThucydidesWidget extends AbstractRubyTemplate implements RubyRailsWidget {
public String getId() {
return "thucydides";
}
public String getTitle() {
return "Thucydides Web Testing Plugin";
}
@Override
protected String getTemplatePath() {
return "/org/sonar/plugins/thucydides/thucydides_widget.html.erb";
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Filters"})
@WidgetScope(GLOBAL)
@WidgetProperties({
@WidgetProperty(key = "chartTitle", type = WidgetPropertyType.STRING),
@WidgetProperty(key = "filter", type = WidgetPropertyType.FILTER, optional = false),
@WidgetProperty(key = "metric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.TECHNICAL_DEBT_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
@WidgetProperty(key = "maxItems", type = WidgetPropertyType.INTEGER, defaultValue = "40"),
@WidgetProperty(key = "reverseOrder", type = WidgetPropertyType.BOOLEAN, defaultValue = "false"),
@WidgetProperty(key = "relativeScale", type = WidgetPropertyType.BOOLEAN, defaultValue = "false")
})
public class MeasureFilterAsHistogramWidget extends CoreWidget {
public MeasureFilterAsHistogramWidget() {
super("measure_filter_histogram", "Measure Filter as Histogram", "/org/sonar/plugins/core/widgets/measures/measure_filter_histogram.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Filters"})
@WidgetScope(GLOBAL)
@WidgetProperties({
@WidgetProperty(key = MeasureFilterListWidget.FILTER_PROPERTY, type = WidgetPropertyType.FILTER, optional = false),
@WidgetProperty(key = MeasureFilterListWidget.PAGE_SIZE_PROPERTY, type = WidgetPropertyType.INTEGER, defaultValue = "30"),
@WidgetProperty(key = MeasureFilterListWidget.DISPLAY_FILTER_DESCRIPTION, type = WidgetPropertyType.BOOLEAN, defaultValue = "false")
})
public class MeasureFilterListWidget extends CoreWidget {
public static final String FILTER_PROPERTY = "filter";
public static final String PAGE_SIZE_PROPERTY = "pageSize";
public static final String DISPLAY_FILTER_DESCRIPTION = "displayFilterDescription";
public static final String ID = "measure_filter_list";
public MeasureFilterListWidget() {
super(ID, "Measure Filter as List", "/org/sonar/plugins/core/widgets/measure_filter_list.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Filters"})
@WidgetScope(GLOBAL)
@WidgetProperties({
@WidgetProperty(key = "chartTitle", type = WidgetPropertyType.STRING),
@WidgetProperty(key = "chartHeight", type = WidgetPropertyType.INTEGER, defaultValue = "300"),
@WidgetProperty(key = "filter", type = WidgetPropertyType.FILTER, optional = false),
@WidgetProperty(key = "mainMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.TECHNICAL_DEBT_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
@WidgetProperty(key = "extraMetric1", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.NCLOC_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
@WidgetProperty(key = "extraMetric2", type = WidgetPropertyType.METRIC, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
@WidgetProperty(key = "maxItems", type = WidgetPropertyType.INTEGER, defaultValue = "20")
})
public class MeasureFilterAsPieChartWidget extends CoreWidget {
public MeasureFilterAsPieChartWidget() {
super("measure_filter_pie_chart", "Measure Filter as Donut Chart", "/org/sonar/plugins/core/widgets/measures/measure_filter_pie_chart.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
@WidgetCategory({"Filters", "Issues"})
@WidgetScope(GLOBAL)
@WidgetProperties({
@WidgetProperty(key = IssueFilterWidget.FILTER_PROPERTY, type = WidgetPropertyType.ISSUE_FILTER, optional = false),
@WidgetProperty(key = IssueFilterWidget.PAGE_SIZE_PROPERTY, type = WidgetPropertyType.INTEGER, defaultValue = "30"),
@WidgetProperty(key = IssueFilterWidget.DISPLAY_FILTER_DESCRIPTION, type = WidgetPropertyType.BOOLEAN, defaultValue = "false")
})
public class IssueFilterWidget extends CoreWidget {
public static final String FILTER_PROPERTY = "filter";
public static final String PAGE_SIZE_PROPERTY = "numberOfLines";
public static final String DISPLAY_FILTER_DESCRIPTION = "displayFilterDescription";
public static final String ID = "issue_filter";
public IssueFilterWidget() {
super(ID, "Issue Filter", "/org/sonar/plugins/core/widgets/issues/issue_filter.html.erb");
}
}
代码示例来源:origin: org.codehaus.sonar-plugins/sonar-widget-lab-plugin
@UserRole(UserRole.USER)
@Description("Issues tags for security-related issues")
@WidgetCategory({"Technical Debt"})
public class SecurityIssuesTagWidget extends AbstractRubyTemplate implements RubyRailsWidget {
@Override
protected String getTemplatePath() {
return "/security_issues_tag_widget.html.erb";
}
@Override
public String getId() {
return "security_issues_tag";
}
@Override
public String getTitle() {
return "Project Security Issues Tags";
}
}
在为jhipster配置以下docker容器之后,除了声纳,其他一切都很好: docker run --name jhipster -w / home / jhipster / app -v〜/ jh
最新的 3.3 sonar-maven-plugin 和 5.6 LTS 作为网络服务器。 使用 mvn sonar:sonar 运行 Sonar 分析( Scanner for Maven ) 忽略
我有一个 cobertura.ser 文件,是在集成测试和系统测试时生成的。现在我想将我的覆盖范围导入 Sonar 服务器。 如何实现这一点,以便在执行 mvn sonar:sonar 时覆盖范围应考
场景:我们有一个 Jenkins maven 构建,它在父 pom 上执行 Sonar : Sonar 。我希望此构建的所有模块都显示为单个 Sonar 项目。目前,我们只有一个带有子模块的 Sona
我有一个看起来像这样的 build.xml 文件: 当我运行文件时,我得到: The prefix "sonar" for element "sonar:sonar" is
我尝试使用标准 maven sonar:sonar 目标在 Jenkins 上使用 java 项目运行 Sonar 分析,并使用后步骤 >> 执行 SonarQube 扫描仪。我使用的maven目标是
我想知道 sonar.projectKey、sonar.projectName 和 sonar.projectVersion 是否有任何标准。 我正在 git 环境中工作,需要对同一 git 存储库的
我有一个很大的困惑,当我们有 Sonar 服务器时 Sonar 扫描仪有什么用?当我使用 soarqube 服务器分析一个项目时,它进行了分析并且运行良好。我仍然很困惑为什么我们也需要扫描仪。 与ec
Sonar 与 jenkins 一起正常运行了 6 个月,没有出现任何故障。从上周开始,我看到一些 jenkins 作业出现以下错误,导致作业失败。 [ERROR] Failed to execute
鉴于相同的代码和具有相同规则的相同 SonarQube 服务器,我在使用 mvn sonar:sonar 与 sonar-scanner 扫描时发现的错误和漏洞数量截然不同。 code> CLI 和
我正在编写一个 Sonarqube Java 自定义规则,但在我尝试分析我的代码时一直出现此错误: "SonarQube is unable to analyze file 'File Path' o
我正在尝试将 SonarQube 与 Azure Devops 集成。我已在 SonarQube 管理员中完成配置(管理 > 配置 > 常规设置 > ALM 集成,选择 Azure DevOps 选项
我正在尝试将 SonarQube 与 Azure Devops 集成。我已在 SonarQube 管理员中完成配置(管理 > 配置 > 常规设置 > ALM 集成,选择 Azure DevOps 选项
我想与Jenkins一起针对Maven 2项目启动SonarQube分析。我首先在构建配置中使用了目标sonar:sonar。 但是我刚刚找到了Jenkins的SonarQube插件。为什么要使用它?
将Sonar 4.2(正常运行)与gradle(已测试版本1.11和1.12)一起使用,配置了sonar-runner: allprojects { if (rootProject == pr
我将 Sonar 与 Jenkins 一起使用以进行持续集成和代码分析。我learned该 Sonar 默认包括 Checkstyle、FindBugs、JaCoCo、PMD ,所以我们不需要配置项目
我们想在我们的项目中使用 SonarQube 和一些 CI 工具。 Sonar 服务器 url 在主 pom.xml 中配置。 项目中有几个团队成员。那么当一个团队成员在本地执行 sonar:sona
命令 mvn sonar:sonar 执行的 Maven 生命周期阶段是什么? 虽然我看到了在屏幕上运行的日志,但在非常高的水平上,我发现了测试、安装。 考虑下面的例子, 我有一个像下面这样的mave
我有几个 groovy/grails 项目,我正在使用 sonar-runner 来分析它们。他们工作得很好,直到今天我开始收到这个错误: ERROR: Error during Sonar runn
当我运行声纳时,我的代码覆盖率总是为 0。我使用的是三叶草。 pom.xml 文件中的条目下方 11 1.18.20 Hoxton.SR11
我是一名优秀的程序员,十分优秀!