We reviewed 249 findings from our own linter. 13% were real.
We ran Lintsure on 139 public projects, most of them written partly with AI, and checked a random sample of what it flagged against the actual code. Most of it was noise. Here is where the noise came from, and what that says about any code scanner.
Lintsure research · 7 min read
A scanner that flags everything gets switched off. Developers learn which warnings to ignore, then they ignore all of them, and the one real problem goes out with the rest. So the number that tells you whether a code checker is worth running isn't how much it finds. It's how often it's right.
We build Lintsure, an open-source linter whose rules come from laws and security standards: GDPR, the EU AI Act, the Cyber Resilience Act, the OWASP Top 10 and others. In November 2026 we measured how often it was right. The answer was 13%.
What we did
We picked 139 public, openly licensed projects on GitHub, from a few thousand lines to several million. For each one we measured how much of the code was written with AI tools, from the traces those tools leave in commit history. 82 projects were written partly or mostly with AI. 20 had no changes after May 2022, before the AI coding tools most people use today.
We scanned all of them with Lintsure 0.3.5: 28.7 million lines of code, about two seconds per project, nothing installed or run from any of them. That gave 4,508 distinct findings once repeats of the same line were counted once.
Then we drew a random sample of 249 findings, up to six from each of the 53 checks that fired, spread across as many projects as possible. Each finding was reviewed against the code around it and labelled as a real problem, a pattern that depends on context the code doesn't show, or a false alarm. The reviewers were AI agents that opened each file and followed the code, and we re-checked a sample of their labels ourselves.
Figure 1
What the 249 reviewed findings turned out to be
- 13%33 real problems
- 26%64 depend on context the code doesn't show
- 61%152 false alarms
33 were real problems. Only 3 of those were clearly exploitable as written: a deploy workflow that runs code from any pull request with a deployment token in reach, an app that switches off TLS certificate checks for every outgoing request when it starts, and a crawler that sends pages over plain HTTP and trusts whatever comes back. The rest were real but minor, or needed more context to judge.
The ratings were off too. For 192 of the 249 findings, the reviewer thought the label Lintsure gave, "clear problem" or "worth a look" and how severe, didn't fit what the code showed.
Most of the noise came from code that never ships
Taken together, the largest cause of false alarms wasn't a bad rule. It was where the rules were looking. Test files with fake keys, example apps, documentation snippets and copies of other people's libraries made up about a third of all false alarms. None of that code runs in production, and a person reading the code would have skipped it in a second.
Figure 2
Why the 152 false alarms were false
- Matched a word or a name, not what the code does30
- Test or fixture code22
- Examples, docs and templates22
- A safe version of the pattern it didn't recognise9
- Copied or generated code from another project7
- Deliberate behaviour, such as a CLI printing a key it just made6
- Reasons specific to one check56
A word on a line is weak evidence
The second cause was matching words instead of behaviour. A check for "AI makes a decision about a person" fired on code about a musical score, because a function was called score. A check for unsafe deserialisation fired on a note-taking app's own text parser because it happened to be called unserialize. A check for injected database queries fired on a GraphQL schema, reading it as a MongoDB query. Each one looks right to a regular expression and wrong to anyone who reads the line.
A separate review of the rules themselves, using small test files, found the opposite problem as well. When risky code is spread over several lines, such as a SQL query built in a multi-line template or a log call with the email inside an object on the next line, a check that reads one line at a time never sees it whole. We didn't measure how often that happens in the 139 projects; this study measured how often flags were right, not what was missed.
Size predicts findings better than AI authorship
We expected to compare AI-written and human-written code. The data didn't let us. What predicted whether a project had a serious-looking flag was mostly its size.
Figure 3
Projects with at least one high-severity flag, by size
- Under 10,000 lines (37 projects)5%
- 10,000 to 100,000 lines (52 projects)48%
- Over 100,000 lines (50 projects)90%
Once we compared projects of similar size, the AI-written and older projects barely differed, and the groups were too small to settle anything. AI tools also leave no trace in many commits, so some "no AI" projects surely contain AI code. If you see a study claiming that AI code has more problems, check whether it compared projects of the same size first.
Checks on the supply chain were right most often
Some checks did well. The ones that look at how code is built and shipped, rather than at what it does, were the most reliable in our sample.
Figure 4
Share of reviewed findings that were real problems, for selected checks
- Script downloaded and piped straight into a shell5 of 6
- Third-party CI action not pinned to a commit3 of 6
- Dependency with no version limit3 of 6
- Personal data written to logs2 of 6
- HTML inserted without escaping0 of 6
- SQL built from strings0 of 6
It makes sense. curl ... | sudo bash means the same thing in every project. innerHTML = something is safe or dangerous depending on where something came from, and that is usually a few lines or a few files away.
What we changed
We used the review to fix Lintsure, then ran the new version on the same 139 projects and checked it against the same labels. Version 0.3.6 skips tests, examples, docs and copied libraries (except for leaked secrets), looks at what code does in the checks that fired most on words, rates severity more honestly, and fixes several ways files were being misread, including Python code being skipped after a long prompt string.
Figure 5
The same 139 projects, before and after the fixes
It's better, and it's still far from good. Most of what's left needs checks that read several lines together, which is the next piece of work. We also added a check that came straight out of the review: backend functions in AI-built apps on Supabase with the login check switched off and no check of their own, which in one project let anyone on the internet spend its OpenAI credits.
What to take from this, whatever scanner you use
- Ask for precision, not totals. "1,000 issues found" tells you nothing until you know how many were real.
- Check what the scanner reads. Tests, examples and vendored code can bury the real findings.
- Trust supply-chain findings first. Unverified downloads, unpinned CI actions and floating dependency versions were the most reliable flags we saw.
- Compare like with like. Bigger codebases have more findings, so any comparison of teams, tools or AI against humans needs to account for size.
Limits
Six findings per check is enough to see a pattern and not enough to rank checks precisely. The reviewers were AI agents reading the code, with a sample re-checked by us, not a team of security engineers. Attribution of AI-written code is a lower bound. We haven't compared Lintsure with other tools on the same projects yet, so nothing here says it finds more or less than they do. We keep the projects private; the method and the full numbers are on How we test.