Package se.bjurr.violations.comments.lib
Interface CommentsProvider
public interface CommentsProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateComment(String string) Creates a comment.voidcreateSingleFileComment(ChangedFile file, Integer line, String comment) Create a discussion on the diff on the line the violation occurred.getFiles()voidremoveComments(List<Comment> comments) booleanshouldComment(ChangedFile changedFile, Integer line) booleanbooleanbooleanboolean
-
Method Details
-
createComment
Creates a comment.- Parameters:
string- The comment.
-
createSingleFileComment
Create a discussion on the diff on the line the violation occurred.- Parameters:
file- The file in which the violation occurred.line- The line number after the patch.comment- The text of the comment.
-
getComments
-
getFiles
List<ChangedFile> getFiles() -
removeComments
-
shouldComment
-
shouldCreateCommentWithAllSingleFileComments
boolean shouldCreateCommentWithAllSingleFileComments() -
shouldCreateSingleFileComment
boolean shouldCreateSingleFileComment() -
shouldKeepOldComments
boolean shouldKeepOldComments() -
shouldCommentOnlyChangedFiles
boolean shouldCommentOnlyChangedFiles() -
findCommentTemplate
-
getMaxNumberOfViolations
Integer getMaxNumberOfViolations() -
getMaxCommentSize
Integer getMaxCommentSize()
-