org.sonar.api.web.WidgetCategory.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(11.7k)|赞(0)|评价(0)|浏览(78)

本文整理了Java中org.sonar.api.web.WidgetCategory.<init>()方法的一些代码示例,展示了WidgetCategory.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WidgetCategory.<init>()方法的具体详情如下:
包路径:org.sonar.api.web.WidgetCategory
类名称:WidgetCategory
方法名:<init>

WidgetCategory.<init>介绍

暂无

代码示例

代码示例来源: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-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: 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 = "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({"Issues"})
@WidgetScope(PROJECT)
@WidgetProperties({
 @WidgetProperty(key = "maxItems", type = WidgetPropertyType.INTEGER, defaultValue = "100")
})
public class IssueTagCloudWidget extends CoreWidget {

 public IssueTagCloudWidget() {
  super("issue_tag_cloud", "Issue Tag Cloud", "/org/sonar/plugins/core/widgets/issues/issue_tag_cloud.html.erb");
 }

}

代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin

@WidgetCategory("Hotspots")
@WidgetProperties(
{
 @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5"),
 @WidgetProperty(key = "defaultSeverity", type = WidgetPropertyType.SINGLE_SELECT_LIST, defaultValue = "", options = {"INFO", "MINOR", "MAJOR", "CRITICAL", "BLOCKER"})
})
public class HotspotMostViolatedRulesWidget extends CoreWidget {
 public HotspotMostViolatedRulesWidget() {
  super("hotspot_most_violated_rules", "Most violated rules", "/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb");
 }
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-widget-lab-plugin

@UserRole(UserRole.USER)
@Description("A differential dropdown for global dashboards.")
@WidgetCategory({"Global"})
@WidgetScope("GLOBAL")
public class DifferentialDropdownWidget  extends AbstractRubyTemplate implements RubyRailsWidget {

 public String getId() {
  return "differential-dropdown";
 }

 public String getTitle() {
  return "Differential Dropdown";
 }

 @Override
 protected String getTemplatePath() {
  return "/differential_dropdown_widget.html.erb";
 }

}

代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin

@WidgetCategory({ "Hotspots" })
@WidgetProperties({
    @WidgetProperty(key = "title", type = WidgetPropertyType.STRING),
    @WidgetProperty(key = "metric", type = WidgetPropertyType.METRIC, defaultValue = "ncloc", options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
    @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5")
})
public class HotspotMetricWidget extends CoreWidget {
 public HotspotMetricWidget() {
  super("hotspot_metric", "Metric hotspot", "/org/sonar/plugins/core/widgets/hotspots/hotspot_metric.html.erb");
 }
}

代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin

@WidgetCategory("History")
@WidgetProperties({
  @WidgetProperty(key = "chartTitle", type = WidgetPropertyType.STRING),
  @WidgetProperty(key = "metric1", type = WidgetPropertyType.METRIC, defaultValue = "ncloc", options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
  @WidgetProperty(key = "metric2", type = WidgetPropertyType.METRIC, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
  @WidgetProperty(key = "metric3", type = WidgetPropertyType.METRIC, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
  @WidgetProperty(key = "hideEvents", type = WidgetPropertyType.BOOLEAN),
  @WidgetProperty(key = "chartHeight", type = WidgetPropertyType.INTEGER, defaultValue = "180")
})
public class TimelineWidget extends CoreWidget {
 public TimelineWidget() {
  super("timeline", "Timeline", "/org/sonar/plugins/core/widgets/timeline.html.erb");
 }
}

相关文章

WidgetCategory类方法