Skip to content

Commit 8eb89e3

Browse files
committed
formatting
1 parent 7ccea9c commit 8eb89e3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/sarifreport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CPPCHECKLIB SarifReport {
4343
static picojson::array serializeLocations(const ErrorMessage& finding);
4444
picojson::array serializeResults() const;
4545
picojson::value serializeRuns(const std::string& productName, const std::string& version) const;
46-
46+
4747
// Utility methods
4848
static std::string sarifSeverity(const ErrorMessage& errmsg);
4949
static std::string sarifPrecision(const ErrorMessage& errmsg);

test/testsarif.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class TestSarifErrorLogger : public ErrorLogger {
4444
void reportErr(const ErrorMessage& msg) override {
4545
sarifReport.addFinding(msg);
4646
}
47-
void reportProgress(const std::string& /*filename*/, const char[] /*stage*/, const std::size_t /*value*/) override {}
47+
void reportProgress(const std::string& /*filename*/, const char /*stage*/[], const std::size_t /*value*/) override {}
4848
void reportMetric(const std::string& /*metric*/) override {} // Add missing pure virtual function
4949
};
5050

@@ -959,9 +959,9 @@ int main() {
959959
};
960960

961961
int foundExpectedRules = std::count_if(expectedRules.begin(), expectedRules.end(),
962-
[&ruleIds](const std::string& expectedRule) {
963-
return ruleIds.find(expectedRule) != ruleIds.end();
964-
});
962+
[&ruleIds](const std::string& expectedRule) {
963+
return ruleIds.find(expectedRule) != ruleIds.end();
964+
});
965965

966966
// We should find at least 3 of our expected rules
967967
// (Reduced from half since we're running with limited checks)

0 commit comments

Comments
 (0)