Class BitbucketCloudCommentsProvider

java.lang.Object
se.bjurr.violations.comments.bitbucketcloud.lib.BitbucketCloudCommentsProvider
All Implemented Interfaces:
se.bjurr.violations.comments.lib.CommentsProvider

public class BitbucketCloudCommentsProvider extends Object implements se.bjurr.violations.comments.lib.CommentsProvider
  • Constructor Details

  • Method Details

    • createComment

      public void createComment(String commentString)
      Specified by:
      createComment in interface se.bjurr.violations.comments.lib.CommentsProvider
    • createSingleFileComment

      public void createSingleFileComment(se.bjurr.violations.comments.lib.model.ChangedFile file, Integer lineInFile, String commentString)
      Specified by:
      createSingleFileComment in interface se.bjurr.violations.comments.lib.CommentsProvider
    • getComments

      public List<se.bjurr.violations.comments.lib.model.Comment> getComments()
      Specified by:
      getComments in interface se.bjurr.violations.comments.lib.CommentsProvider
    • getFiles

      public List<se.bjurr.violations.comments.lib.model.ChangedFile> getFiles()
      Specified by:
      getFiles in interface se.bjurr.violations.comments.lib.CommentsProvider
    • removeComments

      public void removeComments(List<se.bjurr.violations.comments.lib.model.Comment> comments)
      Specified by:
      removeComments in interface se.bjurr.violations.comments.lib.CommentsProvider
    • shouldComment

      public boolean shouldComment(se.bjurr.violations.comments.lib.model.ChangedFile changedFile, Integer line)
      Specified by:
      shouldComment in interface se.bjurr.violations.comments.lib.CommentsProvider
    • shouldCreateCommentWithAllSingleFileComments

      public boolean shouldCreateCommentWithAllSingleFileComments()
      Specified by:
      shouldCreateCommentWithAllSingleFileComments in interface se.bjurr.violations.comments.lib.CommentsProvider
    • shouldCreateSingleFileComment

      public boolean shouldCreateSingleFileComment()
      Specified by:
      shouldCreateSingleFileComment in interface se.bjurr.violations.comments.lib.CommentsProvider
    • shouldKeepOldComments

      public boolean shouldKeepOldComments()
      Specified by:
      shouldKeepOldComments in interface se.bjurr.violations.comments.lib.CommentsProvider
    • findCommentTemplate

      public Optional<String> findCommentTemplate()
      Specified by:
      findCommentTemplate in interface se.bjurr.violations.comments.lib.CommentsProvider
    • getMaxNumberOfViolations

      public Integer getMaxNumberOfViolations()
      Specified by:
      getMaxNumberOfViolations in interface se.bjurr.violations.comments.lib.CommentsProvider
    • getMaxCommentSize

      public Integer getMaxCommentSize()
      Specified by:
      getMaxCommentSize in interface se.bjurr.violations.comments.lib.CommentsProvider
    • shouldCommentOnlyChangedFiles

      public boolean shouldCommentOnlyChangedFiles()
      Specified by:
      shouldCommentOnlyChangedFiles in interface se.bjurr.violations.comments.lib.CommentsProvider
    • getOrderedComments

      public static List<se.bjurr.bitbucketcloud.gen.model.Comment> getOrderedComments(Set<se.bjurr.bitbucketcloud.gen.model.Comment> values)
    • getOrderedCommits

      public static List<se.bjurr.bitbucketcloud.gen.model.Commit> getOrderedCommits(Set<se.bjurr.bitbucketcloud.gen.model.Commit> values)