From 0fc0d9118b5e525fa582de0286c8e83bb0da4e16 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 4 Oct 2024 14:42:28 +0200 Subject: Disable misc-no-recursion check ...since we use recursion for trees a lot, but skip this check manually. --- src/utils/cpp/json.hpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/utils/cpp/json.hpp') diff --git a/src/utils/cpp/json.hpp b/src/utils/cpp/json.hpp index 1fe4df3f..589a5884 100644 --- a/src/utils/cpp/json.hpp +++ b/src/utils/cpp/json.hpp @@ -50,7 +50,6 @@ auto ExtractValueAs( namespace detail { -// NOLINTNEXTLINE(misc-no-recursion) [[nodiscard]] static inline auto IndentListsOnlyUntilDepth( nlohmann::json const& json, std::string const& indent, @@ -89,7 +88,6 @@ namespace detail { return json.dump(); } -// NOLINTNEXTLINE(misc-no-recursion) [[nodiscard]] static inline auto IndentOnlyUntilDepth( nlohmann::json const& json, std::string const& indent, @@ -164,7 +162,6 @@ namespace detail { } // \brief Dump json, replacing subexpressions at the given depths by "*". -// NOLINTNEXTLINE(misc-no-recursion) [[nodiscard]] static inline auto TruncateJson(nlohmann::json const& json, std::size_t depth) -> std::string { -- cgit v1.2.3