File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments