Add clang tidy (#864)

Fixes #863
This commit is contained in:
Sergey Kuznetsov
2023-10-03 10:43:54 +01:00
committed by GitHub
parent 69f5025a29
commit 4b53bef1f5
198 changed files with 2168 additions and 1288 deletions

View File

@@ -94,7 +94,7 @@ TEST_F(RPCAPIVersionTest, ReturnsParsedVersionIfAllPreconditionsAreMet)
TEST_F(RPCAPIVersionTest, GetsValuesFromConfigCorrectly)
{
util::Config cfg{json::parse(fmt::format(
util::Config const cfg{json::parse(fmt::format(
R"({{
"min": {},
"max": {},
@@ -104,7 +104,7 @@ TEST_F(RPCAPIVersionTest, GetsValuesFromConfigCorrectly)
MAX_API_VERSION,
DEFAULT_API_VERSION))};
ProductionAPIVersionParser configuredParser{cfg};
ProductionAPIVersionParser const configuredParser{cfg};
{
auto ver = configuredParser.parse(json::parse(R"({"api_version": 2})").as_object());