Skip to content

Commit 6437343

Browse files
committed
Disable some clang-tidy warnings in test code
The test use somewhat hacky dependency injection, so the current code is okay here.
1 parent c6dcd3f commit 6437343

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/t/util/test_config.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ namespace osmium {
77

88
namespace detail {
99

10-
static const char* env = nullptr; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
11-
static std::string name; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
12-
10+
static const char* env = nullptr; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables,misc-use-anonymous-namespace)
11+
static std::string name; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables,misc-use-anonymous-namespace)
1312

13+
// NOLINTNEXTLINE(misc-use-internal-linkage)
1414
inline const char* getenv_wrapper(const char* var) noexcept {
1515
name = var;
1616
return env;

0 commit comments

Comments
 (0)