From c17f29282c6b2be89d7fe222a923877512319d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20K=C3=BCffner?= <kueffnermax@gmail.com> Date: Fri, 8 Nov 2024 20:22:13 +0100 Subject: [PATCH] make megalinter happy --- CZICheck/IResultGatherer.h | 4 +++- CZICheck/resultgatherer.cpp | 3 ++- CZICheck/resultgathererfactory.h | 3 ++- CZICheck/resultgathererjson.cpp | 4 +++- CZICheck/resultgathererjson.h | 4 +++- CZICheck/resultgathererxml.cpp | 2 ++ CZICheck/resultgathererxml.h | 3 ++- 7 files changed, 17 insertions(+), 6 deletions(-) diff --git a/CZICheck/IResultGatherer.h b/CZICheck/IResultGatherer.h index e958293..9540be9 100644 --- a/CZICheck/IResultGatherer.h +++ b/CZICheck/IResultGatherer.h @@ -4,8 +4,9 @@ #pragma once -#include <map> #include <cstdint> +#include <map> +#include <string> #include "checks.h" class IResultGatherer @@ -109,3 +110,4 @@ class IResultGatherer } } }; + diff --git a/CZICheck/resultgatherer.cpp b/CZICheck/resultgatherer.cpp index 27e06af..269b8aa 100644 --- a/CZICheck/resultgatherer.cpp +++ b/CZICheck/resultgatherer.cpp @@ -117,4 +117,5 @@ void CResultGatherer::FinalizeChecks() this->options_.GetLog()->WriteStdOut("\n\nResult: something unexpected happened\n"); break; } -} \ No newline at end of file +} + diff --git a/CZICheck/resultgathererfactory.h b/CZICheck/resultgathererfactory.h index 4538c23..d084feb 100644 --- a/CZICheck/resultgathererfactory.h +++ b/CZICheck/resultgathererfactory.h @@ -25,4 +25,5 @@ static std::unique_ptr<IResultGatherer> CreateResultGatherer(const CCmdLineOptio default: throw std::invalid_argument("Unknown EncodingType"); } -} \ No newline at end of file +} + diff --git a/CZICheck/resultgathererjson.cpp b/CZICheck/resultgathererjson.cpp index 294998f..c443230 100644 --- a/CZICheck/resultgathererjson.cpp +++ b/CZICheck/resultgathererjson.cpp @@ -7,6 +7,7 @@ #include <ostream> #include <string> +#include <utility> using namespace std; @@ -133,4 +134,5 @@ void CResultGathererJson::FinalizeChecks() this->json_document_.Accept(writer); this->options_.GetLog()->WriteStdOut(str_buf.GetString()); -} \ No newline at end of file +} + diff --git a/CZICheck/resultgathererjson.h b/CZICheck/resultgathererjson.h index 523b51f..155dd1e 100644 --- a/CZICheck/resultgathererjson.h +++ b/CZICheck/resultgathererjson.h @@ -4,6 +4,7 @@ #pragma once +#include <string> #include "IResultGatherer.h" #include "cmdlineoptions.h" #include "checks.h" @@ -29,4 +30,5 @@ class CResultGathererJson : public IResultGatherer void ReportFinding(const Finding& finding) override; void FinishCheck(CZIChecks check) override; void FinalizeChecks() override; -}; \ No newline at end of file +}; + diff --git a/CZICheck/resultgathererxml.cpp b/CZICheck/resultgathererxml.cpp index dd0d5c9..0e7a844 100644 --- a/CZICheck/resultgathererxml.cpp +++ b/CZICheck/resultgathererxml.cpp @@ -13,6 +13,7 @@ #include <locale> #endif #include <string> +#include <utility> using namespace std; @@ -124,3 +125,4 @@ void CResultGathererXml::FinalizeChecks() .text().set(ConvertToWideString(ss.str()).c_str()); this->xml_document_.save(std::cout, L" "); } + diff --git a/CZICheck/resultgathererxml.h b/CZICheck/resultgathererxml.h index f2a46db..ef3eb1a 100644 --- a/CZICheck/resultgathererxml.h +++ b/CZICheck/resultgathererxml.h @@ -33,4 +33,5 @@ class CResultGathererXml : public IResultGatherer { return std::wstring(str.begin(), str.end()); } -}; \ No newline at end of file +}; +