Public report of micronaut-projects/micronaut-openapi, published 17 November 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 17 November 2026, 01:16 UTC · Survey ID cd_055bec22fdd247a4ad249b892c772dc9
micronaut-projects/micronaut-openapi
Measured 17 November 2026, 01:15 UTC, at code version 17efc20
Knowledge freshness is not measured: Freshness signal contradicted by repo activity.
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A medium codebase: 56,173 lines of product code in 18 projects, tests not counted · Estimated rebuild effort: about 0.5 person-years · Weakest lens: Maturity, 52.4
Findings by how serious they are
5 critical553 serious64 minor
15 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Canine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 01:15 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that
implements it, and today the Canine Code Analyzer is the only one that does.
The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
57of 57 dimensions measured by tools.
611of 622 findings point to an exact file and line, so you can open each one in the code. The other 11 concern the repository as a whole, such as missing documentation.
57dimensions across 7 lenses, read from 56,173 lines of product code in 18 projects.
micronaut-projects/micronaut-openapi falls short of our standard for production, in part because we found no recorded design decisions and no architecture document or diagram. It scores 58.8 out of 100 and is rated Adequate, and all five of its critical findings are security problems.
Maturity, at 52.4, is the weakest lens and counts most in the score. The best first step is improving the documentation, worth about 5.9 points. Recording design decisions comes next, also worth about 5.9. Raising Maturity to 70 would lift the score to about 62.5.
Two secrets can leak from the build pipeline. One automatic update takes new releases before a bad one can be spotted, and one password or key is open to anyone who can read the repository. Limiting each secret to its own step, setting a waiting period for automatic updates and replacing the exposed password or key would close these risks. Fixing the weaknesses the scanner points to would fix the security weakness in the code.
The product code is 56,173 lines, about €75,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
If Maturity rose from 52.4 to 70, the lowest score rated Strong, the score would rise from 58.8 to about 62.5.
Code composition: what the lines of code are
Product code 79%Tests 21%
Rebuild cost: about €75,000 · Estimate
Cost to rebuild
€25,000 to €130,000, for 418 to 1,325 hours of work, about 0.5 person-years for one engineer
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.8 at a score of 59. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Medium: 56,173 lines of product code
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md.
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts.
Raises the score by about 5.9 points · Low effort · ADR Quality
3
Record your significant design decisions.
Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €75,000 to build again, about 0.5 person-years of work. Its weakest lens is Maturity, at 52.4 (Adequate). Maturity is about how well the project explains and looks after itself, which decides whether a new developer, or a new supplier, can take over. Because the weakest lens counts most in the score, work on Maturity also moves the score most.
Based on: the rebuild estimate · the Maturity grade · how much each lens counts
What to do: Start with the Maturity actions in Top priorities.
If you do one thing first · First action
Resolve the 1 Documentation finding(s) in Documentation Quality. Of all the actions in this report, it raises the score most for the work it takes: about 5.9 points for low effort, because it clears the 1 Documentation Quality findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 5.4 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 7% to 15% on every change. The history of the code shows how much it changes: about 8,384 lines over the last 90 days, which is about 34,002 lines a year. At that pace, the extra work comes to an estimated 5.6 to 33.4 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
99 modules, with 18 dependencies between them. Every module uses only modules listed above it, so there are no loops.
The table shows the 40 modules with the most connections; 59 more are left out to keep it readable.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
1 pair of types, where a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.accessors.PersonController uses a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.accessors.Person.
docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.accessors.PersonController uses docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.accessors.Person, so a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.accessors.Person can break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.accessors.PersonController, while a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.accessors.PersonController can't break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.accessors.Person.
Position
Below the diagonal: docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.accessors.PersonController uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.MyCatsOperations uses a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.Api.
docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.MyCatsOperations uses docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.Api, so a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.Api can break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.MyCatsOperations, while a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.MyCatsOperations can't break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.Api.
Position
Below the diagonal: docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.MyCatsOperations uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.MyDogsOperations uses a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.Api.
docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.MyDogsOperations uses docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.Api, so a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.Api can break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.MyDogsOperations, while a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.MyDogsOperations can't break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.Api.
Position
Below the diagonal: docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.decorator.MyDogsOperations uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.dynamicrefs.LocalizedCategory uses a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.dynamicrefs.BaseCategory.
docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.dynamicrefs.LocalizedCategory uses docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.dynamicrefs.BaseCategory, so a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.dynamicrefs.BaseCategory can break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.dynamicrefs.LocalizedCategory, while a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.dynamicrefs.LocalizedCategory can't break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.dynamicrefs.BaseCategory.
Position
Below the diagonal: docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.dynamicrefs.LocalizedCategory uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.resolution.Owner uses a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.resolution.Pet.
docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.resolution.Owner uses docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.resolution.Pet, so a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.resolution.Pet can break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.resolution.Owner, while a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.resolution.Owner can't break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.resolution.Pet.
Position
Below the diagonal: docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.resolution.Owner uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.schemas.PetController uses a type in docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.schemas.Pet.
docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.schemas.PetController uses docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.schemas.Pet, so a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.schemas.Pet can break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.schemas.PetController, while a change to docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.schemas.PetController can't break docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.schemas.Pet.
Position
Below the diagonal: docs-examples.example-python.src.main.python.micronaut.configuration.openapi.docs.schemas.PetController uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in docs-examples.example-versions-python.src.main.python.micronaut.configuration.openapi.docs.versions.VersionedController uses a type in docs-examples.example-versions-python.src.main.python.micronaut.configuration.openapi.docs.versions.UserDto.
docs-examples.example-versions-python.src.main.python.micronaut.configuration.openapi.docs.versions.VersionedController uses docs-examples.example-versions-python.src.main.python.micronaut.configuration.openapi.docs.versions.UserDto, so a change to docs-examples.example-versions-python.src.main.python.micronaut.configuration.openapi.docs.versions.UserDto can break docs-examples.example-versions-python.src.main.python.micronaut.configuration.openapi.docs.versions.VersionedController, while a change to docs-examples.example-versions-python.src.main.python.micronaut.configuration.openapi.docs.versions.VersionedController can't break docs-examples.example-versions-python.src.main.python.micronaut.configuration.openapi.docs.versions.UserDto.
Position
Below the diagonal: docs-examples.example-versions-python.src.main.python.micronaut.configuration.openapi.docs.versions.VersionedController uses a module listed above it, which is the healthy direction.
io.micronaut.configuration.openapi.docs.generics uses io.micronaut.configuration.openapi.docs.schemas, so a change to io.micronaut.configuration.openapi.docs.schemas can break io.micronaut.configuration.openapi.docs.generics, while a change to io.micronaut.configuration.openapi.docs.generics can't break io.micronaut.configuration.openapi.docs.schemas.
Position
Below the diagonal: io.micronaut.configuration.openapi.docs.generics uses a module listed above it, which is the healthy direction.
2 pairs of types, where a type in io.micronaut.configuration.openapi.docs.schemas.PetType uses a type in io.micronaut.configuration.openapi.docs.schemas.
io.micronaut.configuration.openapi.docs.schemas.PetType uses io.micronaut.configuration.openapi.docs.schemas, so a change to io.micronaut.configuration.openapi.docs.schemas can break io.micronaut.configuration.openapi.docs.schemas.PetType, while a change to io.micronaut.configuration.openapi.docs.schemas.PetType can't break io.micronaut.configuration.openapi.docs.schemas.
Position
Below the diagonal: io.micronaut.configuration.openapi.docs.schemas.PetType uses a module listed above it, which is the healthy direction.
io.micronaut.openapi.annotation.mappers uses io.micronaut.openapi.annotation, so a change to io.micronaut.openapi.annotation can break io.micronaut.openapi.annotation.mappers, while a change to io.micronaut.openapi.annotation.mappers can't break io.micronaut.openapi.annotation.
Position
Below the diagonal: io.micronaut.openapi.annotation.mappers uses a module listed above it, which is the healthy direction.
io.micronaut.openapi.generator uses org.openapitools.codegen, so a change to org.openapitools.codegen can break io.micronaut.openapi.generator, while a change to io.micronaut.openapi.generator can't break org.openapitools.codegen.
Position
Below the diagonal: io.micronaut.openapi.generator uses a module listed above it, which is the healthy direction.
io.micronaut.openapi.visitor uses io.micronaut.openapi.annotation, so a change to io.micronaut.openapi.annotation can break io.micronaut.openapi.visitor, while a change to io.micronaut.openapi.visitor can't break io.micronaut.openapi.annotation.
Position
Below the diagonal: io.micronaut.openapi.visitor uses a module listed above it, which is the healthy direction.
io.micronaut.openapi.visitor uses io.micronaut.openapi.javadoc, so a change to io.micronaut.openapi.javadoc can break io.micronaut.openapi.visitor, while a change to io.micronaut.openapi.visitor can't break io.micronaut.openapi.javadoc.
Position
Below the diagonal: io.micronaut.openapi.visitor uses a module listed above it, which is the healthy direction.
io.micronaut.openapi.visitor uses io.micronaut.openapi.visitor.group, so a change to io.micronaut.openapi.visitor.group can break io.micronaut.openapi.visitor, while a change to io.micronaut.openapi.visitor can't break io.micronaut.openapi.visitor.group.
Position
Below the diagonal: io.micronaut.openapi.visitor uses a module listed above it, which is the healthy direction.
io.micronaut.openapi.visitor uses io.micronaut.openapi.visitor.management, so a change to io.micronaut.openapi.visitor.management can break io.micronaut.openapi.visitor, while a change to io.micronaut.openapi.visitor can't break io.micronaut.openapi.visitor.management.
Position
Below the diagonal: io.micronaut.openapi.visitor uses a module listed above it, which is the healthy direction.
io.micronaut.openapi.visitor uses io.micronaut.openapi.visitor.security, so a change to io.micronaut.openapi.visitor.security can break io.micronaut.openapi.visitor, while a change to io.micronaut.openapi.visitor can't break io.micronaut.openapi.visitor.security.
Position
Below the diagonal: io.micronaut.openapi.visitor uses a module listed above it, which is the healthy direction.
io.micronaut.openapi.view uses io.micronaut.openapi.visitor.group, so a change to io.micronaut.openapi.visitor.group can break io.micronaut.openapi.view, while a change to io.micronaut.openapi.view can't break io.micronaut.openapi.visitor.group.
Position
Below the diagonal: io.micronaut.openapi.view uses a module listed above it, which is the healthy direction.
io.micronaut.openapi.view uses io.micronaut.openapi.visitor, so a change to io.micronaut.openapi.visitor can break io.micronaut.openapi.view, while a change to io.micronaut.openapi.view can't break io.micronaut.openapi.visitor.
Position
Below the diagonal: io.micronaut.openapi.view uses a module listed above it, which is the healthy direction.
At a glance — Code Health · 54.4 · Adequate · gated by D1, D2, X5 ·
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A03:2025 — Software Supply Chain Failures
11
Medium
A05:2025 — Injection
8
High / Critical
A07:2025 — Authentication Failures
2
High / Critical
Roadmap
Top priorities: Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md; Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts; Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md.
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Declare the default where Java declares it: `@NullMarked` (org.jspecify.annotations) in each package's `package-info.java`, or once in `module-info.java`, and run NullAway (Error Prone) or the Checker Framework so the declaration is enforced. Then annotate the real exceptions `@Nullable` and resolve the suppressions rather than adding to them: a `@SuppressWarnings("NullAway")` or `castToNonNull(x)` on a value the checker could show to be null is a `NullPointerException` waiting for the path that makes it true — where the value genuinely cannot be null, say something the checker can see instead (a null check, `Objects.requireNonNull`, a non-null field initialised in the constructor).
Add a SAST step to CI running what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 5
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 553
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 64
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 15
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 57 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.8, the weighted average across measured dimensions.
Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.
What we checked — 57 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 611 of 622 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.kt, .java, .py) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo.
D10 Test Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 383 test(s) behind this row are the ones the code-model census could read, and this repository also carries at least 50 test source file(s) (.kt, .py) that it cannot: it reads the test types the .java frontend declared, so a suite in any other language is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.kt, .java, .py) and this repository declares a JVM test suite (repository root, Gradle), but it was not re-run: no test result was produced. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 38 Maven/Gradle manifest(s) were read, stating a version for 45 dependency(ies) and leaving 6 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D21's naming rules read C# through Roslyn and every other language through its sidecar model; these languages are left out (PHP's reading is its own change, a Roslyn-loaded VB or F# project has no population builder yet). Their declarations carry no naming verdict this run — this says nothing about whether their names are consistent.
D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
D34 Knowledge Freshness — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. File-level freshness contradicts repo activity: 67 commits in the last 90 days, yet 87 of 101 significant files carry no living knowledge. Those two readings cannot both be true, so the per-file recency signal is treated as unreliable here and freshness is not scored for this run.
AC6 Visual & motion safety — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Visual & motion safety could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository. Engine failure: ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex').
AX1 Captive dependencies — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository also uses Micronaut, whose singleton and shorter-lived bindings can capture one another the same way, but this check does not read them yet. That is a gap in this analyzer's language reach — not a finding that those bindings are free of it.
AXB1 Runtime evidence locked — no reproducible boot — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Subject: 12 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. We then boot it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
C1 Data Protection — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
C3 Audit Trail — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
C4 Data Retention — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
C5 Data-Subject Rights — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
S1 Web-Security Posture — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
X10 Duplicated predicate — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 48 further occurrence(s) are not listed individually; the score already reflects all 88.
X12 Unreachable branch — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover most of the languages this repository's product is written in. What it read is kept, but it is too small a share to grade the product by. That is a gap in this analyzer's language reach — not a finding about this repository.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
106 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was SchemaUtils.appendSchema at 208. A further 3 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being ParamUtils.paramStyle at 47 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: openapi/src/main/java/io/micronaut/openapi/visitor/ParamUtils.java (ParamUtils.paramStyle at 47). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
+ 101 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 2 bodies over 120 down to 120 or less in Cyclomatic Complexity — start with SchemaUtils.appendSchema (cyclomatic 208), SchemaDefinitionUtils.resolveSchema (cyclomatic 160). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cyclomatic Complexity from 2.8 to about 3.9/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 159 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 31 bodies over 60 down to 60 or less in Cognitive Complexity — start with SchemaDefinitionUtils.toValueMap (cognitive 399), SchemaDefinitionUtils.resolveSchema (cognitive 347), SchemaUtils.appendSchema (cognitive 275). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 31 together lifts Cognitive Complexity from 2.0 to about 3.7/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes8.5 / 10Strong✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 16 TooManyMethods finding(s) in God Classes — start with Utils.java (2), KotlinMicronautClientCodegen.java (2), JavaMicronautClientCodegen.java (2). — One of this dimension's main actionable groups (16 warning-level).
Resolve the 14 ClassTooLong finding(s) in God Classes — start with SchemaDefinitionUtils.java, AbstractOpenApiEndpointVisitor.java, SchemaUtils.java. — One of this dimension's main actionable groups (14 warning-level).
Resolve the 14 MethodTooLong finding(s) in God Classes — start with SchemaDefinitionUtils.java (5), AbstractOpenApiEndpointVisitor.java (3), SchemaUtils.java (2). — One of this dimension's main actionable groups (14 warning-level).
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.
109 duplicated block group(s) detected. 7.2 % of the production lines (4,036 of 56,173) are in a reported copy. A further 51 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. 2 of the 160 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
+ 77 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 11 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with DefaultCodegen.java (3), DefaultGenerator.java (2), ApiResponsesSerializer.java. — One of this dimension's main actionable groups (11 warning-level).
Resolve the 7 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with JavaMicronautClientCodegen.java, DefaultCodegen.java, GeneratorUtils.java. — One of this dimension's main actionable groups (7 warning-level).
Resolve the 7 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with SchemaDefinitionUtils.java (3), ElementUtils.java, GeneratorUtils.java. — One of this dimension's main actionable groups (7 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
18 production modules (Gradle), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; edges a convention plugin adds from buildSrc or build-logic are not visible there; 0 module(s) off the main sequence, with abstractness counted on 10 of the 18 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 1 Low cohesion finding(s) in Cohesion (LCOM4) — start with OpenApiControllerVisitor.java. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D10 · Test Quality10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the tests truly assert behaviour rather than just running the code.
Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.
2 skipped (2 with a documented reason), 0 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 383 tests. Measured on the .java suite only — at least 50 test source file(s) (.kt, .py) went unread, so its test quality is unmeasured and is not in these counts.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 42 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 38 Maven/Gradle manifest(s) declare with a version resolvable from the manifest itself — the same declaration-site closure this analysis reads for dependency currency. The JVM has no lockfile a checkout is guaranteed to carry, so this is deliberately NOT the transitive closure. 6 further coordinate(s) are declared with no version at the declaration site — inherited from a parent POM, a BOM or an unresolved Gradle version reference — and are NOT graded: this verdict covers what the checkout pins, not the full transitive graph. A further 2 coordinate(s) are not published to Maven Central — another repository (Google's Maven hosts androidx), a SNAPSHOT, or a private artifact — so their licences are not readable from here and they are outside this verdict.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
1 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is openapi/src/main/java/io/micronaut/openapi/visitor/DynamicRefUtils.java. Counted over 101 of the 304 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Off-boarding risk: anonymized user #1
✓ On the Gold path — maintain.
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
39 deducted task-comment markers across 56173 LoC (0.1/KLoC) → score 9.9. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
Resolve the 33 TodoComment finding(s) in Explicit Debt — start with DefaultCodegen.java (22), DefaultGenerator.java (10), AbstractMicronautJavaCodegen.java. — One of this dimension's main actionable groups (33 warning-level).
Resolve the 4 FixmeComment finding(s) in Explicit Debt — start with DefaultCodegen.java (4). — One of this dimension's main actionable groups (4 warning-level).
Resolve the 2 HackComment finding(s) in Explicit Debt — start with DefaultCodegen.java, DefaultGenerator.java. — One of this dimension's main actionable groups (2 warning-level).
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.
0 of 1 documentation facets pass in full; short on: F2 example. 77 document(s) read across 1 unit(s).
Documentation: no build, run or usage exampleREADME.md:1
What to do
Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d19_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.
No ADRs foundtest-suite-spring-kotlin-ksp/build.gradle.kts:17
What to do
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d20_recommendation.md · top locations in Appendix A, every location in findings.md.
1 of 6 build units (Gradle) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesionopenapi/build.gradle.kts:1
What to do
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion — start with build.gradle.kts. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.
Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
21 % of calls cross a namespace and 0 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: small — navigation cost is tolerated.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
1 finding(s): 0 critical, 1 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 1 REDACTED finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
8 finding(s): 0 critical, 4 high, 4 medium, 0 low. semgrep hit a parse error in 1 file(s) — `gradlew` (line 74, line 178) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 3 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
What to do
Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
Resolve the 8 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (8 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.
Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 3 platform declaration(s) and 45 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
✓ On the Gold path — maintain.
Detailed fixes: d44_recommendation.md.
Do you agree with this assessment?
Frontend & cross-cutting dimensions
R = React/JS · M = Maturity · P = Readiness.
AC1 · Text alternatives10.0 / 10Exemplary○ Nothing flagged
Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.
Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.
Do you agree with this assessment?
AC2 · Forms & labels10.0 / 10Exemplary○ Nothing flagged
Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, a click handler on a plain element names the control it declares, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.
Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
Do you agree with this assessment?
AC3 · Page structure4.8 / 10Weak✓ Tool-verified
Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.
Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. — openapi/src/main/resources/templates/openapi-explorer/index.html:2
No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <rapi-doc id="rapidoc">, so there is no content here to wrap — render the <main> from the component mounted into it. — openapi/src/main/resources/templates/rapidoc/index.html:3
No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <div id="app">, so there is no content here to wrap — render the <main> from the component mounted into it. — openapi/src/main/resources/templates/scalar/index.html:2
What to do
Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.
Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
Other · Architecture — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.
Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.
Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
`JavaMicronautClientOptionsBuilder` declares 30 abstract methods: `withAdditionalClientTypeAnnotations`, `withAuthConfigName`, `withAuthFilter`, `withAuthFilterClientIds`, `withAuthFilterExcludedClientIds`, `withAuthorization`, `withAuthorizationFilterPattern`, `withAuthorizationFilterPatternStyle`, `withBasePathSeparator`, `withClientId`, `withClientPath`, `withFluxForArrays`, `withGenerateAuthClasses`, `withGeneratedAnnotation`, `withLombok`, `withNoArgsConstructor`, `withPlural`, `withRetryable`, `withRetryableAttempts`, `withRetryableCapturedException`, `withRetryableDelay`, `withRetryableExcludes`, `withRetryableIncludes`, `withRetryableJitter`, `withRetryableMaxDelay`, `withRetryableMultiplier`, `withRetryablePredicate`, `withUseApiKeyAuth`, `withUseBasicAuth`, `withUseOauth`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientOptionsBuilder.java:24
`KotlinMicronautClientOptionsBuilder` declares 36 abstract methods: `withAdditionalClientTypeAnnotations`, `withAuthConfigName`, `withAuthFilter`, `withAuthFilterClientIds`, `withAuthFilterExcludedClientIds`, `withAuthorization`, `withAuthorizationFilterPattern`, `withAuthorizationFilterPatternStyle`, `withBasePathSeparator`, `withClientId`, `withClientPath`, `withCoroutines`, `withExplicitApi`, `withFluxForArrays`, `withGenerateAuthClasses`, `withGeneratedAnnotation`, `withJavaCompatibility`, `withJvmOverloads`, `withJvmRecord`, `withKsp`, `withModelMutable`, `withNonPublicApi`, `withPlural`, `withRetryable`, `withRetryableAttempts`, `withRetryableCapturedException`, `withRetryableDelay`, `withRetryableExcludes`, `withRetryableIncludes`, `withRetryableJitter`, `withRetryableMaxDelay`, `withRetryableMultiplier`, `withRetryablePredicate`, `withUseApiKeyAuth`, `withUseBasicAuth`, `withUseOauth`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientOptionsBuilder.java:24
`KotlinMicronautServerOptionsBuilder` declares 19 abstract methods: `withAot`, `withAuthentication`, `withControllerPackage`, `withCoroutines`, `withFluxForArrays`, `withGenerateControllerFromExamples`, `withGenerateImplementationFiles`, `withGenerateOperationsToReturnNotImplemented`, `withGenerateStreamingFileUpload`, `withGeneratedAnnotation`, `withJavaCompatibility`, `withJvmOverloads`, `withJvmRecord`, `withKsp`, `withModelMutable`, `withNonPublicApi`, `withPlural`, `withUserParameterClass`, `withUserParameterMode`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerOptionsBuilder.java:22
`MicronautCodeGeneratorOptionsBuilder` declares 58 abstract methods: `withAdditionalEnumTypeAnnotations`, `withAdditionalModelTypeAnnotations`, `withAdditionalOneOfTypeAnnotations`, `withAdditionalProperties`, `withAllowUnicodeIdentifiers`, `withApiNamePrefix`, `withApiNameSuffix`, `withApiPackage`, `withArtifactId`, `withBeanValidation`, `withDateTimeFormat`, `withEnsureUniqueParams`, `withEnumNameMapping`, `withEnumUnknownDefaultCase`, `withEnumUnknownDefaultCaseName`, `withGenerateControllerAsAbstract`, `withGenerateEnumConverters`, `withGenerateHttpResponseAlways`, `withGenerateHttpResponseOnlyForMultipleStatuses`, `withGenerateHttpResponseWhereRequired`, `withGenerateOperationOnlyForFirstTag`, `withGenerateSwaggerAnnotations`, `withImplicitHeaders`, `withImplicitHeadersRegex`, `withImportMapping`, `withInlineSchemaNameMapping`, `withInlineSchemaOption`, `withInvokerPackage`, `withJsonIncludeAlwaysForRequiredFields`, `withLang`, `withModelNameMapping`, `withModelNamePrefix`, `withModelNameSuffix`, `withModelPackage`, `withNameMapping`, `withOpenapiNormalizer`, `withOptional`, `withParameterMappings`, `withPrependFormOrBodyParameters`, `withReactive`, and 18 more. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorOptionsBuilder.java:27
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Other · Code Health — Unreviewed-generation residue in this repository's Java: methods whose whole body only throws a "not implemented" or bare unsupported-operation exception, or returns a default value (or nothing) under a TODO/FIXME marker, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.
Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.
Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's Java: methods that only throw a "not implemented" exception, methods that take inputs and return a constant or do nothing, dead `if (false)` branches, and skeleton classes most of whose methods are holes.
Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.
A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something. (×3) — openapi-generator/src/test/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegenTest.java:21, test-suite-spring-java/src/test/java/io/micronaut/openapi/spring/OpenApiExposedTest.java:30, test-suite-spring-java/src/test/java/io/micronaut/openapi/spring/TestControllerTest.java:32
What to do
Clear the softer debt: re-enable or delete @Disabled/@Ignore tests, decide whether each empty method or UnsupportedOperationException is deliberate (and say so in a comment), and replace @SuppressWarnings("all") with targeted, justified suppressions.
Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
Only 2/11 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`, `docs-examples/example-config-java`, `docs-examples/example-config-kotlin`, `docs-examples/example-groups-java`, `docs-examples/example-groups-kotlin` and 4 more.
What to do
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
Add a health-check endpoint (Spring Boot Actuator's /actuator/health, or a /health route) so orchestrators and load balancers can probe liveness/readiness.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
No static application security testing detected. For this repository's stack, add spotbugs with find-sec-bugs (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 9 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner. — REDACTED:13
What to do
Add a SAST step to CI running what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
Do you agree with this assessment?
X13 · Undrained process stream3.5 / 10Weak✓ Tool-verified
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
The JDK pipes both `stdout` and `stderr` of this child — no `redirectErrorStream`, `redirectError`, `redirectOutput` or `inheritIO` is set — and `p.waitFor()` is written before stdout and stderr is read, so nothing drains it while the parent waits. The JDK's own `Process` documentation warns that failing to read a child's output promptly "may cause the process to block, or even deadlock": once the child writes more than the pipe holds (measured on OpenJDK 25 / Linux: 60,000 bytes finishes, 70,000 hangs forever), it blocks on the write, never exits, and the wait never returns. Nothing fails loudly. Read every piped stream before (or while) waiting — a thread or `CompletableFuture` per stream — merge them with `redirectErrorStream(true)` and read the one stream before `waitFor`, or discard what you do not want with `redirectOutput`/`redirectError(ProcessBuilder.Redirect.DISCARD)` (or a file). — openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8642
What to do
Each finding names the span that makes the branch dead and the span it is dead because of. Confirm from the two, then delete the dead arm or fix the predicate that was meant to be reachable.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.
Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements (or a repository exception type deriving from it) controlled by an `if` — directly or through the `using`, `lock` or `try` that wraps the throw — whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`); in the `else` branch, for a conjunct of the admitting condition that is FALSE of a non-null `p`. Range guards are read for bounds that leave nothing and for a `p > C.Count` bound whose index then reaches `C[p]`, `C.RemoveAt(p)` or a method of the same type that indexes with it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.
Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.
Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen. Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` and the remaining elements are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
`catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×2) — openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:467, openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:479
An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×7) — openapi/src/main/java/io/micronaut/openapi/visitor/ContextUtils.java:126, openapi/src/main/java/io/micronaut/openapi/visitor/ContextUtils.java:156, openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:839, …
What to do
Swallowed exception (caught, then discarded)
Do you agree with this assessment?
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.
Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.
Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.
`debug` at line 7169 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7169
Other · Code Health — Whether Java packages are null-marked and not undermined by heavy nullness suppression — a package under `@NullMarked` (or `@NonNullApi`, `@ParametersAreNonnullByDefault`, `@NonNullByDefault`, or a NullAway/Checker Framework configuration naming it) makes an unannotated reference exclude null, and `@SuppressWarnings("NullAway")`, `("nullness")`, `("null")` and `castToNonNull(…)` are what silence it.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
0/20 of this repository's Java package directories are under a non-null default: a `package-info.java` declaring `@NullMarked` (JSpecify) or `@NonNullApi`, `@ParametersAreNonnullByDefault`, `@NonNullByDefault`, `@DefaultQualifier(NonNull.class)`; a `module-info.java` declaring `@NullMarked`; every type in it `@NullMarked`; or a build that runs NullAway with the package in `AnnotatedPackages`, or the Checker Framework's `NullnessChecker`. Elsewhere every reference admits null and no checker warns on the dereference that throws a `NullPointerException`.
What to do
Declare the default where Java declares it: `@NullMarked` (org.jspecify.annotations) in each package's `package-info.java`, or once in `module-info.java`, and run NullAway (Error Prone) or the Checker Framework so the declaration is enforced. Then annotate the real exceptions `@Nullable` and resolve the suppressions rather than adding to them: a `@SuppressWarnings("NullAway")` or `castToNonNull(x)` on a value the checker could show to be null is a `NullPointerException` waiting for the path that makes it true — where the value genuinely cannot be null, say something the checker can see instead (a null check, `Objects.requireNonNull`, a non-null field initialised in the constructor).
Do you agree with this assessment?
WCAG coverage — what static analysis assessed
Statically assessed 11 of 55 WCAG 2.2 Level A/AA success criteria (20%; ≈22% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 44 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 3 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
X10 Duplicated predicate — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 51 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
AC6 Visual & motion safety — Visual & motion safety could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository.
AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — no test/production split to check
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
D11 Test Reliability — Test reliability not included — the .java suite was found but not re-run
D12 Dependency Hygiene — Not scored — 38 Maven/Gradle manifest(s) were read, stating a version for 45 dependency(ies) and leaving 6 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D21 Naming Consistency — Naming consistency does not read html yet; not measured.
D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .java, .kt, .py, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D25 ADR Conformance — no ADRs to check
D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
D34 Knowledge Freshness — knowledge concentrated in recent work — freshness signal contradicted by repo activity
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not included — suite not readable by the collector
DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (27 value object(s))
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
M4 Documentation accuracy — Not applicable: the 77 current-state document(s) make no claim of a kind M4 checks. 13 claim(s) of kinds M4 does not check were not checked (path 9, environment variable 4); M4 checks only links and versions and artefact counts.
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM source, so there is no service whose uptime a failing dependency could take down
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `@Benchmark` in a Java, Kotlin or Scala file importing JMH or kotlinx-benchmark, Jetpack Benchmark's `measureRepeated` in a file importing androidx.benchmark, or JMH/kotlinx-benchmark/androidx.benchmark in a pom.xml, Gradle or sbt build, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
X1 Async correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X12 Unreachable branch — X12 reached only 4% of this repository's production lines — java (54,086 lines), groovy (811 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X18 Disposal-pattern correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X2 Cancellation propagation — no C# was loaded; this repository's Java and Kotlin were read, and no request in it can be cancelled by a caller (Ktor, OkHttp's newCall or a URL stream, from a suspend function) — a Java request off Android takes no token: it is cancelled through the handle it returns (Future.cancel, Call.cancel, a Disposable), ambiently (io.grpc.Context) or by interrupting its thread, not through a parameter; a Kotlin request outside a suspend function has no caller's cancellation to honour
X21 Side-effecting pattern guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X26 Unsynchronised callback handoff — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:184— // TODO: xml structures, styles, link objects, parameterized servers, full schemes for OAS 2.0 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:710— // TODO Determine what to do if the parent discriminator name == the grandparent discriminator name — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2114— // TODO support for multi, tsv? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2185— // TODO need to revise how to obtain the example value — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2679— // TODO: we should return a different value to distinguish between free-form object — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2874— // TODO revise the logic below to set discriminator, xml attributes — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2880— // TODO need to work with anyOf, oneOf as well — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3273— // TODO remove the anyType check here in the future ANyType models can have enums defined — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4012— // TODO remove this hack in the future, code should use minProperties and maxProperties for object schemas — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4623— // TODO fix this, map should not be assigning properties to items — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5598— // TODO need to review replacing empty map with schemaMapping instead — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5633— // TODO revise collectionFormat, default collection format in OAS 3 appears to multi at least for query parameters — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5824— // TODO revise below as it should be replaced by ModelUtils.isByteArraySchema(parameterSchema) — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5833— // TODO revise below as it should be replaced by ModelUtils.isFileSchema(parameterSchema) — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7129— // TODO: add isNumeric — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7154— // TODO: add isNumeric — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7622— // TODO in the future have this return one codegenParameter of type object or composed which includes all definition — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7770— // TODO this hoisting code is generator specific and should be isolated into updateFormPropertyForArray — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7772— // TODO we need to fix array of item (with default value) generator by generator — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7873— // TODO move this splitting logic to the generator that needs it only — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8275— // TODO in the future switch al the below schema usages to unaliasedSchema — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8412— // TODO add processing for requiredPropertyName — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:332— // TODO: Allow user to define _which_ servers object in the array to target. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:482— // TODO: Process these anyway and add to dryRun info — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:516— // TODO: Should this be added to dryRun? If not, this seems like a weird place to return early from processing. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TooManyMethods: ConfigUtils openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:188— TooManyMethods — 71 methods. The bar is 30 methods; this is 41 over it, 2.37× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: SchemaDefinitionUtils openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:270— TooManyMethods — 62 methods. The bar is 30 methods; this is 32 over it, 2.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: ToAsciiDocSerializer openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/ToAsciiDocSerializer.java:68— TooManyMethods — 59 methods. The bar is 30 methods; this is 29 over it, 1.97× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: DefaultOptionsBuilder openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:657— TooManyMethods — 59 methods. The bar is 30 methods; this is 29 over it, 1.97× the bar. Most of these members implement generator.MicronautCodeGeneratorOptionsBuilder (58 of 59 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
TooManyMethods: AbstractOpenApiEndpointVisitor openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:210— TooManyMethods — 53 methods. The bar is 30 methods; this is 23 over it, 1.77× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Utils openapi/src/main/java/io/micronaut/openapi/visitor/Utils.java:55— TooManyMethods — 45 methods. The bar is 30 methods; this is 15 over it, 1.50× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: SchemaUtils openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:96— TooManyMethods — 43 methods. The bar is 30 methods; this is 13 over it, 1.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: ElementUtils openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:94— TooManyMethods — 42 methods. The bar is 30 methods; this is 12 over it, 1.40× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Utils openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:53— TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: DefaultClientOptionsBuilder openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:610— TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× the bar. Most of these members implement generator.KotlinMicronautClientOptionsBuilder (36 of 37 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
TooManyMethods: OpenApiApplicationVisitor openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:155— TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: KotlinMicronautClientCodegen openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:51— TooManyMethods — 36 methods. The bar is 30 methods; this is 6 over it, 1.20× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: JavaMicronautClientCodegen openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:50— TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: SchemaMixin openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/mixin/SchemaMixin.java:37— TooManyMethods — 34 methods. The bar is 30 methods; this is 4 over it, 1.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: SchemaConverterMixin openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/mixin/SchemaConverterMixin.java:36— TooManyMethods — 32 methods. The bar is 30 methods; this is 2 over it, 1.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: DefaultClientOptionsBuilder openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:582— TooManyMethods — 31 methods. The bar is 30 methods; this is 1 over it, 1.03× the bar. Most of these members implement generator.JavaMicronautClientOptionsBuilder (30 of 31 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
ClassTooLong: SchemaDefinitionUtils openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:270— ClassTooLong — 2279 significant lines (blank, comment-only and punctuation-only lines excluded), 62 methods. The bar is 400 significant lines; this is 1879 over it, 5.70× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: AbstractOpenApiEndpointVisitor openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:210— ClassTooLong — 1209 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 809 over it, 3.02× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: SchemaUtils openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:96— ClassTooLong — 1140 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 740 over it, 2.85× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ConfigUtils openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:188— ClassTooLong — 911 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 511 over it, 2.28× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: MicronautCodeGeneratorEntryPoint openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:42— ClassTooLong — 865 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 465 over it, 2.16× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: OpenApiApplicationVisitor openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:155— ClassTooLong — 661 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 261 over it, 1.65× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: KotlinMicronautClientCodegen openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:51— ClassTooLong — 639 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 239 over it, 1.60× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: Utils openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:53— ClassTooLong — 598 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 198 over it, 1.50× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: MicronautInlineModelResolver openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:58— ClassTooLong — 587 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 187 over it, 1.47× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: JavaMicronautClientCodegen openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:50— ClassTooLong — 577 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 177 over it, 1.44× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ConvertUtils openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:128— ClassTooLong — 471 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 71 over it, 1.18× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: OpenApiNormalizeUtils openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:60— ClassTooLong — 466 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 66 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ToAsciiDocSerializer openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/ToAsciiDocSerializer.java:68— ClassTooLong — 447 significant lines (blank, comment-only and punctuation-only lines excluded), 59 methods. The bar is 400 significant lines; this is 47 over it, 1.12× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ElementUtils openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:94— ClassTooLong — 431 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 31 over it, 1.08× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
MethodTooLong: SchemaDefinitionUtils.resolveSchema openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:811— MethodTooLong — resolveSchema runs 312 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 212 over it, 3.12× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: SchemaUtils.appendSchema openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:738— MethodTooLong — appendSchema runs 279 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 179 over it, 2.79× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: SchemaDefinitionUtils.toValueMap openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1376— MethodTooLong — toValueMap runs 252 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 152 over it, 2.52× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: SchemaDefinitionUtils.processSchemaAnn openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2344— MethodTooLong — processSchemaAnn runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: AbstractOpenApiEndpointVisitor.processMethodParameterAnnotation openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1170— MethodTooLong — processMethodParameterAnnotation runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MicronautCodeGeneratorEntryPoint.configureOptions openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:128— MethodTooLong — configureOptions runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: SchemaDefinitionUtils.processJakartaValidationAnnotations openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2809— MethodTooLong — processJakartaValidationAnnotations runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: SchemaDefinitionUtils.getSchemaDefinition openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:361— MethodTooLong — getSchemaDefinition runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Utils.genericAnnotations openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:230— MethodTooLong — genericAnnotations runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: SchemaUtils.copyOpenApi openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1166— MethodTooLong — copyOpenApi runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MicronautInlineModelResolver.gatherInlineModels openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:360— MethodTooLong — gatherInlineModels runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: AbstractOpenApiEndpointVisitor.visitMethod openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:454— MethodTooLong — visitMethod runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: KotlinMicronautClientCodegen.processOpts openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:256— MethodTooLong — processOpts runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: AbstractOpenApiEndpointVisitor.processParameter openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:899— MethodTooLong — processParameter runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FileTooLong: visitor/SchemaDefinitionUtils.java openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java— FileTooLong — 2524 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: SchemaDefinitionUtils (270-3680). The bar is 500 significant lines; this is 2024 over it, 5.05× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: visitor/AbstractOpenApiEndpointVisitor.java openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java— FileTooLong — 1393 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: AbstractOpenApiEndpointVisitor (210-2170). The bar is 500 significant lines; this is 893 over it, 2.79× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: visitor/SchemaUtils.java openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java— FileTooLong — 1211 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: SchemaUtils (96-1797). The bar is 500 significant lines; this is 711 over it, 2.42× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: visitor/ConfigUtils.java openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java— FileTooLong — 1074 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: ConfigUtils (188-1655). The bar is 500 significant lines; this is 574 over it, 2.15× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: generator/MicronautCodeGeneratorEntryPoint.java openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java— FileTooLong — 884 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MicronautCodeGeneratorEntryPoint (42-1221). The bar is 500 significant lines; this is 384 over it, 1.77× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: visitor/OpenApiApplicationVisitor.java openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java— FileTooLong — 790 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: OpenApiApplicationVisitor (155-1179). The bar is 500 significant lines; this is 290 over it, 1.58× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: generator/KotlinMicronautClientCodegen.java openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java— FileTooLong — 667 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: KotlinMicronautClientCodegen (51-947). The bar is 500 significant lines; this is 167 over it, 1.33× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: generator/Utils.java openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java— FileTooLong — 626 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: Utils (53-917). The bar is 500 significant lines; this is 126 over it, 1.25× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: generator/MicronautInlineModelResolver.java openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java— FileTooLong — 621 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: MicronautInlineModelResolver (58-1020). The bar is 500 significant lines; this is 121 over it, 1.24× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: generator/JavaMicronautClientCodegen.java openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java— FileTooLong — 604 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: JavaMicronautClientCodegen (50-865). The bar is 500 significant lines; this is 104 over it, 1.21× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: visitor/ConvertUtils.java openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java— FileTooLong — 574 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: ConvertUtils (128-862). The bar is 500 significant lines; this is 74 over it, 1.15× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: visitor/OpenApiNormalizeUtils.java openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java— FileTooLong — 501 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: OpenApiNormalizeUtils (60-787). The bar is 500 significant lines; this is 1 over it, 1.00× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
Duplicated block (11 lines × 2) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/ApiResponsesSerializer.java:42— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/ApiResponsesSerializer.java:42-52 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/PathsSerializer.java:42-52 — before extracting anything, compare `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/ApiResponsesSerializer.java` and `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/PathsSerializer.java` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/ApiResponsesSerializer.java:42` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `value` to `ApiResponses` in one and `Paths` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (11 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:188— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:188-198 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:193-203 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:271— openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:271-281 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:324-334 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:271` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:475— openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:475-485 | openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:893-903 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5305— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5305-5315 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7695-7705 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5305` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7983— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7983-7993 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8016-8026 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7983` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1867— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1867-1877 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1918-1928 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) openapi/src/main/java/io/micronaut/openapi/view/AbstractViewConfig.java:147— openapi/src/main/java/io/micronaut/openapi/view/AbstractViewConfig.java:147-157 | openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:566-576 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (11 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1288— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1288-1298 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1304-1314 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1288` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7600— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7600-7610 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8252-8262 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1502— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1502-1512 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1547-1557 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1502` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1500` calls `parseBoolean`, `getProperty` and `openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1546` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:395— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:395-403 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:419-427 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:395` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5331— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5331-5339 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8283-8291 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:64— openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:64-72 | openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:76-84 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:64` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `el` to `Element` in one and `TypedElement` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (9 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2838— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2838-2846 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2848-2857 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2838` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:553— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:553-561 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:607-615 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:616` calls `getAllowReserved`, `setAllowReserved` and `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:562` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/management/SpringActuatorConfigUtils.java:123— openapi/src/main/java/io/micronaut/openapi/visitor/management/SpringActuatorConfigUtils.java:123-131 | openapi/src/main/java/io/micronaut/openapi/visitor/management/SpringActuatorConfigUtils.java:138-146 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/management/SpringActuatorConfigUtils.java:123` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ObjectMapperFactory.java:109— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ObjectMapperFactory.java:109-117 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ObjectMapperFactory.java:130-138 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ObjectMapperFactory.java:109` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:474— openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:474-480 | openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:522-528 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:474` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:197— openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:197-203 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:742-748 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1773— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1773-1779 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2460-2466 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2893— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2893-2899 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2900-2906 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:382— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:382-388 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:392-398 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:382` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:121— openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:121-127 | openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:138-144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:121` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1556— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1556-1562 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2506-2512 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1556` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:345— openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:345-350 | openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:352-356 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:345` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1986— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1986-1990 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1996-2002 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2003` calls `setDisallowAdditionalPropertiesIfNotPresent` and `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1993` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:171— openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:171-175 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1381-1385 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:171` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:342— openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:342-346 | openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:443-447 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:342` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7410— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7410-7414 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7424-7428 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7410` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7415` calls `put`, `escapeText`, `getValue` and `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7429` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:623— openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:623-627 | openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:689-693 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:623` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) test-suite-spring-kotlin-kapt/src/main/kotlin/io/micronaut/openapi/spring/Application.kt:13— test-suite-spring-kotlin-kapt/src/main/kotlin/io/micronaut/openapi/spring/Application.kt:13-17 | test-suite-spring-kotlin-ksp/src/main/kotlin/io/micronaut/openapi/spring/Application.kt:13-17 — before extracting anything, compare `test-suite-spring-kotlin-kapt/src/main/kotlin/io/micronaut/openapi/spring/Application.kt` and `test-suite-spring-kotlin-ksp/src/main/kotlin/io/micronaut/openapi/spring/Application.kt` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Swallowed exception (empty catch) openapi/src/main/java/io/micronaut/openapi/visitor/ContextUtils.java:126— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) openapi/src/main/java/io/micronaut/openapi/visitor/ContextUtils.java:156— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:839— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:729— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1627— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1646— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) openapi/src/main/java/io/micronaut/openapi/visitor/Utils.java:141— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Duplicated block (12 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2229— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2229-2240 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2278-2289 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4073— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4073-4084 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8098-8109 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4073` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4085` calls `isPasswordSchema` and `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8110` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1893— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1893-1904 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3269-3280 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1707— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1707-1718 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1732-1743 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1707` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `l1` to `List<?>` in one and `List<Schema>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (12 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:710— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:710-721 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:872-883 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:710` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:197— openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:197-208 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1411-1422 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:197` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:232— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:232-239 | openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:362-369 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:232` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:230` calls `capitalize`, `replace` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:361` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:246— openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:246-253 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java:354-361 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:246` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:995— openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:995-1002 | openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1104-1111 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:708— openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:708-715 | openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:720-727 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:175— openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:175-182 | openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:261-268 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:175` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:183` calls `normalizeContent`, `getContent`, `normalizeHeaders` and `openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:269` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:465— openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:465-472 | openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:477-484 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:465` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:325— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:325-337 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java:317-329 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:325` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:236— openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:236-248 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:337-349 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:235` calls `setGenerateSwaggerAnnotations` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:336` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:139— openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:139-151 | openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:226-238 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:225` calls `values` and `openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:138` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:286— openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:286-298 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:339-351 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:286` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/ToAsciiDocSerializer.java:316— openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/ToAsciiDocSerializer.java:316-328 | openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/ToAsciiDocSerializer.java:335-347 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/ToAsciiDocSerializer.java:316` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `node` to `RefImageNode` in one and `RefLinkNode` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
FixmeComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1821— // FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1959— // FIXME: java specific type should be in Java Based Abstract Impl's — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3821— // FIXME: there are other ways to define the type of the discriminator property (inline — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:6362— // FIXME: if supporting inheritance, when called a second time for allProperties it is possible for — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
D4 · Code Duplication· Edited copy of a member (8 corresponding lines) · ×4
Edited copy of a member (8 corresponding lines) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/PrimitiveType.java:100— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/PrimitiveType.java:100-107 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/PrimitiveType.java:116-123 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:177— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:177-184 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:182-189 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:2077— openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:2077-2084 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:259-267 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/MdToAdocConverter.java:230— openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/MdToAdocConverter.java:230-238 | openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:616-623 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (11 corresponding lines) · ×4
Edited copy of a member (11 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:62— openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:62-72 | openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:74-84 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:1041— openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:1041-1051 | openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:1061-1071 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:707— openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:707-717 | openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:719-729 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/MdToAdocConverter.java:173— openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/MdToAdocConverter.java:173-183 | openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/MdToAdocConverter.java:240-251 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (17 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:334— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:334-350 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:357-373 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:374` calls `normalizeStr` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:351` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (17 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:306— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:306-322 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java:298-314 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:306` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1697— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1697-1713 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1741-1757 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1389— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1389-1405 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1433-1449 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1451` calls `getHeaders`, `headers` and `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1406` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:951— openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:951-956 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:981-986 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:951` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4675— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4675-4680 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4703-4709 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4675` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:189— openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:189-194 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1403-1408 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3003— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3003-3008 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3010-3015 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3003` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3000` calls `addValidationAnnMessage` and `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3009` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
AC3 · Page structure· Page without a main landmark · ×3
Page without a main landmark openapi/src/main/resources/templates/openapi-explorer/index.html:2— No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
Page without a main landmark openapi/src/main/resources/templates/rapidoc/index.html:3— No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <rapi-doc id="rapidoc">, so there is no content here to wrap — render the <main> from the component mounted into it.
Page without a main landmark openapi/src/main/resources/templates/scalar/index.html:2— No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <div id="app">, so there is no content here to wrap — render the <main> from the component mounted into it.
D4 · Code Duplication· Edited copy of a member (14 corresponding lines) · ×3
Edited copy of a member (14 corresponding lines) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:120— openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:120-133 | openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:137-150 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:86— openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:86-99 | openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:123-137 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:633— openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:633-646 | openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:648-666 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (12 corresponding lines) · ×3
Edited copy of a member (12 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/ContextUtils.java:178— openapi/src/main/java/io/micronaut/openapi/visitor/ContextUtils.java:178-189 | openapi/src/main/java/io/micronaut/openapi/visitor/ContextUtils.java:249-265 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:1337— openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:1337-1348 | openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:1350-1361 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) openapi/src/main/java/io/micronaut/openapi/annotation/mappers/OpenAPIManagementAnnotationMapper.java:45— openapi/src/main/java/io/micronaut/openapi/annotation/mappers/OpenAPIManagementAnnotationMapper.java:45-56 | openapi/src/main/java/io/micronaut/openapi/annotation/mappers/OpenAPISecurityAnnotationMapper.java:42-55 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (18 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1677— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1677-1694 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1721-1738 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:535— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:535-552 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:586-603 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:535` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:604` calls `getAllowEmptyValue`, `setAllowEmptyValue` and `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:553` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (18 lines × 2) test-suite-generator-util/src/main/java/io/micronaut/openapi/testsuite/GeneratorMain.java:195— test-suite-generator-util/src/main/java/io/micronaut/openapi/testsuite/GeneratorMain.java:195-212 | test-suite-generator-util/src/main/java/io/micronaut/openapi/testsuite/GeneratorMain.java:233-250 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:474— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:474-487 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:498-511 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:498— openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:498-511 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:518-531 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:498` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:240— openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:240-253 | openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:364-377 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9–10 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:295— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:295-303 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java:286-295 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:295` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9–10 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1129— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1129-1138 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1154-1162 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1129` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9–10 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:193— openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:193-202 | openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:222-230 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:193` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4089— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4089-4098 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8112-8121 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4089` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:294— openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:294-303 | openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:305-314 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:294` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2857— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2857-2866 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2867-2876 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 3) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:917— openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:917-922 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:937-942 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:967-972 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:917` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:935` calls `getProperties`, `size`, `flattenProperties` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:916` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 3) openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:63— openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:63-68 | openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:75-80 | openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:87-92 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind `el` to `Element` in one and `TypedElement` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:93` calls `containsKey`, `addDeprecatedMessage`, `getOwningType` and `openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:69` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 3) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:840— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:840-845 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:882-887 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:901-906 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
HackComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3759— // hack: avoid infinite loop on potential self-references in event our checks fail. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1425— // hack: destination filename in this scenario might be a suffix like Impl.java — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
D4 · Code Duplication· Edited copy of a member (30 corresponding lines) · ×2
Edited copy of a member (30 corresponding lines) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:464— openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:464-493 | openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:883-916 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (30 corresponding lines) openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:380— openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:380-409 | openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:411-442 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (26 corresponding lines) · ×2
Edited copy of a member (26 corresponding lines) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4072— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4072-4098 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8096-8121 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (26 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:647— openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:647-678 | openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:680-705 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (17 corresponding lines) · ×2
Edited copy of a member (17 corresponding lines) openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/ToAsciiDocSerializer.java:315— openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/ToAsciiDocSerializer.java:315-331 | openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/ToAsciiDocSerializer.java:334-350 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ObjectMapperFactory.java:101— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ObjectMapperFactory.java:101-117 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ObjectMapperFactory.java:122-138 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (9 corresponding lines) · ×2
Edited copy of a member (9 corresponding lines) openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:294— openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:294-303 | openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:370-378 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1801— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1801-1809 | openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:147-155 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (22 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4435— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4435-4456 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8348-8369 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (22 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5642— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5642-5663 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7727-7748 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5642` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:259— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:259-273 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java:255-269 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3618— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3618-3632 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3647-3661 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3618` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 3) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3201— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3201-3210 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4110-4119 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5331-5339 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4087— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4087-4095 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5319-5327 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8110-8118 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4087` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4085` calls `isPasswordSchema` and `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8108` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8–9 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:260— openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:260-268 | openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1828-1835 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1828` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8–9 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:838— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:838-846 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:880-887 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:880` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 3) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ApiResponsesDeserializer.java:52— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ApiResponsesDeserializer.java:52-59 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/CallbackDeserializer.java:52-59 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/PathsDeserializer.java:53-60 — before extracting anything, compare `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ApiResponsesDeserializer.java` and `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/CallbackDeserializer.java` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ApiResponsesDeserializer.java:52` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/CallbackDeserializer.java:60` calls `equals`, `$ref`, `asString` and `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ApiResponsesDeserializer.java:60` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 3) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/EncodingPropertyStyleEnumDeserializer.java:37— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/EncodingPropertyStyleEnumDeserializer.java:37-44 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/EncodingStyleEnumDeserializer.java:37-44 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/HeaderStyleEnumDeserializer.java:37-44 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7–8 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:146— openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:146-153 | openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:206-212 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:146` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7–8 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1799— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1799-1805 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1822-1829 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1799` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1821` calls `removeNonNameElementToCamelCase` and `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1797` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Swallowed exception (caught, then discarded) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:467— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:479— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
SchemaUtils.appendSchema (cyclomatic 208) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:738— SchemaUtils.appendSchema has cyclomatic complexity 208 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.resolveSchema (cyclomatic 160) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:811— SchemaDefinitionUtils.resolveSchema has cyclomatic complexity 160 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.toValueMap (cyclomatic 98) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1376— SchemaDefinitionUtils.toValueMap has cyclomatic complexity 98 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.fromOperation (cyclomatic 89) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4853— DefaultCodegen.fromOperation has cyclomatic complexity 89 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.processSchemaAnn (cyclomatic 80) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2344— SchemaDefinitionUtils.processSchemaAnn has cyclomatic complexity 80 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.fromProperty (cyclomatic 79) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4165— DefaultCodegen.fromProperty has cyclomatic complexity 79 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AbstractOpenApiEndpointVisitor.processMethodParameterAnnotation (cyclomatic 79) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1170— AbstractOpenApiEndpointVisitor.processMethodParameterAnnotation has cyclomatic complexity 79 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Utils.genericAnnotations (cyclomatic 72) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:230— Utils.genericAnnotations has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MicronautCodeGeneratorEntryPoint.configureOptions (cyclomatic 71) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:128— MicronautCodeGeneratorEntryPoint.configureOptions has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.fromParameter (cyclomatic 67) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5517— DefaultCodegen.fromParameter has cyclomatic complexity 67 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SchemaUtils.copyOpenApi (cyclomatic 66) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1166— SchemaUtils.copyOpenApi has cyclomatic complexity 66 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.getSchemaDefinition (cyclomatic 59) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:361— SchemaDefinitionUtils.getSchemaDefinition has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AbstractOpenApiEndpointVisitor.processParameter (cyclomatic 50) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:899— AbstractOpenApiEndpointVisitor.processParameter has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaUtils.replaceOrAppendOperation (cyclomatic 50) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1372— SchemaUtils.replaceOrAppendOperation has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.updateModelForComposedSchema (cyclomatic 49) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2853— DefaultCodegen.updateModelForComposedSchema has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NumberUtils.isCreatable (cyclomatic 49) openapi/src/main/java/io/micronaut/openapi/visitor/NumberUtils.java:51— NumberUtils.isCreatable has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.bindSchemaForElement (cyclomatic 46) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1244— SchemaDefinitionUtils.bindSchemaForElement has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MicronautInlineModelResolver.gatherInlineModels (cyclomatic 45) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:360— MicronautInlineModelResolver.gatherInlineModels has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.fromResponse (cyclomatic 44) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5207— DefaultCodegen.fromResponse has cyclomatic complexity 44 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GeneratorUtils.addEnumExtensions (cyclomatic 43) openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:139— GeneratorUtils.addEnumExtensions has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.fromFormProperty (cyclomatic 42) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7657— DefaultCodegen.fromFormProperty has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.fromRequestBody (cyclomatic 40) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8230— DefaultCodegen.fromRequestBody has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AbstractOpenApiEndpointVisitor.visitMethod (cyclomatic 39) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:454— AbstractOpenApiEndpointVisitor.visitMethod has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AbstractOpenApiEndpointVisitor.readOperations (cyclomatic 37) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1732— AbstractOpenApiEndpointVisitor.readOperations has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiNormalizeUtils.unwrapAllOff (cyclomatic 37) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:636— OpenApiNormalizeUtils.unwrapAllOff has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.fromModel (cyclomatic 36) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3220— DefaultCodegen.fromModel has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
OpenApiNormalizeUtils.normalizeSchema (cyclomatic 36) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:282— OpenApiNormalizeUtils.normalizeSchema has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.processJakartaValidationAnnotations (cyclomatic 35) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2809— SchemaDefinitionUtils.processJakartaValidationAnnotations has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.preprocessOpenAPI (cyclomatic 34) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1087— DefaultCodegen.preprocessOpenAPI has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultGenerator.generateApis (cyclomatic 34) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:702— DefaultGenerator.generateApis has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiEndpointVisitor.visitClass (cyclomatic 34) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiEndpointVisitor.java:134— OpenApiEndpointVisitor.visitClass has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.getPrimitiveType (cyclomatic 33) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2593— DefaultCodegen.getPrimitiveType has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DefaultGenerator.generateModels (cyclomatic 33) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:480— DefaultGenerator.generateModels has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultGenerator.generateWebhooks (cyclomatic 33) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:864— DefaultGenerator.generateWebhooks has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AbstractOpenApiEndpointVisitor.processBody (cyclomatic 33) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1419— AbstractOpenApiEndpointVisitor.processBody has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiApplicationVisitor.mergeAdditionalOpenApiFiles (cyclomatic 32) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:264— OpenApiApplicationVisitor.mergeAdditionalOpenApiFiles has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ConvertUtils.getTypeAndFormatByClass (cyclomatic 31) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:713— ConvertUtils.getTypeAndFormatByClass has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
JavaMicronautClientCodegen.processOpts (cyclomatic 30) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:242— JavaMicronautClientCodegen.processOpts has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
KotlinMicronautClientCodegen.processOpts (cyclomatic 30) openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:256— KotlinMicronautClientCodegen.processOpts has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultGenerator.configureGeneratorProperties (cyclomatic 29) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:227— DefaultGenerator.configureGeneratorProperties has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
JavaMicronautClientCodegen.calcRetryableAnnotation (cyclomatic 28) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:393— JavaMicronautClientCodegen.calcRetryableAnnotation has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
KotlinMicronautClientCodegen.calcRetryableAnnotation (cyclomatic 28) openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:417— KotlinMicronautClientCodegen.calcRetryableAnnotation has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AbstractViewConfig.fromProperties (cyclomatic 28) openapi/src/main/java/io/micronaut/openapi/view/AbstractViewConfig.java:185— AbstractViewConfig.fromProperties has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SpringActuatorConfigUtils.mergeWithActuatorProperties (cyclomatic 28) openapi/src/main/java/io/micronaut/openapi/visitor/management/SpringActuatorConfigUtils.java:165— SpringActuatorConfigUtils.mergeWithActuatorProperties has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.processSuperTypes (cyclomatic 28) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2020— SchemaDefinitionUtils.processSuperTypes has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaUtils.mergeOperations (cyclomatic 28) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:334— SchemaUtils.mergeOperations has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DefaultCodegen.setParameterBooleanFlagWithCodegenProperty (cyclomatic 27) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:6964— DefaultCodegen.setParameterBooleanFlagWithCodegenProperty has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DefaultGenerator.processOperation (cyclomatic 27) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1562— DefaultGenerator.processOperation has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.discriminatorFound (cyclomatic 26) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3480— DefaultCodegen.discriminatorFound has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ConfigUtils.setEndpointProperty (cyclomatic 26) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:970— ConfigUtils.setEndpointProperty has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ConfigUtils.setGroupProperty (cyclomatic 26) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:818— ConfigUtils.setGroupProperty has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
SchemaDefinitionUtils.processArraySchemaAnn (cyclomatic 26) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2231— SchemaDefinitionUtils.processArraySchemaAnn has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MicronautInlineModelResolver.flattenProperties (cyclomatic 25) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:906— MicronautInlineModelResolver.flattenProperties has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MicronautInlineModelResolver.isModelNeeded (cyclomatic 25) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:662— MicronautInlineModelResolver.isModelNeeded has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.recursiveGetDiscriminator (cyclomatic 25) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3580— DefaultCodegen.recursiveGetDiscriminator has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AbstractOpenApiEndpointVisitor.readResponse (cyclomatic 25) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1551— AbstractOpenApiEndpointVisitor.readResponse has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ConvertUtils.toValueMap (cyclomatic 25) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:169— ConvertUtils.toValueMap has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.populateSchemaProperties (cyclomatic 25) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1911— SchemaDefinitionUtils.populateSchemaProperties has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.processPropertyElements (cyclomatic 25) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3096— SchemaDefinitionUtils.processPropertyElements has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.postProcessAllModels (cyclomatic 24) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:523— DefaultCodegen.postProcessAllModels has cyclomatic complexity 24 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
DefaultGenerator.generateSupportingFiles (cyclomatic 24) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1097— DefaultGenerator.generateSupportingFiles has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SpringActuatorConfigUtils.setEndpointProperty (cyclomatic 23) openapi/src/main/java/io/micronaut/openapi/visitor/management/SpringActuatorConfigUtils.java:104— SpringActuatorConfigUtils.setEndpointProperty has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AbstractOpenApiEndpointVisitor.processExtraBodyParameters (cyclomatic 23) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:672— AbstractOpenApiEndpointVisitor.processExtraBodyParameters has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AbstractOpenApiEndpointVisitor.processParameterAnnotationInMethod (cyclomatic 23) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:821— AbstractOpenApiEndpointVisitor.processParameterAnnotationInMethod has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SecurityUtils.processMicronautSecurityConfig (cyclomatic 23) openapi/src/main/java/io/micronaut/openapi/visitor/SecurityUtils.java:96— SecurityUtils.processMicronautSecurityConfig has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ModelDeserializer.deserialize (cyclomatic 22) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ModelDeserializer.java:70— ModelDeserializer.deserialize has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ConvertUtils.parseByTypeAndFormat (cyclomatic 22) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:791— ConvertUtils.parseByTypeAndFormat has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Utils.getJavaEnumConvertFun (cyclomatic 21) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:788— Utils.getJavaEnumConvertFun has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: Utils.isPrimitive (cyclomatic 25) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
DefaultCodegen.createDiscriminator (cyclomatic 21) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3806— DefaultCodegen.createDiscriminator has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.updateDefaultToEmptyContainer (cyclomatic 21) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4482— DefaultCodegen.updateDefaultToEmptyContainer has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ProtoUtils.filterProtobufProperties (cyclomatic 21) openapi/src/main/java/io/micronaut/openapi/visitor/ProtoUtils.java:37— ProtoUtils.filterProtobufProperties has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.processSchemaProperty (cyclomatic 21) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1839— SchemaDefinitionUtils.processSchemaProperty has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AuditGraph.classify_package (cyclomatic 21) .github/scripts/vulnerability-audit-filter.py:92— AuditGraph.classify_package has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
GroupUtils.processMicronautVersionAndGroup (cyclomatic 20) openapi/src/main/java/io/micronaut/openapi/visitor/GroupUtils.java:64— GroupUtils.processMicronautVersionAndGroup has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.addVars (cyclomatic 19) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:6306— DefaultCodegen.addVars has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.getContent (cyclomatic 19) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8152— DefaultCodegen.getContent has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.updateAllModels (cyclomatic 19) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:680— DefaultCodegen.updateAllModels has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MnParamFormat.getStyleByFormatName (cyclomatic 19) openapi/src/main/java/io/micronaut/openapi/visitor/MnParamFormat.java:65— MnParamFormat.getStyleByFormatName has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
OpenApiNormalizeUtils.normalizeOperation (cyclomatic 19) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:130— OpenApiNormalizeUtils.normalizeOperation has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.handleUnwrapped (cyclomatic 19) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3516— SchemaDefinitionUtils.handleUnwrapped has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
UrlUtils.parsePathSegments (cyclomatic 19) openapi/src/main/java/io/micronaut/openapi/visitor/UrlUtils.java:161— UrlUtils.parsePathSegments has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MdToAdocConverter.convert (cyclomatic 18) openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/MdToAdocConverter.java:74— MdToAdocConverter.convert has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.setParameterExampleValue (cyclomatic 18) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2181— DefaultCodegen.setParameterExampleValue has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
AbstractOpenApiEndpointVisitor.processResponses (cyclomatic 18) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1900— AbstractOpenApiEndpointVisitor.processResponses has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ConvertUtils.addSecuritySchemes (cyclomatic 18) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:501— ConvertUtils.addSecuritySchemes has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ConvertUtils.treeToValue (cyclomatic 18) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:293— ConvertUtils.treeToValue has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
FileUtils.calcFinalFilename (cyclomatic 18) openapi/src/main/java/io/micronaut/openapi/visitor/FileUtils.java:151— FileUtils.calcFinalFilename has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiApplicationVisitor.divideOpenapiByGroupsAndVersions (cyclomatic 18) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:680— OpenApiApplicationVisitor.divideOpenapiByGroupsAndVersions has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiApplicationVisitor.processEndpoints (cyclomatic 18) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:1096— OpenApiApplicationVisitor.processEndpoints has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiApplicationVisitor.writeYamlToFile (cyclomatic 18) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:1030— OpenApiApplicationVisitor.writeYamlToFile has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiIncludeVisitor.visitClass (cyclomatic 18) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiIncludeVisitor.java:65— OpenApiIncludeVisitor.visitClass has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.doBindSchemaAnnotationValue (cyclomatic 18) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3220— SchemaDefinitionUtils.doBindSchemaAnnotationValue has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DefaultCodegen.fromSecurity (cyclomatic 17) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5850— DefaultCodegen.fromSecurity has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AbstractOpenApiEndpointVisitor.visitClass (cyclomatic 17) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:235— AbstractOpenApiEndpointVisitor.visitClass has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiApplicationVisitor.addOpenApiInfo (cyclomatic 17) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:779— OpenApiApplicationVisitor.addOpenApiInfo has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiExtraSchemaVisitor.visitClass (cyclomatic 17) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiExtraSchemaVisitor.java:132— OpenApiExtraSchemaVisitor.visitClass has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaUtils.mergeParameter (cyclomatic 17) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:583— SchemaUtils.mergeParameter has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
MicronautInlineModelResolver.flattenPathItemParameters (cyclomatic 16) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:300— MicronautInlineModelResolver.flattenPathItemParameters has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Utils.processGenericAnnotations (cyclomatic 16) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:152— Utils.processGenericAnnotations has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: Utils.isPrimitive (cyclomatic 25) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
DefaultCodegen.addProperties (cyclomatic 16) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3939— DefaultCodegen.addProperties has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.addRequiredVarsMap (cyclomatic 16) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8380— DefaultCodegen.addRequiredVarsMap has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultCodegen.divideOperationsByContentType (cyclomatic 16) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1212— DefaultCodegen.divideOperationsByContentType has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefaultGenerator.configureOpenAPIInfo (cyclomatic 16) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:344— DefaultGenerator.configureOpenAPIInfo has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
OpenApiNormalizeUtils.removeEmptyComponents (cyclomatic 16) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:497— OpenApiNormalizeUtils.removeEmptyComponents has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SchemaDefinitionUtils.setEnumValues (cyclomatic 16) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:715— SchemaDefinitionUtils.setEnumValues has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
UrlUtils.buildUrls (cyclomatic 16) openapi/src/main/java/io/micronaut/openapi/visitor/UrlUtils.java:57— UrlUtils.buildUrls has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SchemaDefinitionUtils.toValueMap (cognitive 399) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1376— SchemaDefinitionUtils.toValueMap has cognitive complexity 399 (threshold 15). Drivers by points: if/else 77 (265 pts), loops 13 (81 pts), error handling 4 (27 pts), ternaries 3 (17 pts), boolean chains 9 (nesting depth added 293). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SchemaDefinitionUtils.resolveSchema (cognitive 347) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:811— SchemaDefinitionUtils.resolveSchema has cognitive complexity 347 (threshold 15). Drivers by points: if/else 113 (258 pts), boolean chains 40, ternaries 9 (32 pts), loops 4 (17 pts) (nesting depth added 181). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SchemaUtils.appendSchema (cognitive 275) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:738— SchemaUtils.appendSchema has cognitive complexity 275 (threshold 15). Drivers by points: if/else 138 (206 pts), boolean chains 69 (nesting depth added 68). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AbstractOpenApiEndpointVisitor.processMethodParameterAnnotation (cognitive 184) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1170— AbstractOpenApiEndpointVisitor.processMethodParameterAnnotation has cognitive complexity 184 (threshold 15). Drivers by points: if/else 56 (136 pts), loops 4 (19 pts), boolean chains 16, ternaries 3 (7 pts), error handling 2 (6 pts) (nesting depth added 103). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DefaultCodegen.fromOperation (cognitive 170) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4853— DefaultCodegen.fromOperation has cognitive complexity 170 (threshold 15). Drivers by points: if/else 49 (103 pts), loops 13 (35 pts), boolean chains 26, ternaries 4 (6 pts) (nesting depth added 78). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SchemaUtils.copyOpenApi (cognitive 160) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1166— SchemaUtils.copyOpenApi has cognitive complexity 160 (threshold 15). Drivers by points: if/else 54 (112 pts), loops 11 (35 pts), boolean chains 13 (nesting depth added 82). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.getSchemaDefinition (cognitive 150) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:361— SchemaDefinitionUtils.getSchemaDefinition has cognitive complexity 150 (threshold 15). Drivers by points: if/else 49 (132 pts), boolean chains 13, ternaries 2 (5 pts) (nesting depth added 86). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
AbstractOpenApiEndpointVisitor.readOperations (cognitive 148) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1732— AbstractOpenApiEndpointVisitor.readOperations has cognitive complexity 148 (threshold 15). Drivers by points: if/else 28 (123 pts), loops 4 (18 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 110). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Utils.genericAnnotations (cognitive 147) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:230— Utils.genericAnnotations has cognitive complexity 147 (threshold 15). Drivers by points: if/else 55 (123 pts), boolean chains 19, error handling 2 (4 pts), ternaries 1 (nesting depth added 70). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SchemaDefinitionUtils.processSchemaAnn (cognitive 130) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2344— SchemaDefinitionUtils.processSchemaAnn has cognitive complexity 130 (threshold 15). Drivers by points: if/else 70 (111 pts), loops 3 (8 pts), ternaries 4 (6 pts), boolean chains 5 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaUtils.replaceOrAppendOperation (cognitive 124) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1372— SchemaUtils.replaceOrAppendOperation has cognitive complexity 124 (threshold 15). Drivers by points: if/else 35 (95 pts), boolean chains 15, loops 3 (14 pts) (nesting depth added 71). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MicronautCodeGeneratorEntryPoint.configureOptions (cognitive 112) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:128— MicronautCodeGeneratorEntryPoint.configureOptions has cognitive complexity 112 (threshold 15). Drivers by points: if/else 49 (91 pts), boolean chains 21 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.fromProperty (cognitive 110) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4165— DefaultCodegen.fromProperty has cognitive complexity 110 (threshold 15). Drivers by points: if/else 65 (92 pts), boolean chains 15, loops 1 (2 pts), error handling 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.updateModelForComposedSchema (cognitive 110) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2853— DefaultCodegen.updateModelForComposedSchema has cognitive complexity 110 (threshold 15). Drivers by points: if/else 38 (85 pts), loops 5 (14 pts), boolean chains 10, ternaries 1 (nesting depth added 56). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MicronautInlineModelResolver.gatherInlineModels (cognitive 106) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:360— MicronautInlineModelResolver.gatherInlineModels has cognitive complexity 106 (threshold 15). Drivers by points: if/else 38 (88 pts), loops 4 (12 pts), boolean chains 6 (nesting depth added 58). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DefaultCodegen.preprocessOpenAPI (cognitive 98) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1087— DefaultCodegen.preprocessOpenAPI has cognitive complexity 98 (threshold 15). Drivers by points: if/else 24 (73 pts), loops 7 (22 pts), boolean chains 3 (nesting depth added 64). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
AbstractOpenApiEndpointVisitor.processParameter (cognitive 96) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:899— AbstractOpenApiEndpointVisitor.processParameter has cognitive complexity 96 (threshold 15). Drivers by points: if/else 32 (72 pts), boolean chains 14, ternaries 3 (6 pts), loops 1 (4 pts) (nesting depth added 46). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DefaultCodegen.fromParameter (cognitive 91) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5517— DefaultCodegen.fromParameter has cognitive complexity 91 (threshold 15). Drivers by points: if/else 56 (73 pts), boolean chains 14, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 19). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
AbstractOpenApiEndpointVisitor.visitMethod (cognitive 90) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:454— AbstractOpenApiEndpointVisitor.visitMethod has cognitive complexity 90 (threshold 15). Drivers by points: if/else 31 (70 pts), loops 6 (16 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConvertUtils.toValueMap (cognitive 89) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:169— ConvertUtils.toValueMap has cognitive complexity 89 (threshold 15). Drivers by points: if/else 21 (43 pts), loops 7 (42 pts), ternaries 1 (4 pts) (nesting depth added 60). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DefaultGenerator.generateApis (cognitive 82) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:702— DefaultGenerator.generateApis has cognitive complexity 82 (threshold 15). Drivers by points: if/else 25 (62 pts), loops 6 (12 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultGenerator.generateWebhooks (cognitive 80) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:864— DefaultGenerator.generateWebhooks has cognitive complexity 80 (threshold 15). Drivers by points: if/else 24 (60 pts), loops 6 (12 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
NumberUtils.isCreatable (cognitive 78) openapi/src/main/java/io/micronaut/openapi/visitor/NumberUtils.java:51— NumberUtils.isCreatable has cognitive complexity 78 (threshold 15). Drivers by points: if/else 23 (48 pts), boolean chains 22, loops 3 (7 pts), ternaries 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiNormalizeUtils.normalizeSchema (cognitive 77) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:282— OpenApiNormalizeUtils.normalizeSchema has cognitive complexity 77 (threshold 15). Drivers by points: if/else 18 (48 pts), boolean chains 11, error handling 2 (6 pts), loops 2 (6 pts), ternaries 2 (6 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GeneratorUtils.addEnumExtensions (cognitive 69) openapi/src/main/java/io/micronaut/openapi/visitor/GeneratorUtils.java:139— GeneratorUtils.addEnumExtensions has cognitive complexity 69 (threshold 15). Drivers by points: if/else 28 (52 pts), boolean chains 11, loops 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultGenerator.generateModels (cognitive 67) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:480— DefaultGenerator.generateModels has cognitive complexity 67 (threshold 15). Drivers by points: if/else 21 (46 pts), loops 5 (12 pts), boolean chains 4, error handling 2 (4 pts), ternaries 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiApplicationVisitor.mergeAdditionalOpenApiFiles (cognitive 67) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:264— OpenApiApplicationVisitor.mergeAdditionalOpenApiFiles has cognitive complexity 67 (threshold 15). Drivers by points: if/else 22 (45 pts), error handling 3 (9 pts), ternaries 2 (6 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiNormalizeUtils.unwrapAllOff (cognitive 65) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:636— OpenApiNormalizeUtils.unwrapAllOff has cognitive complexity 65 (threshold 15). Drivers by points: if/else 27 (56 pts), boolean chains 6, loops 3 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AbstractOpenApiEndpointVisitor.processParameterAnnotationInMethod (cognitive 62) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:821— AbstractOpenApiEndpointVisitor.processParameterAnnotationInMethod has cognitive complexity 62 (threshold 15). Drivers by points: if/else 14 (46 pts), loops 3 (10 pts), ternaries 4, boolean chains 2 (nesting depth added 39). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
AbstractOpenApiEndpointVisitor.processResponses (cognitive 61) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1900— AbstractOpenApiEndpointVisitor.processResponses has cognitive complexity 61 (threshold 15). Drivers by points: if/else 13 (35 pts), loops 4 (18 pts), ternaries 1 (4 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
OpenApiEndpointVisitor.visitClass (cognitive 61) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiEndpointVisitor.java:134— OpenApiEndpointVisitor.visitClass has cognitive complexity 61 (threshold 15). Drivers by points: if/else 27 (46 pts), ternaries 3 (10 pts), boolean chains 5 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.bindSchemaForElement (cognitive 60) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1244— SchemaDefinitionUtils.bindSchemaForElement has cognitive complexity 60 (threshold 15). Drivers by points: if/else 27 (41 pts), boolean chains 18, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.fromRequestBody (cognitive 59) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8230— DefaultCodegen.fromRequestBody has cognitive complexity 59 (threshold 15). Drivers by points: if/else 38 (54 pts), boolean chains 4, ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.discriminatorFound (cognitive 58) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3480— DefaultCodegen.discriminatorFound has cognitive complexity 58 (threshold 15). Drivers by points: if/else 16 (42 pts), loops 3 (9 pts), boolean chains 7 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AbstractViewConfig.fromProperties (cognitive 58) openapi/src/main/java/io/micronaut/openapi/view/AbstractViewConfig.java:185— AbstractViewConfig.fromProperties has cognitive complexity 58 (threshold 15). Drivers by points: if/else 19 (43 pts), boolean chains 6, ternaries 2 (6 pts), loops 2 (3 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.fromFormProperty (cognitive 57) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7657— DefaultCodegen.fromFormProperty has cognitive complexity 57 (threshold 15). Drivers by points: if/else 37 (49 pts), boolean chains 4, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.postProcessAllModels (cognitive 57) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:523— DefaultCodegen.postProcessAllModels has cognitive complexity 57 (threshold 15). Drivers by points: loops 16 (37 pts), if/else 6 (19 pts), boolean chains 1 (nesting depth added 34). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
DefaultCodegen.recursiveGetDiscriminator (cognitive 57) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3580— DefaultCodegen.recursiveGetDiscriminator has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (43 pts), loops 4 (10 pts), boolean chains 4 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultGenerator.processOperation (cognitive 57) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1562— DefaultGenerator.processOperation has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (35 pts), loops 6 (15 pts), boolean chains 4, error handling 1 (2 pts), ternaries 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.fromResponse (cognitive 56) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5207— DefaultCodegen.fromResponse has cognitive complexity 56 (threshold 15). Drivers by points: if/else 37 (46 pts), boolean chains 6, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
AbstractOpenApiEndpointVisitor.processBody (cognitive 56) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1419— AbstractOpenApiEndpointVisitor.processBody has cognitive complexity 56 (threshold 15). Drivers by points: if/else 23 (45 pts), boolean chains 8, loops 2, ternaries 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MicronautInlineModelResolver.flattenProperties (cognitive 54) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:906— MicronautInlineModelResolver.flattenProperties has cognitive complexity 54 (threshold 15). Drivers by points: if/else 23 (46 pts), boolean chains 6, loops 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AuditGraph.classify_package (cognitive 54) .github/scripts/vulnerability-audit-filter.py:92— AuditGraph.classify_package has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (40 pts), loops 4 (8 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.processPropertyElements (cognitive 51) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3096— SchemaDefinitionUtils.processPropertyElements has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (34 pts), loops 3 (9 pts), boolean chains 8 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SchemaDefinitionUtils.processJakartaValidationAnnotations (cognitive 50) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2809— SchemaDefinitionUtils.processJakartaValidationAnnotations has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (29 pts), loops 14, boolean chains 7 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SpringActuatorConfigUtils.setEndpointProperty (cognitive 49) openapi/src/main/java/io/micronaut/openapi/visitor/management/SpringActuatorConfigUtils.java:104— SpringActuatorConfigUtils.setEndpointProperty has cognitive complexity 49 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 4 (20 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JavaMicronautClientCodegen.processOpts (cognitive 48) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:242— JavaMicronautClientCodegen.processOpts has cognitive complexity 48 (threshold 15). Drivers by points: if/else 25 (43 pts), boolean chains 5 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
KotlinMicronautClientCodegen.processOpts (cognitive 48) openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:256— KotlinMicronautClientCodegen.processOpts has cognitive complexity 48 (threshold 15). Drivers by points: if/else 25 (43 pts), boolean chains 5 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.getContent (cognitive 48) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8152— DefaultCodegen.getContent has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 3 (9 pts), ternaries 2 (8 pts), boolean chains 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AbstractOpenApiEndpointVisitor.processExtraBodyParameters (cognitive 48) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:672— AbstractOpenApiEndpointVisitor.processExtraBodyParameters has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (35 pts), boolean chains 5, loops 2 (5 pts), ternaries 1 (3 pts) (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DefaultGenerator.generateSupportingFiles (cognitive 47) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1097— DefaultGenerator.generateSupportingFiles has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 6, ternaries 2 (6 pts), error handling 2 (5 pts), loops 1 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SchemaDefinitionUtils.populateSchemaProperties (cognitive 46) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1911— SchemaDefinitionUtils.populateSchemaProperties has cognitive complexity 46 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 7, loops 3 (7 pts), error handling 2 (5 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.processSuperTypes (cognitive 46) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2020— SchemaDefinitionUtils.processSuperTypes has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17 (33 pts), boolean chains 9, loops 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.getOneOfAnyOfDescendants (cognitive 45) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3687— DefaultCodegen.getOneOfAnyOfDescendants has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (40 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ProtoUtils.filterProtobufProperties (cognitive 45) openapi/src/main/java/io/micronaut/openapi/visitor/ProtoUtils.java:37— ProtoUtils.filterProtobufProperties has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (33 pts), boolean chains 7, loops 2 (5 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.fromModel (cognitive 44) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3220— DefaultCodegen.fromModel has cognitive complexity 44 (threshold 15). Drivers by points: if/else 27 (30 pts), loops 4 (9 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DefaultCodegen.addVars (cognitive 43) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:6306— DefaultCodegen.addVars has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (36 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SpringActuatorConfigUtils.mergeWithActuatorProperties (cognitive 43) openapi/src/main/java/io/micronaut/openapi/visitor/management/SpringActuatorConfigUtils.java:165— SpringActuatorConfigUtils.mergeWithActuatorProperties has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 6, loops 4 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.processArraySchemaAnn (cognitive 42) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2231— SchemaDefinitionUtils.processArraySchemaAnn has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (30 pts), ternaries 3 (8 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.getAllOfDescendants (cognitive 41) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3751— DefaultCodegen.getAllOfDescendants has cognitive complexity 41 (threshold 15). Drivers by points: if/else 7 (31 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
GroupUtils.processMicronautVersionAndGroup (cognitive 41) openapi/src/main/java/io/micronaut/openapi/visitor/GroupUtils.java:64— GroupUtils.processMicronautVersionAndGroup has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (22 pts), ternaries 4 (10 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.processSchemaProperty (cognitive 41) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1839— SchemaDefinitionUtils.processSchemaProperty has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (24 pts), ternaries 4 (12 pts), boolean chains 5 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MdToAdocConverter.convert (cognitive 40) openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/MdToAdocConverter.java:74— MdToAdocConverter.convert has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 6 (18 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.generateExamplePath (cognitive 40) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2090— DefaultCodegen.generateExamplePath has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (37 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DefaultCodegen.getPrimitiveType (cognitive 40) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2593— DefaultCodegen.getPrimitiveType has cognitive complexity 40 (threshold 15). Drivers by points: if/else 34 (39 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DefaultCodegen.updateAllModels (cognitive 39) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:680— DefaultCodegen.updateAllModels has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 6 (10 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.createDiscriminator (cognitive 38) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3806— DefaultCodegen.createDiscriminator has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 4 (9 pts), boolean chains 5 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AbstractOpenApiEndpointVisitor.visitClass (cognitive 38) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:235— AbstractOpenApiEndpointVisitor.visitClass has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 3 (10 pts), boolean chains 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiIncludeVisitor.visitClass (cognitive 38) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiIncludeVisitor.java:65— OpenApiIncludeVisitor.visitClass has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (11 pts), ternaries 4 (8 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.computeNameWithGenerics (cognitive 38) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3387— SchemaDefinitionUtils.computeNameWithGenerics has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 2 (7 pts), ternaries 1 (6 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SchemaDefinitionUtils.setEnumValues (cognitive 38) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:715— SchemaDefinitionUtils.setEnumValues has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (22 pts), error handling 2 (8 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaUtils.mergeOperations (cognitive 37) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:334— SchemaUtils.mergeOperations has cognitive complexity 37 (threshold 15). Drivers by points: if/else 24 (29 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
MicronautInlineModelResolver.isModelNeeded (cognitive 36) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:662— MicronautInlineModelResolver.isModelNeeded has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 12, loops 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiApplicationVisitor.writeYamlToFile (cognitive 36) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:1030— OpenApiApplicationVisitor.writeYamlToFile has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 5 (12 pts), boolean chains 3, error handling 2 (3 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiNormalizeUtils.normalizeOperation (cognitive 36) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:130— OpenApiNormalizeUtils.normalizeOperation has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (31 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SecurityUtils.processMicronautSecurityConfig (cognitive 36) openapi/src/main/java/io/micronaut/openapi/visitor/SecurityUtils.java:96— SecurityUtils.processMicronautSecurityConfig has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JavaMicronautClientCodegen.calcRetryableAnnotation (cognitive 35) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:393— JavaMicronautClientCodegen.calcRetryableAnnotation has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 11, boolean chains 8 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
KotlinMicronautClientCodegen.calcRetryableAnnotation (cognitive 35) openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:417— KotlinMicronautClientCodegen.calcRetryableAnnotation has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 11, boolean chains 8 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.fromSecurity (cognitive 35) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5850— DefaultCodegen.fromSecurity has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultGenerator.configureGeneratorProperties (cognitive 35) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:227— DefaultGenerator.configureGeneratorProperties has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (22 pts), ternaries 9, boolean chains 3, error handling 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
ConvertUtils.getTypeAndFormatByClass (cognitive 35) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:713— ConvertUtils.getTypeAndFormatByClass has cognitive complexity 35 (threshold 15). Drivers by points: if/else 21 (24 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
OpenApiExtraSchemaVisitor.visitClass (cognitive 35) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiExtraSchemaVisitor.java:132— OpenApiExtraSchemaVisitor.visitClass has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 4 (11 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultGenerator.getAuthMethods (cognitive 34) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1852— DefaultGenerator.getAuthMethods has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (30 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
UrlUtils.parsePathSegments (cognitive 34) openapi/src/main/java/io/micronaut/openapi/visitor/UrlUtils.java:161— UrlUtils.parsePathSegments has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 3 (8 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AbstractOpenApiEndpointVisitor.readResponse (cognitive 33) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1551— AbstractOpenApiEndpointVisitor.readResponse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 10, loops 1 (2 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConvertUtils.addSecuritySchemes (cognitive 33) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:501— ConvertUtils.addSecuritySchemes has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileUtils.calcFinalFilename (cognitive 33) openapi/src/main/java/io/micronaut/openapi/visitor/FileUtils.java:151— FileUtils.calcFinalFilename has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 6 (15 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaUtils.processExtensions (cognitive 33) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:207— SchemaUtils.processExtensions has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (20 pts), error handling 2 (10 pts), boolean chains 1, loops 1, ternaries 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiApplicationVisitor.addOpenApiInfo (cognitive 32) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:779— OpenApiApplicationVisitor.addOpenApiInfo has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 4 (8 pts), boolean chains 4, loops 1 (3 pts), error handling 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiApplicationVisitor.divideOpenapiByGroupsAndVersions (cognitive 31) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:680— OpenApiApplicationVisitor.divideOpenapiByGroupsAndVersions has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 5 (9 pts), boolean chains 6 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ModelDeserializer.deserialize (cognitive 29) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ModelDeserializer.java:70— ModelDeserializer.deserialize has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DefaultCodegen.parseDefaultToEmptyContainer (cognitive 29) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4519— DefaultCodegen.parseDefaultToEmptyContainer has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
1.getOverrideConfigLocations (cognitive 29) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:1442— 1.getOverrideConfigLocations has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (17 pts), ternaries 2 (7 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
TagUtils.generateTag (cognitive 29) openapi/src/main/java/io/micronaut/openapi/visitor/TagUtils.java:251— TagUtils.generateTag has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TagUtils.readTags (cognitive 29) openapi/src/main/java/io/micronaut/openapi/visitor/TagUtils.java:115— TagUtils.readTags has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (9 pts), boolean chains 1, ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MicronautInlineModelResolver.flattenPathItemParameters (cognitive 28) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:300— MicronautInlineModelResolver.flattenPathItemParameters has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 2 (5 pts), boolean chains 3, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.setParameterBooleanFlagWithCodegenProperty (cognitive 28) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:6964— DefaultCodegen.setParameterBooleanFlagWithCodegenProperty has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24 (25 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SchemaDefinitionUtils.handleUnwrapped (cognitive 28) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3516— SchemaDefinitionUtils.handleUnwrapped has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (3 pts), ternaries 3, boolean chains 2, error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.divideOperationsByContentType (cognitive 27) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1212— DefaultCodegen.divideOperationsByContentType has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConvertUtils.parseByTypeAndFormat (cognitive 27) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:791— ConvertUtils.parseByTypeAndFormat has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19 (22 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
OpenApiApplicationVisitor.processEndpoints (cognitive 27) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:1096— OpenApiApplicationVisitor.processEndpoints has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, ternaries 2 (4 pts), loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MicronautInlineModelResolver.flattenParameters (cognitive 26) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:252— MicronautInlineModelResolver.flattenParameters has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 2 (5 pts), boolean chains 3, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.addBodyModelSchema (cognitive 26) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7847— DefaultCodegen.addBodyModelSchema has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.addProperties (cognitive 26) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3939— DefaultCodegen.addProperties has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (9 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.addRequiredVarsMap (cognitive 26) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8380— DefaultCodegen.addRequiredVarsMap has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.updateDefaultToEmptyContainer (cognitive 26) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4482— DefaultCodegen.updateDefaultToEmptyContainer has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 8 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ToAsciiDocSerializer.printWithAbbreviations (cognitive 25) openapi-adoc/src/main/java/io/micronaut/openapi/adoc/md/ToAsciiDocSerializer.java:675— ToAsciiDocSerializer.printWithAbbreviations has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConvertUtils.treeToValue (cognitive 25) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:293— ConvertUtils.treeToValue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 3 (5 pts), ternaries 4 (5 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TagUtils.processOpenApiAnnotation (cognitive 25) openapi/src/main/java/io/micronaut/openapi/visitor/TagUtils.java:75— TagUtils.processOpenApiAnnotation has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.setParameterEncodingValues (cognitive 24) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2301— DefaultCodegen.setParameterEncodingValues has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ConfigUtils.setEndpointProperty (cognitive 24) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:970— ConfigUtils.setEndpointProperty has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConfigUtils.setGroupProperty (cognitive 24) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:818— ConfigUtils.setGroupProperty has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (6 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.handleMethodResponse (cognitive 23) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4781— DefaultCodegen.handleMethodResponse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultGenerator.configureOpenAPIInfo (cognitive 23) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:344— DefaultGenerator.configureOpenAPIInfo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
SchemaDefinitionUtils.doBindSchemaAnnotationValue (cognitive 23) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3220— SchemaDefinitionUtils.doBindSchemaAnnotationValue has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
SchemaDefinitionUtils.processSchemasArray (cognitive 23) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2634— SchemaDefinitionUtils.processSchemasArray has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
UrlUtils.buildUrls (cognitive 23) openapi/src/main/java/io/micronaut/openapi/visitor/UrlUtils.java:57— UrlUtils.buildUrls has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Utils.findEnumVar (cognitive 22) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:883— Utils.findEnumVar has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Utils.getJavaEnumConvertFun (cognitive 22) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:788— Utils.getJavaEnumConvertFun has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 8 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
OpenApiNormalizeUtils.normalizeOpenApi (cognitive 22) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:65— OpenApiNormalizeUtils.normalizeOpenApi has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MicronautInlineModelResolver.flattenPaths (cognitive 21) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:133— MicronautInlineModelResolver.flattenPaths has cognitive complexity 21 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 3 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
ConfigUtils.getExpandableProperties (cognitive 21) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:551— ConfigUtils.getExpandableProperties has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 4 (6 pts), error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiNormalizeUtils.normalizeContent (cognitive 21) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:221— OpenApiNormalizeUtils.normalizeContent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiNormalizeUtils.removeDuplicateSchemasInOneOf (cognitive 21) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:405— OpenApiNormalizeUtils.removeDuplicateSchemasInOneOf has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.addTypeArgsAnnotations (cognitive 21) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3436— SchemaDefinitionUtils.addTypeArgsAnnotations has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (5 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.readAllInterfaces (cognitive 21) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2118— SchemaDefinitionUtils.readAllInterfaces has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ModelDeserializer.deserializeJsonSchema (cognitive 20) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ModelDeserializer.java:172— ModelDeserializer.deserializeJsonSchema has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.getOrGenerateOperationId (cognitive 20) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5988— DefaultCodegen.getOrGenerateOperationId has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.postProcessModelsEnum (cognitive 20) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:864— DefaultCodegen.postProcessModelsEnum has cognitive complexity 20 (threshold 15). Drivers by points: loops 9 (17 pts), if/else 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
AbstractOpenApiVisitor.readExtensions (cognitive 20) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiVisitor.java:90— AbstractOpenApiVisitor.readExtensions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.setSchemaDescription (cognitive 20) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2197— SchemaDefinitionUtils.setSchemaDescription has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SecurityUtils.processSecurityAccess (cognitive 20) openapi/src/main/java/io/micronaut/openapi/visitor/SecurityUtils.java:175— SecurityUtils.processSecurityAccess has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.updateRequestBodyForArray (cognitive 19) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8039— DefaultCodegen.updateRequestBodyForArray has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConfigUtils.getCustomSchema (cognitive 19) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:264— ConfigUtils.getCustomSchema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), ternaries 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DynamicRefUtils.resolveGenericBinding (cognitive 19) openapi/src/main/java/io/micronaut/openapi/visitor/DynamicRefUtils.java:469— DynamicRefUtils.resolveGenericBinding has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MnParamFormat.getStyleByFormatName (cognitive 19) openapi/src/main/java/io/micronaut/openapi/visitor/MnParamFormat.java:65— MnParamFormat.getStyleByFormatName has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 8, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
OpenApiExtraSchemaVisitor.finish (cognitive 19) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiExtraSchemaVisitor.java:86— OpenApiExtraSchemaVisitor.finish has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 5 (9 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiNormalizeUtils.normalizeSchemas (cognitive 19) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:457— OpenApiNormalizeUtils.normalizeSchemas has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
UrlUtils.appendSegment (cognitive 19) openapi/src/main/java/io/micronaut/openapi/visitor/UrlUtils.java:109— UrlUtils.appendSegment has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
vulnerability-audit-filter.main (cognitive 19) .github/scripts/vulnerability-audit-filter.py:206— vulnerability-audit-filter.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
CallbackSerializer.serialize (cognitive 18) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/CallbackSerializer.java:35— CallbackSerializer.serialize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (6 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MicronautInlineModelResolver.flattenComposedChildren (cognitive 18) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:803— MicronautInlineModelResolver.flattenComposedChildren has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Utils.processEnumExt (cognitive 18) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:853— Utils.processEnumExt has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Utils.processGenericAnnotations (cognitive 18) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:152— Utils.processGenericAnnotations has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, ternaries 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DefaultCodegen.fromRequestBodyToFormParameters (cognitive 18) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7594— DefaultCodegen.fromRequestBodyToFormParameters has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultGenerator.generateModelTests (cognitive 18) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:412— DefaultGenerator.generateModelTests has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
OpenApiToAdocConverter.getFreemarkerConfig (cognitive 17) openapi-adoc/src/main/java/io/micronaut/openapi/adoc/OpenApiToAdocConverter.java:164— OpenApiToAdocConverter.getFreemarkerConfig has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DefaultCodegen.setParameterExampleValue (cognitive 17) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:2181— DefaultCodegen.setParameterExampleValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
OpenApiOperationsPostProcessor.processOperations (cognitive 17) openapi/src/main/java/io/micronaut/openapi/postprocessors/OpenApiOperationsPostProcessor.java:43— OpenApiOperationsPostProcessor.processOperations has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AbstractOpenApiEndpointVisitor.processBodyParameter (cognitive 17) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1128— AbstractOpenApiEndpointVisitor.processBodyParameter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConvertUtils.fixContentForGroovy (cognitive 17) openapi/src/main/java/io/micronaut/openapi/visitor/ConvertUtils.java:407— ConvertUtils.fixContentForGroovy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaDefinitionUtils.resolveArraySchemaAnnotationValues (cognitive 17) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1700— SchemaDefinitionUtils.resolveArraySchemaAnnotationValues has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaUtils.mergeContent (cognitive 17) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:672— SchemaUtils.mergeContent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SecuritySchemeDeserializer.deserialize (cognitive 16) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/SecuritySchemeDeserializer.java:41— SecuritySchemeDeserializer.deserialize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MicronautCodeGeneratorEntryPoint.configureJavaClientOptions (cognitive 16) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:379— MicronautCodeGeneratorEntryPoint.configureJavaClientOptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (MicronautCodeGeneratorEntryPoint.configureKotlinClientOptions) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
MicronautCodeGeneratorEntryPoint.configureKotlinClientOptions (cognitive 16) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:453— MicronautCodeGeneratorEntryPoint.configureKotlinClientOptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (MicronautCodeGeneratorEntryPoint.configureJavaClientOptions) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
Utils.processMultipartBody (cognitive 16) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:84— Utils.processMultipartBody has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 2 (8 pts), if/else 3 (6 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.fromServerVariables (cognitive 16) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8565— DefaultCodegen.fromServerVariables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.handleConstantParams (cognitive 16) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:9065— DefaultCodegen.handleConstantParams has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCodegen.setAddProps (cognitive 16) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3424— DefaultCodegen.setAddProps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
DefaultCodegen.updateRequestBodyForMap (cognitive 16) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7927— DefaultCodegen.updateRequestBodyForMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConfigUtils.getAdocProperties (cognitive 16) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:617— ConfigUtils.getAdocProperties has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (5 pts), error handling 1 (2 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GroupUtils.processGroups (cognitive 16) openapi/src/main/java/io/micronaut/openapi/visitor/GroupUtils.java:148— GroupUtils.processGroups has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (7 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SchemaUtils.mergeParameter (cognitive 16) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:583— SchemaUtils.mergeParameter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Near-duplicate member pair (138 shared lines) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:702— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:702-862 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:864-1021 — These two members are variants of one another: 138 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (64 shared lines) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:291— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:291-369 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java:282-361 — These two members are variants of one another: 64 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Members sharing a duplicated core (7 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (7 members, 50+ identical tokens) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:334— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:334-436 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:438-487 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:489-530 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:532-581 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:583-638 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:640-670 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:672-712 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (4 members, 50+ identical tokens) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3199— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3199-3210 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4109-4119 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5207-5375 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8230-8378 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Edited copy of a member (150 corresponding lines) · ×1
Edited copy of a member (150 corresponding lines) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:242— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:242-391 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:256-415 — These two members are one piece of code written twice and then edited apart: 150 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (66 corresponding lines) · ×1
Edited copy of a member (66 corresponding lines) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:393— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:393-458 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:417-482 — These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (51 corresponding lines) · ×1
Edited copy of a member (51 corresponding lines) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:110— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:110-160 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:114-165 — These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (54 corresponding lines) · ×1
Edited copy of a member (54 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:551— openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:551-615 | openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:617-670 — These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (47 corresponding lines) · ×1
Edited copy of a member (47 corresponding lines) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:252— openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:252-298 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:300-351 — These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (31 corresponding lines) · ×1
Edited copy of a member (31 corresponding lines) openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:213— openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:213-243 | openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:254-290 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (43 corresponding lines) · ×1
Edited copy of a member (43 corresponding lines) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1675— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1675-1717 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:1719-1761 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (35 corresponding lines) · ×1
Edited copy of a member (35 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:221— openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:221-255 | openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiNormalizeUtils.java:457-495 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 26+ corresponding lines) · ×1
Edited copies of one member (3 members, 26+ corresponding lines) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ApiResponsesDeserializer.java:43— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ApiResponsesDeserializer.java:43-68 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/CallbackDeserializer.java:43-70 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/PathsDeserializer.java:43-69 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (28 corresponding lines) · ×1
Edited copy of a member (28 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/ContextUtils.java:103— openapi/src/main/java/io/micronaut/openapi/visitor/ContextUtils.java:103-130 | openapi/src/main/java/io/micronaut/openapi/visitor/ContextUtils.java:132-160 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (32 corresponding lines) · ×1
Edited copy of a member (32 corresponding lines) openapi/src/main/java/io/micronaut/openapi/view/AbstractViewConfig.java:137— openapi/src/main/java/io/micronaut/openapi/view/AbstractViewConfig.java:137-171 | openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:552-583 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (18 corresponding lines) · ×1
Edited copy of a member (18 corresponding lines) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/ApiResponsesSerializer.java:35— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/ApiResponsesSerializer.java:35-52 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/PathsSerializer.java:35-52 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (22 corresponding lines) · ×1
Edited copy of a member (22 corresponding lines) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4674— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4674-4695 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4702-4724 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (29 corresponding lines) · ×1
Edited copy of a member (29 corresponding lines) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4575— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4575-4603 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:4611-4640 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 21+ corresponding lines) · ×1
Edited copies of one member (4 members, 21+ corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:468— openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:468-488 | openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:494-514 | openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:516-536 | openapi/src/main/java/io/micronaut/openapi/visitor/ElementUtils.java:542-562 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (24 corresponding lines) · ×1
Edited copy of a member (24 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1706— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1706-1729 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:1731-1754 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (10 corresponding lines) · ×1
Edited copy of a member (10 corresponding lines) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ObjectMapperFactory.java:106— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ObjectMapperFactory.java:106-115 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/ObjectMapperFactory.java:127-136 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 10+ corresponding lines) · ×1
Edited copies of one member (3 members, 10+ corresponding lines) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/EncodingPropertyStyleEnumDeserializer.java:46— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/EncodingPropertyStyleEnumDeserializer.java:46-55 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/EncodingStyleEnumDeserializer.java:46-55 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/util/HeaderStyleEnumDeserializer.java:46-55 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 13+ corresponding lines) · ×1
Edited copies of one member (3 members, 13+ corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:801— openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:801-816 | openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:954-968 | openapi/src/main/java/io/micronaut/openapi/visitor/management/SpringActuatorConfigUtils.java:90-102 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (13 corresponding lines) · ×1
Edited copy of a member (13 corresponding lines) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1793— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1793-1805 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:1815-1829 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 11+ corresponding lines) · ×1
Edited copies of one member (3 members, 11+ corresponding lines) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/ExampleSerializer.java:44— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/ExampleSerializer.java:44-54 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/MediaTypeSerializer.java:44-54 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/Schema31Serializer.java:44-58 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (34 corresponding lines) · ×1
Edited copy of a member (34 corresponding lines) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:796— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:796-829 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:866-905 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (7 corresponding lines) · ×1
Edited copy of a member (7 corresponding lines) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:328— openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:328-334 | openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:1863-1869 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 5+ corresponding lines) · ×1
Edited copies of one member (3 members, 5+ corresponding lines) openapi/src/main/java/io/micronaut/openapi/view/OpenApiExplorerConfig.java:133— openapi/src/main/java/io/micronaut/openapi/view/OpenApiExplorerConfig.java:133-137 | openapi/src/main/java/io/micronaut/openapi/view/RapidocConfig.java:386-390 | openapi/src/main/java/io/micronaut/openapi/view/RedocConfig.java:149-153 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 7+ corresponding lines) · ×1
Edited copies of one member (3 members, 7+ corresponding lines) openapi/src/main/java/io/micronaut/openapi/view/RapidocConfig.java:183— openapi/src/main/java/io/micronaut/openapi/view/RapidocConfig.java:183-189 | openapi/src/main/java/io/micronaut/openapi/view/RedocConfig.java:120-126 | openapi/src/main/java/io/micronaut/openapi/view/SwaggerUIConfig.java:152-158 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Duplicated block (71 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:154— openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:154-224 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:257-327 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:225` calls `setRequiredPropertiesInConstructor` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorEntryPoint.java:328` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (62 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:259— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:259-320 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:278-339 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:259` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (52 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:811— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:811-862 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:970-1021 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:811` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (32 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:413— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:413-444 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:437-468 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:413` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (26–27 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5482— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5482-5508 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7701-7726 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:5482` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (31 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:772— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:772-802 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:931-961 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:772` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (25 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:339— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:339-363 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java:331-355 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegen.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautServerCodegen.java:339` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (24 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:575— openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:575-598 | openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:641-664 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:575` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (30 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:200— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:200-229 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:213-242 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:200` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (21–22 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:352— openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:352-372 | openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:399-420 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/Utils.java:352` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (27 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:134— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:134-160 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:139-165 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:134` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19–20 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3524— openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3524-3542 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3550-3569 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:3524` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (20 lines × 2) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:562— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:562-581 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:619-638 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:562` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (16 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:351— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:351-366 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:375-390 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:351` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14–15 lines × 2) openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:396— openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:396-409 | openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:426-440 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/view/OpenApiViewConfig.java:396` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 4) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:440— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:440-452 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:491-503 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:534-546 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:585-597 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (43 lines × 2) openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:727— openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:727-769 | openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:886-928 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java:727` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10–11 lines × 3) openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiVisitor.java:116— openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiVisitor.java:116-126 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:219-228 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:237-247 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiVisitor.java:116` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9–10 lines × 3) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:460— openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:460-469 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:497-505 | openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:517-525 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:460` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:470` calls `equals` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautInlineModelResolver.java:506` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (21 lines × 2) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:112— openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:112-132 | openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:116-136 — before extracting anything, compare `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java:137` calls `add`, `newBoolean` and `openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:134` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8–9 lines × 3) openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/MediaTypeSerializer.java:46— openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/MediaTypeSerializer.java:46-54 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/Schema31Serializer.java:50-58 | openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/SchemaSerializer.java:48-55 — before extracting anything, compare `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/MediaTypeSerializer.java` and `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/Schema31Serializer.java` as WHOLE FILES: 88% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/Schema31Serializer.java:50` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `value` to `MediaType` in one and `Schema` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/SchemaSerializer.java:46` calls `get$ref`, `isBlank` and `openapi-common/src/main/java/io/micronaut/openapi/swagger/core/jackson/MediaTypeSerializer.java:44` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7–8 lines × 3) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2087— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2087-2093 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2147-2154 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2157-2164 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:2087` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 3) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:328— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:328-334 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1894-1900 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:3270-3276 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:335` calls `setType` and `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1901` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 7) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:375— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:375-380 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:478-483 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:522-527 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:567-572 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:624-629 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:655-660 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:696-701 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:484` calls `setContent`, `mergeContent`, `getContent` and `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaUtils.java:529` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (3–5 lines × 3) openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:863— openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:863-867 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:872-876 | openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:1247-1249 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `openapi/src/main/java/io/micronaut/openapi/visitor/SchemaDefinitionUtils.java:863` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Low cohesion: OpenApiControllerVisitor (LCOM4 5) openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiControllerVisitor.java:78— OpenApiControllerVisitor's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
P12 · CI test-gate honesty· Coverage collected but not gated · ×1
Coverage collected but not gated — CI collects a coverage report but no step enforces a minimum — coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool's minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository's CI files AND its coverage configuration — the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited — matched against the threshold settings this check knows by name. A floor set in your coverage service's web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here.
X13 · Undrained process stream· Redirected process stream is never drained (deadlock) · ×1
Redirected process stream is never drained (deadlock) openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:8642— The JDK pipes both `stdout` and `stderr` of this child — no `redirectErrorStream`, `redirectError`, `redirectOutput` or `inheritIO` is set — and `p.waitFor()` is written before stdout and stderr is read, so nothing drains it while the parent waits. The JDK's own `Process` documentation warns that failing to read a child's output promptly "may cause the process to block, or even deadlock": once the child writes more than the pipe holds (measured on OpenJDK 25 / Linux: 60,000 bytes finishes, 70,000 hangs forever), it blocks on the write, never exits, and the wait never returns. Nothing fails loudly. Read every piped stream before (or while) waiting — a thread or `CompletableFuture` per stream — merge them with `redirectErrorStream(true)` and read the one stream before `waitFor`, or discard what you do not want with `redirectOutput`/`redirectError(ProcessBuilder.Redirect.DISCARD)` (or a file).
Duplicated predicate openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java:236— `!isOpenApiEnabled(context) || !isSpecGenerationEnabled(context)` appears character-identically in 7 files — openapi/src/main/java/io/micronaut/openapi/visitor/AbstractOpenApiEndpointVisitor.java, openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java, openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiEndpointVisitor.java, openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiExcludeVisitor.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:2537— `!model.vendorExtensions.containsKey("x-is-one-of-interface") || !Boolean.parseBoolean(model.vendorExtensions.get("x-is-one-of-interface").to…` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java:1158— `!mods.contains(ElementModifier.STATIC) && !mods.contains(ElementModifier.PRIVATE)` appears character-identically in 2 files — openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiApplicationVisitor.java, openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiIncludeVisitor.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:2028— `!param.isHeaderParam || (!implicitHeaders && !shouldBeImplicitHeader(param))` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java:212— `!removedParams.isEmpty() && !alreadyAddedMultipartBodyImport` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1078— `"Int".equalsIgnoreCase(datatype) || "Byte".equalsIgnoreCase(datatype) || "Short".equalsIgnoreCase(datatype) || "Integer".equalsIgnoreCase(da…` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1891— `"bigdecimal".equalsIgnoreCase(enumSchemaType) || "number".equalsIgnoreCase(enumSchemaType)` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1861— `"byte".equalsIgnoreCase(enumSchemaType) || ("integer".equalsIgnoreCase(enumSchemaType) && BYTE_FORMAT.equalsIgnoreCase(enumSchemaFormat)) ||…` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1883— `"double".equalsIgnoreCase(enumSchemaType) || ("number".equalsIgnoreCase(enumSchemaType) && DOUBLE_FORMAT.equalsIgnoreCase(enumSchemaFormat))` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1879— `"float".equalsIgnoreCase(enumSchemaType) || ("number".equalsIgnoreCase(enumSchemaType) && FLOAT_FORMAT.equalsIgnoreCase(enumSchemaFormat))` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1876— `"int".equalsIgnoreCase(enumSchemaType) || "integer".equalsIgnoreCase(enumSchemaType)` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1871— `"long".equalsIgnoreCase(enumSchemaType) || ("integer".equalsIgnoreCase(enumSchemaType) && FORMAT_LONG.equalsIgnoreCase(enumSchemaFormat)) ||…` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1866— `"short".equalsIgnoreCase(enumSchemaType) || ("integer".equalsIgnoreCase(enumSchemaType) && FORMAT_SHORT.equalsIgnoreCase(enumSchemaFormat)) …` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:2160— `(isListWrapper || fluxForArrays) && op.isArray && op.returnProperty.items != null` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:2928— `(isModel != null && isModel) || (isModel == null && !languageSpecificPrimitives.contains(dataType))` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:2203— `(notDefaultRsCode && (!generateHttpResponseOnlyForMultipleStatuses || successResponsesCount > 1)) || hasNonMappedHeaders` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:2686— `(property.defaultValue != null && !property.defaultValue.equals(NULL_STRING)) || (defaultValueInit != null && !defaultValueInit.equals(NULL_…` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1453— `(t.getExtensions() == null || !t.getExtensions().containsKey("x-autogenerated")) && t.getName().equals(tag)` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:2212— `(withHttpResponseWrapper == null && (generateHttpResponseAlways || generateHttpResponseWhereRequired && requiresHttpResponse)) || (withHttpR…` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi/src/main/java/io/micronaut/openapi/view/ScalarConfig.java:143— `CollectionUtils.isEmpty(urls) || (withUrls != null && !withUrls)` appears character-identically in 2 files — openapi/src/main/java/io/micronaut/openapi/view/ScalarConfig.java, openapi/src/main/java/io/micronaut/openapi/view/SwaggerUIConfig.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1787— `INTEGER_TYPE.equals(schemaType) && (FORMAT_INT16.equals(format) || FORMAT_SHORT.equals(format))` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1772— `INTEGER_TYPE.equals(schemaType) && (FORMAT_INT8.equals(format) || BYTE_FORMAT.equals(format))` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1132— `ModelUtils.isMapSchema(schema) && !ModelUtils.isComposedSchema(schema)` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1478— `Objects.equals(opParam.getName(), param.getName()) && Objects.equals(opParam.get$ref(), param.get$ref())` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java:1980— `StringUtils.isNotBlank(implicitHeadersRegex) && parameter.baseName.matches(implicitHeadersRegex)` appears character-identically in 2 files — openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautJavaCodegen.java, openapi-generator/src/main/java/io/micronaut/openapi/generator/AbstractMicronautKotlinCodegen.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Fat interface: JavaMicronautClientOptionsBuilder (30 abstract methods) openapi-generator/src/main/java/io/micronaut/openapi/generator/JavaMicronautClientOptionsBuilder.java:24— `JavaMicronautClientOptionsBuilder` declares 30 abstract methods: `withAdditionalClientTypeAnnotations`, `withAuthConfigName`, `withAuthFilter`, `withAuthFilterClientIds`, `withAuthFilterExcludedClientIds`, `withAuthorization`, `withAuthorizationFilterPattern`, `withAuthorizationFilterPatternStyle`, `withBasePathSeparator`, `withClientId`, `withClientPath`, `withFluxForArrays`, `withGenerateAuthClasses`, `withGeneratedAnnotation`, `withLombok`, `withNoArgsConstructor`, `withPlural`, `withRetryable`, `withRetryableAttempts`, `withRetryableCapturedException`, `withRetryableDelay`, `withRetryableExcludes`, `withRetryableIncludes`, `withRetryableJitter`, `withRetryableMaxDelay`, `withRetryableMultiplier`, `withRetryablePredicate`, `withUseApiKeyAuth`, `withUseBasicAuth`, `withUseOauth`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: KotlinMicronautClientOptionsBuilder (36 abstract methods) openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautClientOptionsBuilder.java:24— `KotlinMicronautClientOptionsBuilder` declares 36 abstract methods: `withAdditionalClientTypeAnnotations`, `withAuthConfigName`, `withAuthFilter`, `withAuthFilterClientIds`, `withAuthFilterExcludedClientIds`, `withAuthorization`, `withAuthorizationFilterPattern`, `withAuthorizationFilterPatternStyle`, `withBasePathSeparator`, `withClientId`, `withClientPath`, `withCoroutines`, `withExplicitApi`, `withFluxForArrays`, `withGenerateAuthClasses`, `withGeneratedAnnotation`, `withJavaCompatibility`, `withJvmOverloads`, `withJvmRecord`, `withKsp`, `withModelMutable`, `withNonPublicApi`, `withPlural`, `withRetryable`, `withRetryableAttempts`, `withRetryableCapturedException`, `withRetryableDelay`, `withRetryableExcludes`, `withRetryableIncludes`, `withRetryableJitter`, `withRetryableMaxDelay`, `withRetryableMultiplier`, `withRetryablePredicate`, `withUseApiKeyAuth`, `withUseBasicAuth`, `withUseOauth`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: KotlinMicronautServerOptionsBuilder (19 abstract methods) openapi-generator/src/main/java/io/micronaut/openapi/generator/KotlinMicronautServerOptionsBuilder.java:22— `KotlinMicronautServerOptionsBuilder` declares 19 abstract methods: `withAot`, `withAuthentication`, `withControllerPackage`, `withCoroutines`, `withFluxForArrays`, `withGenerateControllerFromExamples`, `withGenerateImplementationFiles`, `withGenerateOperationsToReturnNotImplemented`, `withGenerateStreamingFileUpload`, `withGeneratedAnnotation`, `withJavaCompatibility`, `withJvmOverloads`, `withJvmRecord`, `withKsp`, `withModelMutable`, `withNonPublicApi`, `withPlural`, `withUserParameterClass`, `withUserParameterMode`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: MicronautCodeGeneratorOptionsBuilder (58 abstract methods) openapi-generator/src/main/java/io/micronaut/openapi/generator/MicronautCodeGeneratorOptionsBuilder.java:27— `MicronautCodeGeneratorOptionsBuilder` declares 58 abstract methods: `withAdditionalEnumTypeAnnotations`, `withAdditionalModelTypeAnnotations`, `withAdditionalOneOfTypeAnnotations`, `withAdditionalProperties`, `withAllowUnicodeIdentifiers`, `withApiNamePrefix`, `withApiNameSuffix`, `withApiPackage`, `withArtifactId`, `withBeanValidation`, `withDateTimeFormat`, `withEnsureUniqueParams`, `withEnumNameMapping`, `withEnumUnknownDefaultCase`, `withEnumUnknownDefaultCaseName`, `withGenerateControllerAsAbstract`, `withGenerateEnumConverters`, `withGenerateHttpResponseAlways`, `withGenerateHttpResponseOnlyForMultipleStatuses`, `withGenerateHttpResponseWhereRequired`, `withGenerateOperationOnlyForFirstTag`, `withGenerateSwaggerAnnotations`, `withImplicitHeaders`, `withImplicitHeadersRegex`, `withImportMapping`, `withInlineSchemaNameMapping`, `withInlineSchemaOption`, `withInvokerPackage`, `withJsonIncludeAlwaysForRequiredFields`, `withLang`, `withModelNameMapping`, `withModelNamePrefix`, `withModelNameSuffix`, `withModelPackage`, `withNameMapping`, `withOpenapiNormalizer`, `withOptional`, `withParameterMappings`, `withPrependFormOrBodyParameters`, `withReactive`, and 18 more. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Disabled test openapi-generator/src/test/java/io/micronaut/openapi/generator/KotlinMicronautServerCodegenTest.java:21— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test test-suite-spring-java/src/test/java/io/micronaut/openapi/spring/OpenApiExposedTest.java:30— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test test-suite-spring-java/src/test/java/io/micronaut/openapi/spring/TestControllerTest.java:32— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: openapi/src/main/java/io/micronaut/openapi/visitor/DynamicRefUtils.java. Pair on, review, or document these before any departure.
Documentation: no build, run or usage example README.md:1— the repository holds project manifests and neither `README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
No ADRs found test-suite-spring-kotlin-ksp/build.gradle.kts:17— No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`. ADRs are expected here because `test-suite-spring-kotlin-ksp/build.gradle.kts` makes this repository a deployable product (line 17).
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion openapi/build.gradle.kts:1— `openapi` (23849 LoC, 144 module-visible types across 15 directories) overshoots its size bounds. 1 of 6 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 6.7/10. Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
M2 · Architecture documentation· No architecture diagram/doc · ×1
No architecture diagram/doc — No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
Logging is not universal — Only 2/11 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`, `docs-examples/example-config-java`, `docs-examples/example-config-kotlin`, `docs-examples/example-groups-java`, `docs-examples/example-groups-kotlin` and 4 more.
No SAST REDACTED:13— No static application security testing detected. For this repository's stack, add spotbugs with find-sec-bugs (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 9 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
Interpolated log message defeats structured logging openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java:7169— `debug` at line 7169 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
X5 · Nullable reference types· Java packages are not null-marked everywhere · ×1
Java packages are not null-marked everywhere — 0/20 of this repository's Java package directories are under a non-null default: a `package-info.java` declaring `@NullMarked` (JSpecify) or `@NonNullApi`, `@ParametersAreNonnullByDefault`, `@NonNullByDefault`, `@DefaultQualifier(NonNull.class)`; a `module-info.java` declaring `@NullMarked`; every type in it `@NullMarked`; or a build that runs NullAway with the package in `AnnotatedPackages`, or the Checker Framework's `NullnessChecker`. Elsewhere every reference admits null and no checker warns on the dereference that throws a `NullPointerException`.
Silent fallback default in catch openapi/src/main/java/io/micronaut/openapi/visitor/ConfigUtils.java:467— `getTagGenerationDescriptionMaxLength` swallows every exception into `return -1` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing.
Skipped (documented): testOpenApiSpecEndpoint test-suite-spring-java/src/test/java/io/micronaut/openapi/spring/OpenApiExposedTest.java:32— Skipped with a documented reason — a deferral, not lazy debt: switched off by @Disabled
Skipped (documented): springOpenApiPathTest test-suite-spring-java/src/test/java/io/micronaut/openapi/spring/TestControllerTest.java:34— Skipped with a documented reason — a deferral, not lazy debt: switched off by @Disabled
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
none (dependency manifest found, not scanned for vulnerabilities here)
—
none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
none (dependency manifest found, not scanned for vulnerabilities here)
—
none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
0
—
Run 01a1e713-3a50-7e39-bd10-228bdb2e5b88 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 5 · Warnings: 553 · Recommendations: 62 · Info: 2 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 17-11-2026 @ 01:15 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.