Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`Rule-6-7-1`: Incorrectly stated static local variable

Open
#1,156 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp
Domain
tooling

Research direction

Start by locating the implementation of RULE-6-7-1 and run it against the C++ template example in this issue. Check why the finding classifies a non-static local variable as static. Done means the example no longer produces the incorrect finding while genuine violations of RULE-6-7-1 remain detected.

Written by the indexing model from the issue text.

Description

false positive/false negative
Affected rules
  • RULE-6-7-1
Description

We have findings in a QLX pull request that there are local static variables where that is simply not the case.

Example
   template <typename BufferSource, typename... SpecArgs>
    auto make_single_batcher(qlx::Table &result, qlx::Table &input, SpecArgs... spec_args) {
        return BatchWrites(std::make_tuple(BufferSource{input, spec_args...}), &result);
    }
Dominant language
CodeQL
Stars
227
Forks
82
Avg merge
6d 7h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/codeql-coding-standards

All issues in github/codeql-coding-standards

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.