Skip to content

Commit

Permalink
move nolint annotation to earliest param appearence
Browse files Browse the repository at this point in the history
  • Loading branch information
n0tlu5 committed Dec 30, 2024
1 parent 15fb57c commit a34ba38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/lua-record.cc
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ class IsUpOracle
}
};

//NOLINT(readability-identifier-length)
int IsUpOracle::isUp(const CheckDesc& cd)
{
if (!d_checkerThreadStarted.test_and_set()) {
Expand All @@ -274,7 +275,6 @@ int IsUpOracle::isUp(const CheckDesc& cd)
time_t now = time(nullptr);
{
auto statuses = d_statuses.read_lock();
//NOLINT(readability-identifier-length)
auto iter = statuses->find(cd);

Check warning on line 278 in pdns/lua-record.cc

View workflow job for this annotation

GitHub Actions / Analyze (cpp, auth)

parameter name 'cd' is too short, expected at least 3 characters (readability-identifier-length - Level=Warning)
if (iter != statuses->end()) {
iter->second->lastAccess = now;
Expand Down

0 comments on commit a34ba38

Please sign in to comment.