Skip to content

Commit

Permalink
fix broken test by updated plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Feb 28, 2020
1 parent 7d64ae0 commit 823c45e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class FbContribRulesDefinition implements RulesDefinition {

public static final String REPOSITORY_KEY = "fb-contrib";
public static final String REPOSITORY_NAME = "FindBugs Contrib";
public static final int RULE_COUNT = 302;
public static final int RULE_COUNT = 307;
public static final int DEACTIVED_RULE_COUNT = 0;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class FindSecurityBugsRulesDefinition implements RulesDefinition {

public static final String REPOSITORY_KEY = "findsecbugs";
public static final String REPOSITORY_NAME = "Find Security Bugs";
public static final int RULE_COUNT = 116;
public static final int RULE_COUNT = 115;

@Override
public void define(Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public final class FindbugsRulesDefinition implements RulesDefinition {

public static final String REPOSITORY_KEY = "findbugs";
public static final String REPOSITORY_NAME = "FindBugs";
public static final int RULE_COUNT = 443;
public static final int RULE_COUNT = 442;
public static final int DEACTIVED_RULE_COUNT = 6;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void shouldCreateProfile() {

// The standard FindBugs include only 9. Fb-Contrib and FindSecurityBugs include other rules
assertThat(validation.getErrors()).isEmpty();
assertThat(validation.getWarnings()).isEmpty();
assertThat(validation.getWarnings()).hasSize(5);
assertThat(profile.getActiveRulesByRepository(FindbugsRulesDefinition.REPOSITORY_KEY)).hasSize(8);
assertThat(profile.getActiveRulesByRepository(FindSecurityBugsRulesDefinition.REPOSITORY_KEY)).hasSize(FindSecurityBugsRulesDefinition.RULE_COUNT);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public void shouldCreateProfile() {


assertThat(validation.getErrors()).isEmpty();
assertThat(validation.getWarnings()).isEmpty();
assertThat(validation.getWarnings()).hasSize(5);
// The standard FindBugs include only 9. Fb-Contrib and FindSecurityBugs include other rules
assertThat(profile.getActiveRulesByRepository(FindbugsRulesDefinition.REPOSITORY_KEY)).hasSize(8);
// 94 rules total - 8 fb = 86
assertThat(profile.getActiveRulesByRepository(FindSecurityBugsRulesDefinition.REPOSITORY_KEY)).hasSize(86);
assertThat(profile.getActiveRulesByRepository(FindSecurityBugsRulesDefinition.REPOSITORY_KEY)).hasSize(85);
}
}

0 comments on commit 823c45e

Please sign in to comment.