Skip to content

Commit c4c9e8b

Browse files
committed
[FIX] Disable some checks
Deliberate use
1 parent 77c657a commit c4c9e8b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

include/sharg/detail/format_tdl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ inline auto to_tdl(std::string const & v)
8989
}
9090

9191
//!\copydetails sharg::detail::to_tdl
92-
auto to_tdl(auto SHARG_DOXYGEN_ONLY(v))
92+
auto to_tdl(auto SHARG_DOXYGEN_ONLY(v)) // NOLINT(performance-unnecessary-value-param)
9393
{
9494
return tdl::BoolValue(false);
9595
}

include/sharg/validators.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ class file_validator_base
414414
if (std::filesystem::is_directory(path))
415415
{
416416
std::error_code ec{};
417-
std::filesystem::directory_iterator{path, ec}; // if directory iterator cannot be created, ec will be set.
417+
// if directory iterator cannot be created, ec will be set.
418+
std::filesystem::directory_iterator{path, ec}; // NOLINT(bugprone-unused-raii)
418419
if (static_cast<bool>(ec))
419420
throw validation_error{"Cannot read the directory \"" + path.string() + "\"!"};
420421
}

test/include/sharg/test/test_fixture.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class early_exit_guardian
238238
};
239239
};
240240

241-
early_exit_guardian early_exit_guard{};
241+
early_exit_guardian early_exit_guard{}; // NOLINT(misc-definitions-in-headers)
242242

243243
inline void test_fixture::toggle_guardian()
244244
{

0 commit comments

Comments
 (0)