Skip to content

Commit

Permalink
make megalinter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
m-aXimilian committed Nov 8, 2024
1 parent 84b9371 commit c17f292
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CZICheck/IResultGatherer.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

#pragma once

#include <map>
#include <cstdint>
#include <map>
#include <string>
#include "checks.h"

class IResultGatherer
Expand Down Expand Up @@ -109,3 +110,4 @@ class IResultGatherer
}
}
};

3 changes: 2 additions & 1 deletion CZICheck/resultgatherer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,5 @@ void CResultGatherer::FinalizeChecks()
this->options_.GetLog()->WriteStdOut("\n\nResult: something unexpected happened\n");
break;
}
}
}

3 changes: 2 additions & 1 deletion CZICheck/resultgathererfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ static std::unique_ptr<IResultGatherer> CreateResultGatherer(const CCmdLineOptio
default:
throw std::invalid_argument("Unknown EncodingType");
}
}
}

4 changes: 3 additions & 1 deletion CZICheck/resultgathererjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <ostream>
#include <string>
#include <utility>

using namespace std;

Expand Down Expand Up @@ -133,4 +134,5 @@ void CResultGathererJson::FinalizeChecks()

this->json_document_.Accept(writer);
this->options_.GetLog()->WriteStdOut(str_buf.GetString());
}
}

4 changes: 3 additions & 1 deletion CZICheck/resultgathererjson.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#pragma once

#include <string>
#include "IResultGatherer.h"
#include "cmdlineoptions.h"
#include "checks.h"
Expand All @@ -29,4 +30,5 @@ class CResultGathererJson : public IResultGatherer
void ReportFinding(const Finding& finding) override;
void FinishCheck(CZIChecks check) override;
void FinalizeChecks() override;
};
};

2 changes: 2 additions & 0 deletions CZICheck/resultgathererxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <locale>
#endif
#include <string>
#include <utility>

using namespace std;

Expand Down Expand Up @@ -124,3 +125,4 @@ void CResultGathererXml::FinalizeChecks()
.text().set(ConvertToWideString(ss.str()).c_str());
this->xml_document_.save(std::cout, L" ");
}

3 changes: 2 additions & 1 deletion CZICheck/resultgathererxml.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ class CResultGathererXml : public IResultGatherer
{
return std::wstring(str.begin(), str.end());
}
};
};

0 comments on commit c17f292

Please sign in to comment.