Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
maxNumberOfViolations
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Mar 31, 2019
1 parent 46c7bd8 commit 1d8661d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply from: project.buildscript.classLoader.getResource('release.gradle').toURI(


dependencies {
compile 'se.bjurr.violations:violation-comments-lib:1.93'
compile 'se.bjurr.violations:violation-comments-lib:1.94'
compile 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:2.3.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ public Optional<String> findCommentTemplate() {
}

@Override
public Integer getMaxNumberOfComments() {
return violationCommentsToGitHubApi.getMaxNumberOfComments();
public Integer getMaxNumberOfViolations() {
return violationCommentsToGitHubApi.getMaxNumberOfViolations();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void log(final Level level, final String string, final Throwable t) {
}
};
private Integer maxCommentSize;
private Integer maxNumberOfComments;
private Integer maxNumberOfViolations;

private ViolationCommentsToGitHubApi() {}

Expand Down Expand Up @@ -256,13 +256,14 @@ public ViolationCommentsToGitHubApi withMaxCommentSize(final Integer maxCommentS
return this;
}

public ViolationCommentsToGitHubApi withMaxNumberOfComments(final Integer maxNumberOfComments) {
this.maxNumberOfComments = maxNumberOfComments;
public ViolationCommentsToGitHubApi withMaxNumberOfViolations(
final Integer maxNumberOfViolations) {
this.maxNumberOfViolations = maxNumberOfViolations;
return this;
}

public Integer getMaxNumberOfComments() {
return maxNumberOfComments;
public Integer getMaxNumberOfViolations() {
return maxNumberOfViolations;
}

public Integer getMaxCommentSize() {
Expand Down

0 comments on commit 1d8661d

Please sign in to comment.