/** * Attach a {@link ClassificationModel} with the given classificationText and description to the provided {@link FileModel}. * If an existing Model exists with the provided classificationText, that one will be used instead. */ public ClassificationModel attachClassification(GraphRewrite event, EvaluationContext context, FileModel fileModel, String classificationText, String description) { return attachClassification(event, context, fileModel, IssueCategoryRegistry.DEFAULT, classificationText, description); }
private boolean isReportableFile(SourceReportService sourceReportService, FileModel fileModel) { if (!(fileModel instanceof SourceFileModel)) return false; return sourceReportService.getSourceReportForFileModel(fileModel) != null; } }
/** * @return true if the subTag is contained directly or indirectly in the superTag. */ public static boolean isTagUnderTagOrSame(TagModel subTag, TagModel superTag) { return isTagUnderTag(subTag, superTag, true); }
@Override public void setContext(GraphRewrite event) { this.classificationService = new ClassificationService(event.getGraphContext()); this.inlineHintService = new InlineHintService(event.getGraphContext()); }
/** * Returns the right string representation of the effort level based on given number of points. */ public static String getEffortLevelDescription(Verbosity verbosity, int points) { EffortLevel level = EffortLevel.forPoints(points); switch (verbosity) { case ID: return level.name(); case VERBOSE: return level.getVerboseDescription(); case SHORT: default: return level.getShortDescription(); } }
@Override public void accumulate(Vertex effortReportVertex) { /* * If it is a detail only issue, then summaries should not include it in the count. */ if (frame(effortReportVertex).getIssueDisplayMode() == IssueDisplayMode.DETAIL_ONLY) return; super.accumulate(effortReportVertex); } };
@Override public void accumulate(Vertex effortReportVertex) { /* * If it is a detail only issue, then summaries should not include it in the count. */ if (frame(effortReportVertex).getIssueDisplayMode() == IssueDisplayMode.DETAIL_ONLY) return; super.accumulate(effortReportVertex); } };
private boolean isClassificationLinkedToFileModel(GraphRewrite event, ClassificationModel classificationModel, FileModel fileModel) { return ClassificationServiceCache.isClassificationLinkedToFileModel(event, classificationModel, fileModel); }
@Override public void setContext(GraphRewrite event) { this.classificationService = new ClassificationService(event.getGraphContext()); this.inlineHintService = new InlineHintService(event.getGraphContext()); }
/** * Attach a {@link ClassificationModel} with the given classificationText and description to the provided {@link FileModel}. * If an existing Model exists with the provided classificationText, that one will be used instead. */ public ClassificationModel attachClassification(GraphRewrite event, EvaluationContext context, FileModel fileModel, String classificationText, String description) { return attachClassification(event, context, fileModel, IssueCategoryRegistry.DEFAULT, classificationText, description); }
@Override public void accumulate(Vertex effortReportVertex) { /* * If it is a detail only issue, then summaries should not include it in the count. */ if (frame(effortReportVertex).getIssueDisplayMode() == IssueDisplayMode.DETAIL_ONLY) return; super.accumulate(effortReportVertex); } };
@Override public void accumulate(Vertex effortReportVertex) { /* * If it is a detail only issue, then summaries should not include it in the count. */ if (frame(effortReportVertex).getIssueDisplayMode() == IssueDisplayMode.DETAIL_ONLY) return; super.accumulate(effortReportVertex); } };
/** * @return true if the subTag is contained directly or indirectly in the superTag. */ public static boolean isTagUnderTagOrSame(TagModel subTag, TagModel superTag) { return isTagUnderTag(subTag, superTag, true); }
private boolean isClassificationLinkedToFileModel(GraphRewrite event, ClassificationModel classificationModel, FileModel fileModel) { return ClassificationServiceCache.isClassificationLinkedToFileModel(event, classificationModel, fileModel); }
@Override public void setContext(GraphRewrite event) { this.classificationService = new ClassificationService(event.getGraphContext()); this.inlineHintService = new InlineHintService(event.getGraphContext()); }
/** * Attach a {@link ClassificationModel} with the given classificationText and description to the provided {@link FileModel}. * If an existing Model exists with the provided classificationText, that one will be used instead. */ public ClassificationModel attachClassification(GraphRewrite event, Rule rule, FileModel fileModel, String classificationText, String description) { return attachClassification(event, rule, fileModel, IssueCategoryRegistry.DEFAULT, classificationText, description); }
@Override public void setContext(GraphRewrite event) { this.classificationService = new ClassificationService(event.getGraphContext()); this.inlineHintService = new InlineHintService(event.getGraphContext()); }
/** * Attach a {@link ClassificationModel} with the given classificationText and description to the provided {@link FileModel}. * If an existing Model exists with the provided classificationText, that one will be used instead. */ public ClassificationModel attachClassification(GraphRewrite event, Rule rule, FileModel fileModel, String classificationText, String description) { return attachClassification(event, rule, fileModel, IssueCategoryRegistry.DEFAULT, classificationText, description); }
@Override public void setContext(GraphRewrite event) { this.classificationService = new ClassificationService(event.getGraphContext()); this.inlineHintService = new InlineHintService(event.getGraphContext()); }
@Override public void setContext(GraphRewrite event) { this.classificationService = new ClassificationService(event.getGraphContext()); this.inlineHintService = new InlineHintService(event.getGraphContext()); }