Interface CommentsProvider


public interface CommentsProvider
  • Method Details

    • createComment

      void createComment(String string)
      Creates a comment.
      Parameters:
      string - The comment.
    • createSingleFileComment

      void createSingleFileComment(ChangedFile file, Integer line, String comment)
      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

      List<Comment> getComments()
    • getFiles

      List<ChangedFile> getFiles()
    • removeComments

      void removeComments(List<Comment> comments)
    • shouldComment

      boolean shouldComment(ChangedFile changedFile, Integer line)
    • shouldCreateCommentWithAllSingleFileComments

      boolean shouldCreateCommentWithAllSingleFileComments()
    • shouldCreateSingleFileComment

      boolean shouldCreateSingleFileComment()
    • shouldKeepOldComments

      boolean shouldKeepOldComments()
    • shouldCommentOnlyChangedFiles

      boolean shouldCommentOnlyChangedFiles()
    • findCommentTemplate

      Optional<String> findCommentTemplate()
    • getMaxNumberOfViolations

      Integer getMaxNumberOfViolations()
    • getMaxCommentSize

      Integer getMaxCommentSize()