Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Increase count for rules for CLANGTIDY, CPPCHECK and GCC to account
for new "unknown" rule
Increase count of possible properties to account for
sonar.cxx.unknown.rule.id
  • Loading branch information
jenspopp committed Jan 26, 2024
1 parent 35643b8 commit 0c18e33
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void createRulesTest() {
def.define(context);

RulesDefinition.Repository repo = context.repository(CxxClangTidyRuleRepository.KEY);
assertThat(repo.rules()).hasSize(1355);
assertThat(repo.rules()).hasSize(1356);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void createGccRulesTest() {
def.define(context);

RulesDefinition.Repository repo = context.repository(CxxCompilerGccRuleRepository.KEY);
assertThat(repo.rules()).hasSize(230);
assertThat(repo.rules()).hasSize(231);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void createRulesTest() {
def.define(context);

RulesDefinition.Repository repo = context.repository(CxxCppCheckRuleRepository.KEY);
assertThat(repo.rules()).hasSize(674);
assertThat(repo.rules()).hasSize(675);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void testGetExtensions() throws Exception {
var context = new Plugin.Context(runtime);
var plugin = new CxxPlugin();
plugin.define(context);
assertThat(context.getExtensions()).hasSize(83);
assertThat(context.getExtensions()).hasSize(84);
}

}

0 comments on commit 0c18e33

Please sign in to comment.