Public report of OWASP/SecureCodingDojo, 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 report Measured 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, 19:10 UTC · Survey ID cd_cc677d0d478448e38f18c57138fa898f

OWASP/SecureCodingDojo

Measured 17 November 2026, 19:09 UTC, at code version b362860

Code coverage is not measured: Tests deferred to the consumer.

Supply-chain provenance & signing is not measured: Supply-chain provenance is not scored (this pipeline releases no artifact), but its build steps or GitHub Actions workflows have integrity defects, or nothing watches its dependency set for published advisories.

CAI score 38.8out of 100 At risk

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 small codebase: 7,571 lines of product code in 4 projects, tests not counted · Estimated rebuild effort: under 0.1 person-years · Weakest lens: Accessibility, 32.9

Findings by how serious they are

145 critical 310 serious 139 minor

17 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

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 19:09 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.

A critical security finding is open, such as a library with a known critical vulnerability or a password or key found in the code. The score itself is unchanged, but its band shows At risk until the finding is fixed. See the Security and Compliance lens.

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 ▸

58of 58 dimensions measured by tools.
556of 594 findings point to an exact file and line, so you can open each one in the code. The other 38 concern the repository as a whole, such as missing documentation.
58dimensions across 7 lenses, read from 7,571 lines of product code in 4 projects.
Chapters

Executive summary

OWASP/SecureCodingDojo is rated At risk because critical security findings are open, most of them in the packages it uses. Its score is held back in part because it has images with no text description. It scores 38.8 out of 100, which the At risk rating leaves unchanged. We judged it as a template or a sample, against a lower bar.

Accessibility, at 32.9, is the weakest lens by a small margin, and the weakest lens counts most in the score. The best first step for the work it takes is fixing the test suite so it installs from its own lockfile, worth about 1.6 points. Fixing focus, motion and contrast would lift Accessibility itself, worth about 1.9 points.

Fifty-six known security holes in the packages the code depends on can be used by attackers. Twelve weaknesses in the code could be used by an attacker, and ten settings leave the servers or containers unsafe. Updating the vulnerable packages, fixing the weaknesses the scanner points to and correcting the unsafe settings would close these risks. Pinning each tool to an exact version would fix the six pipeline tools referenced by a changeable name, and the four passwords or keys in the code's history need replacing, with the old ones switched off. The 18 pages that don't say their language need their language set.

The product code is 7,571 lines, about €6,400 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 for The 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.
Accessibility 32.9 · counts for 46%Production Readiness 33.0 · counts for 25%Code Health 34.5 · counts for 14%Security and Compliance 64.3 · counts for 8%Performance 70.0 · counts for 4%Maturity 70.3 · counts for 2%Architecture 98.9 · counts for 1%

The weakest lenses score close to each other, so improving any of them moves the score.

Code composition: what the lines of code are
Product code 100%
Rebuild cost: about €6,400 · Estimate
Cost to rebuild€2,100 to €11,000, for 36 to 113 hours of work, under 0.1 person-years for one engineer
Difficulty of the problemStandard, 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.7 at a score of 39. 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.
SizeSmall: 7,571 lines of product code
What it is notNot 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 Test suite cannot be installed from its own lockfile finding(s) in Test Reliability.
Raises the score by about 1.6 points · Low effort · Test Reliability
2
Resolve the 1 Banned license finding(s) in License Compliance.
Raises the score by about 1.6 points · Low effort · License Compliance
3
Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
Raises the score by about 1.9 points · Medium effort · Visual & motion safety

Diagnosis: what the measurements show together

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 €6,400 to build again, under 0.1 person-years of work. Its weakest lens is Accessibility, at 32.9 (Weak). Accessibility is about whether the interface is built so that everyone can use it, including people who can't see the screen or can't use a mouse. Because the weakest lens counts most in the score, work on Accessibility also moves the score most.
Based on: the rebuild estimate · the Accessibility grade · how much each lens counts
What to do: Start with the Accessibility actions in Top priorities.
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 1.4 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 17% to 37% on every change. The history of the code shows how much it changes: about 834 lines over the last 90 days, which is about 3,382 lines a year. At that pace, the extra work comes to an estimated 1.4 to 8.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: Code Duplication · 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.
If you do one thing first · First action
Resolve the 1 Test suite cannot be installed from its own lockfile finding(s) in Test Reliability. Of all the actions in this report, it raises the score most for the work it takes: about 1.6 points for low effort, because it clears the 1 Test Reliability findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort

At a glance — Code Health · 34.5 · Weak · gated by D4, R1, X5 ·

At a glance — Architecture · 98.9 · Exemplary ·

At a glance — Maturity · 70.3 · Adequate · gated by D34 ·

At a glance — Readiness · 33.0 · Adequate · gated by R4, R6, P2, P7 ·

At a glance — Security · 64.3 · Adequate · gated by D29 ·

At a glance — Accessibility · 32.9 · Weak · gated by AC1, AC4, AC6 ·

At a glance — Performance · 70.0 · Strong ·

Security & Compliance — OWASP Top-10 mapping

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 categoryFindingsSeverity
A03:2025 — Software Supply Chain Failures77High / Critical
A05:2025 — Injection58High / Critical
A02:2025 — Security Misconfiguration37High / Critical
A07:2025 — Authentication Failures5High / Critical

Roadmap

Top priorities: Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1; Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up; Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Resolve the 1 Test suite cannot be installed from its own lockfile finding(s) in Test Reliability.+1.6 ptsLowTest Reliability
Resolve the 1 Banned license finding(s) in License Compliance.+1.6 ptsLowLicense Compliance
Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.+1.9 ptsMediumVisual & motion safety
Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.+1.9 ptsMediumType Safety
Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.+1.6 ptsMediumText alternatives
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.+1.4 ptsMediumKeyboard semantics
Resolve the 9 redundant comment finding(s) in Comment Value — start with REDACTED (4), main-app.js (3), REDACTED.+0.7 ptsLowComment Value
Adopt pino (or winston) and log at meaningful points in the services you run.+1.3 ptsMediumObservability

File quality

Per-file score 0–10 — a quality signature. Of 74 files carrying findings, judged against the Template bar: 11% slop · 21% mixed · 68% near-clean.

FileScoreBandWorst signal
REDACTED0.0SlopStatic Analysis (SAST): High: REDACTED
REDACTED0.0SlopDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED0.0SlopDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED0.2SlopIaC & Container Security: High IaC: REDACTED
REDACTED1.1SlopStatic Analysis (SAST): High: REDACTED
REDACTED1.1SlopDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED1.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED1.8SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.1MixedStatic Analysis (SAST): High: REDACTED
REDACTED2.5MixedIaC & Container Security: High IaC: REDACTED
REDACTED2.7MixedIaC & Container Security: High IaC: REDACTED
REDACTED2.8MixedIaC & Container Security: High IaC: REDACTED
REDACTED3.2MixedDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED3.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED3.6MixedStatic Analysis (SAST): High: REDACTED
REDACTED3.7MixedStatic Analysis (SAST): High: REDACTED
REDACTED3.7MixedStatic Analysis (SAST): High: REDACTED
REDACTED3.9MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.1MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.4MixedIaC & Container Security: High IaC: REDACTED

How the grades work

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 — 145

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 — 310

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 — 139

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 17

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 58 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 — 58 dimensions across the health lenses
D4D5D10D11D12D13D14D15D17D19D24D28D29D30D31D34D35D43D44AC1AC2AC3AC4AC5AC6AX10AX3AX4GD1IC1M1M3P1P10P2P3P4P7PF3R1R10R2R3R4R5R6R7R8R9S1X16X21X27X28X29X3X30X5

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
  1. 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, 556 of 594 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.)
  2. Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
  3. 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.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Canine Code Analyzer duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivy · checkovSecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3 · 3.2.533✓ deterministic

Every finding is locatable in findings.md. Run 01a1eaea-294c-74e6-a9d4-27bca5813f74.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

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.

  • D1 Cyclomatic Complexity — 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. Most of this repository's production source (.c, .cpp, .groovy, .js) had no cyclomatic complexity computed for it: no method bodies were exposed for those file kinds by any language model this pass could load.
  • D2 Cognitive Complexity — 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. Most of this repository's production source (.c, .cpp, .groovy, .js) had no cognitive complexity computed for it: no method bodies were exposed for those file kinds by any language model this pass could load.
  • D12 Dependency Hygiene — 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. Currency was graded against Maven Central, but whether an artifact is DEPRECATED is not: Maven Central publishes no deprecation marker, exactly as rubygems.org does not. Whether one is UNMAINTAINED is not graded either — no registry publishes a maintenance status, and release age does not stand in for one. Two of this dimension's four signals are therefore unread on a Maven tree, and its score reflects currency alone.
  • D14 License Compliance — 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 declares package.json, but the licence verdict published here was taken over its JVM dependencies. Nothing was read about its npm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (34 contributor(s) across 989 commit(s) sampled, automation and bot accounts excluded). One of them holds 82% of the history; the other 33 hold 0.5% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
  • 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.
  • 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's deterministic call-shape rules are gated per language (docs/plans/deterministic-engine.md, P5; C# and each NeutralApiArms arm pass): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
  • D24 Comment Value — 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 source language's comment syntax, and the code a comment annotates in it, needs its own proof before D24 judges it. Until then those comments are left unread, not counted as clean.
  • D26 Project Cohesion — 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. Project size and spread are measured over build units (a .NET project, a Maven or Gradle module, an npm, Deno or JSR package, a Go module, a Cargo crate, a Python, Composer, Bundler, RubyGems, Mix, rebar3, sbt, SwiftPM or pub package, an OTP application, an Xcode project or XcodeGen spec, or a checkout that declares no build at all) whose source a code model reads. This repository's production source is in a language no model reads, or in units whose build tool D26 does not recognise. That is a gap in this analyzer's language reach — not a finding that the repository's projects are cohesive.
  • D27 Navigability — 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.
  • D32 Data Compliance (PII/GDPR) — 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. `codereview101/snipData1.java`, `codereview101/snipData2.java` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • AC3 Page structure — 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. 99 further occurrence(s) are not listed individually; the score already reflects all 139.
  • AC6 Visual & motion safety — 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. 19 further occurrence(s) are not listed individually; the score already reflects all 59.
  • AXR1 Runtime accessibility — 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. User interface: 130 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. Boot: crawled PUBLIC routes only — add a Playwright storageState (e.g. playwright/.auth/user.json) or a test auth-setup to crawl authenticated screens rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:8080: page.goto: net::ERR_CONNECTION_RESET at http://127.0.0.1:8080/ Call log: - navigating to "http://127.0.0.1:8080/", waiting until "load" .
  • 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.
  • X1 Async correctness — 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.
  • 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.
  • X13 Undrained process stream — 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.
  • X24 Document value interpolated into markup unescaped — 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.
  • X27 Collection changed while being enumerated — 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 check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.

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.

  • 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.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D11 Test Reliability: Flakiness is inferred from history/markers — we run the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 Secret Scanning: Secret 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.
  • 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.
  • D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
  • 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").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • 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.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • 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 REDACTED (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.
  • AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
  • 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.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • 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".

Dimensions

D4 · Code Duplication1.4 / 10Critical✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 1.4 / 10 · rule-coverage 100% · ceiling Verified

67 duplicated block group(s) detected. 21.5 % of the production lines (1,630 of 7,571) are in a reported copy. A further 12 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. Measured on part of this repository only: .js (53% of production source) was not exposed to THIS dimension's token comparison and is not in this count; duplication there is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream.

Duplicated block (8 lines × 4) · ×3redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:76
Duplicated block (5 lines × 3) · ×3redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:59
Edited copy of a member (28 corresponding lines) · ×2redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_file-upload-help.html.twi_WMZNPiQT8tKxmVUNwUq0L1oIP/9LcUH8l69NYemK-FgoViyxKSgXETTqR8SIkLgi0GsjQ.php:18
Edited copy of a member (17 corresponding lines) · ×2REDACTED:202
Edited copy of a member (9 corresponding lines) · ×2insecureinc/src/main/java/insecure/inc/Cwe352Profile.java:34

+ 57 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 3 Duplicated block (8 lines × 4) finding(s) in Code Duplication — start with toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php, wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php, B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php. — One of this dimension's main actionable groups (3 warning-level).
  2. Resolve the 3 Duplicated block (5 lines × 3) finding(s) in Code Duplication — start with buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php, lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php, o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php. — One of this dimension's main actionable groups (3 warning-level).
  3. Resolve the 2 Edited copy of a member (28 corresponding lines) finding(s) in Code Duplication — start with 9LcUH8l69NYemK-FgoViyxKSgXETTqR8SIkLgi0GsjQ.php, VrlNrhbQg66EKZny5b1XalVC7v52-Rjs0Baed_YHe2Q.php. — One of this dimension's main actionable groups (2 warning-level).

Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

4 production modules (Maven+npm), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 0 module(s) off the main sequence, with abstractness counted on 1 of the 4 (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).

✓ On the Gold path — maintain.

Detailed fixes: d5_recommendation.md.

D10 · Test Quality9.8 / 10Stronggated by 1 serious finding✓ 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.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Prevented

0 skipped, 1 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 76 tests.

No assertions: should delete the user without errortrainingportal/test/db.test.js:52

What to do

  1. Resolve the 1 No assertions finding(s) in Test Quality — start with db.test.js. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.

D11 · Test Reliability10.0 / 10Adequategated by 1 critical finding✓ Tool-verified

What it measures: Whether the tests pass reliably, with no flakiness.

Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 flaky across 1 measured tier(s). JavaScript/TypeScript (mocha via `npm ci --ignore-scripts` in hackerden/front/ (22 tests); jest via `npm ci --ignore-scripts` in trainingportal/): measured (0 flaky).

Test suite cannot be installed from its own lockfile: trainingportal/

What to do

  1. Resolve the 1 Test suite cannot be installed from its own lockfile finding(s) in Test Reliability. — One of this dimension's main actionable groups (1 issue-level).

Detailed fixes: d11_recommendation.md · top locations in Appendix A, every location in findings.md.

D12 · Dependency Hygiene8.7 8.4 / 10Strong✓ Tool-verified

What it measures: Whether dependencies are current, not deprecated, and not bloated. Known vulnerabilities are D30's.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (capped-linear for deprecation, prerelease and outdated) per KLoC. Known-vulnerable packages are D30's and are not charged here (rubric-2026.11.2). Exhaustive.

Maturity: Documented → Verified → Prevented · effective 8.4 / 10 · rule-coverage 97% · ceiling Verified

27 outdated artifact(s) of 29 resolved by the build, graded against Maven Central. 1 resolved artifact(s) could not be graded: Maven Central carries no such coordinate, or it publishes nothing but pre-releases. That is a definite answer and is counted, not charged. Whether any of these is DEPRECATED is not graded — Maven Central publishes no deprecation marker, exactly as rubygems.org does not. Whether any is UNMAINTAINED is not graded either: no registry publishes a maintenance status, and release age does not stand in for one. Known CVEs in this graph are D30's question, read from the manifest there.

Outdated (compile): com.sun.xml.stream:sjsxp · ×23
Outdated (runtime): com.fasterxml.jackson.core:jackson-databind · ×3
Outdated (provided): jakarta.servlet:jakarta.servlet-api

Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets. 2 detection(s) were excluded as holding no minted credential in material that runs: a name, reference or comparison rather than a value, a readable phrase or pattern, a value that declares itself fake, or development, test, example, mock or demo material.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance8.0 / 10Adequategated by 1 critical finding✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 8.0 / 10 · rule-coverage 100% · ceiling Verified

1 of 7 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 1 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. ★ COVERAGE OF THIS VERDICT: it grades this repository's JVM dependencies and nothing else. The repository also declares package.json, and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.

Banned license: org.openjdk.nashorn:nashorn-core

What to do

  1. Resolve the 1 Banned license finding(s) in License Compliance. — One of this dimension's main actionable groups (1 issue-level).

Detailed fixes: d14_recommendation.md · top locations in Appendix A, every location in findings.md.

D15 · Churn × Complexity Hotspots10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No churn × complexity hotspots in the window.

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md.

D17 · Explicit Debt9.4 / 10Stronggated by 16 serious findings✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 9.4 / 10 · rule-coverage 100% · ceiling Prevented

27 deducted task-comment markers across 7571 LoC (0.3/KLoC) → score 9.4. 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.

TodoComment · ×15REDACTED:43
TodoComment repeated across 12 filesREDACTED:36

What to do

  1. Resolve the 15 TodoComment finding(s) in Explicit Debt — start with REDACTED (6), UnlockCodeFilter.java (3), REDACTED (2). — One of this dimension's main actionable groups (15 warning-level).
  2. Resolve the 1 TodoComment repeated across 12 files finding(s) in Explicit Debt — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.

D19 · Documentation Quality7.5 / 10Strong✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 7.5 / 10 · rule-coverage 100% · ceiling Documented

1 of 2 documentation facets pass in full; short on: F2 example. 8 document(s) read across 6 unit(s).

Documentation: no build, run or usage examplebluetesterapp/README.md:1

What to do

  1. 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.

D24 · Comment Value3.4 3.3 / 10Weak✓ Tool-verified

What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).

Method: Every inline C# comment compared word by word with the identifiers, literals and constructs of the code it annotates (taken from the syntax); a comment whose words that code already contains is redundant, as are closing-brace labels and generator template text. Comments giving a reason or a reference are kept; other scripts and languages are not judged. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 3.3 / 10 · rule-coverage 99% · ceiling Documented

9 of 136 judged comments only repeat the code they sit on (6.6 %). 2 comment(s) in another language or script were not judged.

redundant comment · ×9REDACTED:519
doc comments repeat the namestrainingportal/challenges.js:527

What to do

  1. Resolve the 9 redundant comment finding(s) in Comment Value — start with REDACTED (4), main-app.js (3), REDACTED. — One of this dimension's main actionable groups (9 recommendation-level).

Detailed fixes: d24_recommendation.md · top locations in Appendix A, every location in findings.md.

D28 · Secrets (history)6.0 / 10Adequate✓ Tool-verified

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Secret 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.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Documented

4 finding(s): 0 critical, 4 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

  1. Resolve the 4 High secret finding(s) in Secrets (history) — start with REDACTED (4). — One of this dimension's main actionable groups (4 issue-level).
  2. 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.

D29 · Static Analysis (SAST)0.1 / 10Critical✓ Tool-verified

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).

Maturity: Documented → Verified → Prevented · effective 0.1 / 10 · rule-coverage 100% · ceiling Documented

58 finding(s): 0 critical, 21 high, 32 medium, 5 low. 6 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 15 file(s) — `codereview101/snipData1.java`, `codereview101/snipData2.java`, `redblueapp/drupal-8.5.0/sites/default/files/js/js_Di5_9uQOKAh2G8AILXfrGSFGtwKDx4P8HLPQaUZUjz0.js`, `trainingportal/static/codeBlocks/inputAllowListing.html` (lines 54–81), `REDACTED` (line 52), … (+10 more) — 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.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

+ 17 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 issue-level).
  2. Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 issue-level).
  3. No action in Static Analysis (SAST) — all 6 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (6 issue-level, 0 of them charged here).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D30 · Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

77 finding(s): 10 critical, 46 high, 7 medium, 14 low.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 44 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (42), REDACTED (2). — One of this dimension's main actionable groups (44 issue-level).
  2. Resolve the 10 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (8), REDACTED (2). — One of this dimension's main actionable groups (10 issue-level).
  3. Resolve the 2 High vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).

Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.

D31 · IaC & Container Security4.8 / 10Weak✓ Tool-verified

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (REDACTED/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

Maturity: Documented → Verified → Prevented · effective 4.8 / 10 · rule-coverage 100% · ceiling Documented

37 finding(s): 0 critical, 10 high, 15 medium, 12 low.

REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 15 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (4), REDACTED (3), REDACTED (3). — One of this dimension's main actionable groups (15 warning-level).
  2. Resolve the 10 High IaC finding(s) in IaC & Container Security — start with REDACTED (6), REDACTED, REDACTED. — One of this dimension's main actionable groups (10 issue-level).
  3. Resolve the 12 Low IaC finding(s) in IaC & Container Security — start with REDACTED (4), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (12 recommendation-level).

Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.

D34 · Knowledge Freshness0.0 / 10Critical✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

53 of 53 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is redblueapp/drupal-8.5.0/sites/default/settings.php. Counted over 53 of the 84 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned file · ×51redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:1
Most significant orphaned file · ×2redblueapp/drupal-8.5.0/sites/default/settings.php:1
Dormant codebase

What to do

  1. Resolve the 51 Orphaned file finding(s) in Knowledge Freshness — start with REDACTED (2), 8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php, REDACTED. — One of this dimension's main actionable groups (51 recommendation-level).
  2. Resolve the 2 Most significant orphaned file finding(s) in Knowledge Freshness — start with settings.php, default.settings.php. — One of this dimension's main actionable groups (2 recommendation-level).
  3. Resolve the 1 Dormant codebase finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.

D35 · Change Coupling9.4 / 10Stronggated by 2 serious findings✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 9.4 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: REDACTED↔main-app.js 67%; challenges.js↔submitCodeCtrl.js 50%; REDACTED↔submitCodeCtrl.js 50%

Change coupling: REDACTED ↔ main-app.jsREDACTED:1
Change-coupling hub: submitCodeCtrl.js → challenges.js, REDACTED, main-app.jstrainingportal/static/submitCodeCtrl.js

What to do

  1. Resolve the 1 Change coupling finding(s) in Change Coupling — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with submitCodeCtrl.js. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Reported apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No dependency in any ecosystem this repository declares is published as malicious.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 7 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.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AC1 · Text alternatives2.1 / 10Weak✓ Tool-verified

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.

  • An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative. (×7) — hackerden/commandproc/WebContent/index.jsp:69, hackerden/commandproc/WebContent/login.jsp:18, insecureinc/src/main/webapp/cwe352loggedin.jsp:115, …

What to do

  • Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
AC2 · Forms & labels6.0 / 10Strong✓ Tool-verified

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.

  • This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×10) — bluetesterapp/views/form.html:24, bluetesterapp/views/form.html:26, hackerden/commandproc/WebContent/index.jsp:81, …
  • This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. (×7) — insecureinc/src/main/webapp/cwe502admin.jsp:48, insecureinc/src/main/webapp/cwe502admin.jsp:51, insecureinc/src/main/webapp/cwe502admin.jsp:54, …
  • A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label. — trainingportal/public/locallogin.html:116
  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. — trainingportal/static/activity.html:5
  • A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one). (×2) — trainingportal/static/activity.html:7, trainingportal/static/submitCode.html:12

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure4.3 / 10Adequate✓ 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.

  • The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en"). (×18) — bluetesterapp/views/form.html:3, bluetesterapp/views/request.html:2, codereview101/index.html:6, …
  • A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>. (×4) — bluetesterapp/views/form.html:3, bluetesterapp/views/request.html:2, hackerden/commandproc/WebContent/index.jsp:55, …
  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×17) — bluetesterapp/views/form.html:3, bluetesterapp/views/request.html:2, codereview101/index.html:6, …
  • Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. — codereview101/index.html:121

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.
AC4 · Keyboard semantics3.0 / 10Weak✓ Tool-verified

Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: elements that pose a keyboard-semantics question, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) — a non-natively-interactive element carrying a click handler, a double-click or hover enter/leave binding, a pointer-only gesture on a tabindex="0" element, or `cursor: pointer` from the repo's own CSS; an href-less or placeholder-href (#, javascript:) anchor; and any element with a positive tabindex. Natively interactive elements used correctly (<button>, <a href>, form controls) are NOT in the population — there is nothing to judge — so a page of nothing but correct controls gives AC4 nothing to measure. Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".

  • An <a href="#"> (or javascript:) with a click handler is a button dressed as a link — it announces the wrong role and stops working without JS. Use a <button> for an action. — bluetesterapp/views/form.html:28
  • An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action. (×3) — codereview101/index.html:73, trainingportal/static/main.html:75, trainingportal/static/main.html:80
  • This <div role="dialog"> is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close. (×2) — codereview101/index.html:143, trainingportal/static/submitCode.html:27

What to do

  • Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness10.0 / 10Exemplary○ Nothing flagged

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.

AC6 · Visual & motion safety1.5 / 10Weak✓ Tool-verified

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.

Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.

Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • `.form-disabled input,.form-disabled select,.form-disabled textarea` sets color: #717171 on background-color: #ededed — 4.2:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from). (×2) — redblueapp/drupal-8.5.0/sites/default/files/css/css_784meuLf1XxEa0aJBHdM5DsfnwhGGzACMXmUJ22g_lk.css:40, redblueapp/drupal-8.5.0/sites/default/files/css/css_97NGigb7VWVuTTDanLjKsObBB7Rnq8-4zw2MRgeCJ88.css:38
  • `body` sets color: #3b3b3b on background-color: #292929 — 1.3:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from). (×2) — redblueapp/drupal-8.5.0/sites/default/files/css/css_784meuLf1XxEa0aJBHdM5DsfnwhGGzACMXmUJ22g_lk.css:78, redblueapp/drupal-8.5.0/sites/default/files/css/css_97NGigb7VWVuTTDanLjKsObBB7Rnq8-4zw2MRgeCJ88.css:76
  • `.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,a.ui-button:active,.ui-button:active,.ui-button.ui-state-active:hover` sets color: #ffffff on background-color: #007fff — 3.8:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from). — redblueapp/drupal-8.5.0/sites/default/files/css/css_mMHZVBWrcsPaqRLbvud1u1JSon5n08FZbS-IBt37v0Q.css:5
  • `.btn-success` sets color: #fff on background-color: #5cb85c — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3173
  • `.btn-success:focus, .btn-success.focus` sets color: #fff on background-color: #449d44 — 3.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3179
  • `.btn-success:hover` sets color: #fff on background-color: #449d44 — 3.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3184
  • `.btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success` sets color: #fff on background-color: #449d44 — 3.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3191
  • `.btn-success .badge` sets color: #5cb85c on background-color: #fff — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3226
  • `.btn-info` sets color: #fff on background-color: #5bc0de — 2.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3230
  • `.btn-info:focus, .btn-info.focus` sets color: #fff on background-color: #31b0d5 — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3236
  • `.btn-info:hover` sets color: #fff on background-color: #31b0d5 — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3241
  • `.btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info` sets color: #fff on background-color: #31b0d5 — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3248
  • `.btn-info:active:hover, .btn-info.active:hover, .open > .dropdown-toggle.btn-info:hover, .btn-info:active:focus, .btn-info.active:focus, .open > .dropdown-toggle.btn-info:focus, .btn-info:active.focus, .btn-info.active.focus, .open > .dropdown-toggle.btn-info.focus` sets color: #fff on background-color: #269abc — 3.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3261
  • `.btn-info .badge` sets color: #5bc0de on background-color: #fff — 2.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3283
  • `.btn-warning` sets color: #fff on background-color: #f0ad4e — 1.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3287
  • `.btn-warning:focus, .btn-warning.focus` sets color: #fff on background-color: #ec971f — 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3293
  • `.btn-warning:hover` sets color: #fff on background-color: #ec971f — 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3298
  • `.btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning` sets color: #fff on background-color: #ec971f — 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3305
  • `.btn-warning:active:hover, .btn-warning.active:hover, .open > .dropdown-toggle.btn-warning:hover, .btn-warning:active:focus, .btn-warning.active:focus, .open > .dropdown-toggle.btn-warning:focus, .btn-warning:active.focus, .btn-warning.active.focus, .open > .dropdown-toggle.btn-warning.focus` sets color: #fff on background-color: #d58512 — 2.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3318
  • `.btn-warning .badge` sets color: #f0ad4e on background-color: #fff — 1.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3340
  • `a.list-group-item-success:hover, button.list-group-item-success:hover, a.list-group-item-success:focus, button.list-group-item-success:focus` sets color: #3c763d on background-color: #d0e9c6 — 4.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:5341
  • `a.list-group-item-info:hover, button.list-group-item-info:hover, a.list-group-item-info:focus, button.list-group-item-info:focus` sets color: #31708f on background-color: #c4e3f3 — 4.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:5370
  • `a.list-group-item-warning:hover, button.list-group-item-warning:hover, a.list-group-item-warning:focus, button.list-group-item-warning:focus` sets color: #8a6d3b on background-color: #faf2cc — 4.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:5399
  • `a.list-group-item-danger:hover, button.list-group-item-danger:hover, a.list-group-item-danger:focus, button.list-group-item-danger:focus` sets color: #a94442 on background-color: #ebcccc — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:5428
  • `.testerapp a:hover` sets color: #fff on background-color: #03e9f4 — 1.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — bluetesterapp/views/form.css:85
  • `.ui-helper-reset` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×2) — redblueapp/drupal-8.5.0/sites/default/files/css/css_-WrsEEXsu3CD7ngdWXBx3VhsNTy-rXuiVchdNMp8iZU.css:25, redblueapp/drupal-8.5.0/sites/default/files/css/css_8APOHq_BdlpreN22oegBNLp3sDVKX7_ISJXyxwe2PnA.css:25
  • `.ui-dialog` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×2) — redblueapp/drupal-8.5.0/sites/default/files/css/css_-WrsEEXsu3CD7ngdWXBx3VhsNTy-rXuiVchdNMp8iZU.css:28, redblueapp/drupal-8.5.0/sites/default/files/css/css_8APOHq_BdlpreN22oegBNLp3sDVKX7_ISJXyxwe2PnA.css:28
  • `.quickedit-editable:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×2) — redblueapp/drupal-8.5.0/sites/default/files/css/css_-WrsEEXsu3CD7ngdWXBx3VhsNTy-rXuiVchdNMp8iZU.css:29, redblueapp/drupal-8.5.0/sites/default/files/css/css_8APOHq_BdlpreN22oegBNLp3sDVKX7_ISJXyxwe2PnA.css:29
  • `.skip-link` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×2) — redblueapp/drupal-8.5.0/sites/default/files/css/css_784meuLf1XxEa0aJBHdM5DsfnwhGGzACMXmUJ22g_lk.css:61, redblueapp/drupal-8.5.0/sites/default/files/css/css_97NGigb7VWVuTTDanLjKsObBB7Rnq8-4zw2MRgeCJ88.css:59
  • `.contextual .trigger:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — redblueapp/drupal-8.5.0/sites/default/files/css/css_mMHZVBWrcsPaqRLbvud1u1JSon5n08FZbS-IBt37v0Q.css:4
  • `.toolbar-lining button:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — redblueapp/drupal-8.5.0/sites/default/files/css/css_mMHZVBWrcsPaqRLbvud1u1JSon5n08FZbS-IBt37v0Q.css:10
  • `.dropdown-toggle:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3518
  • `.dropdown-menu > .active > a` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3573
  • `.open > a` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3592

What to do

  • Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AX10 · Code composition10.0 / 10Exemplary✓ Tool-verified

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.

AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

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.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

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.

GD1 · Unfinished & placeholder code9.9 / 10Exemplary✓ Tool-verified

Other · Code Health — Unreviewed-generation residue in this repository's JavaScript/TypeScript: functions whose whole body still throws a "not implemented" error, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings and JSX 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.

  • A placeholder string ("LOREM IPSUM DOLOR SIT AMET") is still in shipped code — typical of generated boilerplate that was never filled in. — trainingportal/qna.js:160

What to do

  • Finish or delete the functions that still throw "not implemented", and replace placeholder text before shipping.
IC1 · Incompleteness & stubs10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's JavaScript/TypeScript: functions that only throw a "not implemented" error, functions that take inputs and return a constant or do nothing, async functions that never await, 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.

M1 · Documentation (README)7.5 / 10Exemplary✓ Tool-verified

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

  • 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.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

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.

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language's code model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.

P2 · Observability1.0 / 10Weak✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

  • No logging call was found in the 125 JVM, JavaScript/TypeScript, PHP production file(s) this check read across 8 module(s). Each was searched for its ecosystem's logging libraries (JVM: SLF4J, Log4j2, java.util.logging, Logback, kotlin-logging, scala-logging; JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger; PHP: PSR-3 loggers (Monolog), Laravel's Log facade, error_log()) and for a call on a receiver named `log`/`logger` (or ending in `Logger`/`_logger`) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read — this is 'no logging found by this walk', not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose.

What to do

  • Adopt pino (or winston) and log at meaningful points in the services you run.
P3 · Security & performance tooling4.0 / 10Adequate✓ Tool-verified

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.

  • `bluetesterapp/package.json` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`. — bluetesterapp/package.json:11

What to do

  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback5.0 / 10Adequate✓ Tool-verified

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.

  • Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.

What to do

  • Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
  • Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P7 · Outbound HTTP resilience3.0 / 10Weak✓ Tool-verified

Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.

Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.

  • `.openConnection(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. (×2) — codereview101/snipData3.java:10, codereview101/snipData4.java:10
  • `https.request(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — trainingportal/challenges.js:415

What to do

  • Set connect and read timeouts on every client (`RestTemplateBuilder.connectTimeout/readTimeout`, WebClient `responseTimeout`, `HttpRequest.Builder.timeout`, `HttpURLConnection.setReadTimeout`, Feign `connectTimeout`/`readTimeout` in configuration), and wrap calls to dependencies in resilience4j `@Retry`/`@CircuitBreaker`/`@TimeLimiter` (or Spring Retry).
  • Bound every outbound call: pass `signal: AbortSignal.timeout(ms)` to `fetch`, set `timeout` on the axios instance (`axios.create({ timeout })`), and add retries with back-off (`axios-retry`, `p-retry`) and a breaker (`opossum`, `cockatiel`) around dependencies that fail.
PF3 · Async & latency hygiene7.0 / 10Strong✓ Tool-verified

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.

  • `fs.readFileSync` in `init` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — trainingportal/db.js:193, trainingportal/db.js:228

What to do

  • TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety0.0 / 10Critical✓ Tool-verified

React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.

Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.

  • 0 typed · 55 plain JS — the untyped files are REDACTED, REDACTED, codereview101/snipData5.js, codereview101/snipData6.js, codereview101/snipXSS10.jsx, codereview101/snipXSS5.js (+49 more).

What to do

  • Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.
R10 · Code Duplication7.2 / 10Strong✓ Tool-verified

React / JS · Code Health — The share of the scored frontend lines inside a near-exact copy-pasted block of substantial extent (the D4 clone algorithm over JS/TS tokens, D-386; each line once, 10 at none and 0 at a quarter of the lines, as D4): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.

Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Scored on the share of the scored frontend lines inside a reported copy, on the same curve as D4. Deterministic.

  • trainingportal/static/main-app.js:146 · trainingportal/static/main-app.js:228 · trainingportal/static/main-app.js:259 — 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. — trainingportal/static/main-app.js:146
  • REDACTED:209 · REDACTED:228 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:209
  • REDACTED:68 · REDACTED:105 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:68
  • trainingportal/db.js:386 · trainingportal/db.js:410 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — trainingportal/db.js:386
  • REDACTED:256 · REDACTED:286 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:256
  • trainingportal/challenges.js:130 · trainingportal/challenges.js:285 — the two spans are one implementation copied and then locally edited — 58 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — trainingportal/challenges.js:130
  • trainingportal/db.js:343 · trainingportal/db.js:380 — 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. — trainingportal/db.js:343
  • trainingportal/qna.js:231 · trainingportal/qna.js:244 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — trainingportal/qna.js:231
  • REDACTED:121 · REDACTED:234 — 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. — REDACTED:121
  • REDACTED:135 · REDACTED:240 — 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. — REDACTED:135
  • trainingportal/db.js:265 · trainingportal/db.js:335 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — trainingportal/db.js:265
  • trainingportal/db.js:296 · trainingportal/db.js:388 · trainingportal/db.js:412 — all 3 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — trainingportal/db.js:296
  • REDACTED:307 · REDACTED:317 — 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. — REDACTED:307
  • codereview101/snipXSS5.js:2 · codereview101/snipXSS6.js:2 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — codereview101/snipXSS5.js:2

What to do

  • Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R2 · Cyclomatic Complexity7.9 / 10Strong✓ Tool-verified

React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.

Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.

  • apiChallengeCode has cyclomatic complexity 24 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — trainingportal/challenges.js:438
  • init has cyclomatic complexity 18 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — trainingportal/db.js:166
  • processAuthCallback has cyclomatic complexity 15 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:265
  • getChallengeDefinitions has cyclomatic complexity 13 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — trainingportal/challenges.js:203
  • getCurrentUser has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:72
  • (anonymous) has cyclomatic complexity 12 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — trainingportal/static/challengesCtrl.js:59
  • registerLocalUser has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:119
  • (anonymous) has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:47
  • postMessage has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:123
R3 · Large Files6.4 / 10Strong✓ Tool-verified

React / JS · Code Health — How many source files exceed the large-file threshold.

Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.

  • trainingportal/db.js has 585 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — trainingportal/db.js:1
  • REDACTED has 494 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • trainingportal/challenges.js has 488 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — trainingportal/challenges.js:1
  • REDACTED has 481 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage2.2 / 10Weak✓ Tool-verified

React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.

Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.

  • No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×35) — REDACTED:1, trainingportal/static/main-app.js:1, REDACTED:1, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness9.2 / 10Exemplary✓ Tool-verified

React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D30 (JS/npm Dependency Vulnerabilities).

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D30, which answers dependency vulnerabilities for every ecosystem). Deterministic.

R6 · Tooling3.4 / 10Adequate✓ Tool-verified

React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.

Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.

  • test ✓ · lint ✗ · typecheck ✗ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.

What to do

  • Add eslint and type checking (adopt TypeScript, or type-check the existing JavaScript with `checkJs`) as package.json scripts and run them in CI.
R7 · Dead Code8.6 / 10Exemplary✓ Tool-verified

React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).

Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.

  • 9 file(s) (~682 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an REDACTED script) so reachability can see this package. — hackerden/front
  • Unreachable from the 18 application, 0 tooling and 10 test entry point(s) detected in this repo. Nothing this repository declares compiles or type-checks these files, so a wrong deletion here would raise no compile error — gate removals on `npm test`, which loads the modules, and note that it only covers what it exercises. An undetected custom entry would make these reachable.
  • no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×14) — trainingportal/tools/setupDemo.js, trainingportal/tools/exportUsers.js, REDACTED, …
  • This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it. — trainingportal/test/challenge.test.js:55

What to do

  • Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene4.0 / 10Adequate✓ Tool-verified

React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.

Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.

  • Imported but not declared in any reachable package.json — installs work only by hoisting accident. (×2) — REDACTED:4, hackerden/front/server.js:6
  • Declared in bluetesterapp/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. — bluetesterapp/package.json:15
  • Declared in trainingportal/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×3) — trainingportal/package.json:28, trainingportal/package.json:36, trainingportal/package.json:43

What to do

  • Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports10.0 / 10Exemplary✓ Tool-verified

React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.

Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.

S1 · Web-Security Posture8.0 / 10Strong✓ Tool-verified

Other · Security — Only what this repository's own non-C# files could be read for was assessed — markup this repository SHIPS is scored for third-party script integrity whether or not the repository serves it itself, since a page handed to a consumer runs in that consumer’s origin. Nothing else in this dimension was assessed: the transport, cookie, input-validation and crypto controls are read from a source model that was not loaded for this repository’s language, so their absence here is not a finding about this repository.

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.

  • `https://cdnjs.cloudflare.com/ajax/libs/angular-sanitize/1.7.8/angular-sanitize.min.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. 6 such include(s) across the repository's markup. — codereview101/index.html:16
  • `Server` is set explicitly here. The OWASP Secure Headers Project lists it among the response headers to REMOVE: it names the server, framework or tooling behind the application, which is exactly what an attacker looks up known exploits for. (No deduction on this card.) — redblueapp/drupal-8.5.0/sites/default/files/js/js_Di5_9uQOKAh2G8AILXfrGSFGtwKDx4P8HLPQaUZUjz0.js:1357

What to do

  • Pin third-party scripts and verify them: name an exact version in the URL and add an `integrity="sha384-…"` hash alongside `crossorigin="anonymous"` (both are required — an integrity hash on a cross-origin script without `crossorigin` is not evaluated, it blocks the script). Where the vendor ships a continuously-updated loader and publishes no stable hash (tag managers, analytics, chat widgets), Subresource Integrity is not available: constrain it instead with a `Content-Security-Policy` that names the exact origins allowed to execute, and drop the script from the pages that do not need it. Where the page is shipped inside a package that others host, prefer vendoring the asset and serving it from the app’s own origin, so no consumer inherits a third-party dependency they did not choose.
  • Stop sending `Server`: delete the write, and suppress the framework's own copy where it has one (Kestrel `AddServerHeader = false`, Express `app.disable('x-powered-by')` / `helmet.hidePoweredBy()`, nginx `server_tokens off`, IIS `<requestFiltering removeServerHeader="true" />`).
X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

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.

X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.

Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.

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 `foreach` leaves the array or collection it is walking alone — PHP raises nothing, but the loop's view and the collection part: an array walked by value (and a Doctrine or Laravel collection) is walked as the snapshot taken when the loop began, so an element added in the body is never visited and one removed is visited anyway; an array walked by reference (`as &$v`) and an SPL container (`SplObjectStorage`, `ArrayObject`, `SplQueue`) are walked live, so an added element is walked too and a removal skips the next one; and after an `array_splice`, `array_shift` or sort every later key names a different element.

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.

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.

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.

X3 · Exception handling6.9 / 10Strong✓ Tool-verified

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.

  • 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. (×2) — REDACTED:54, trainingportal/challenges.js:378
  • `.then(…, function(){})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it. — trainingportal/static/reportCtrl.js:33

What to do

  • Swallowed exception (empty catch)
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.

X5 · Nullable reference types2.0 / 10Weak✓ Tool-verified

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/5 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).

WCAG coverage — what static analysis assessed

Statically assessed 15 of 55 WCAG 2.2 Level A/AA success criteria (27%; ≈30% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 40 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).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC1 · Text alternatives1.1.1, 1.2.2, 1.2.5Partial signal
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC4 · Keyboard semantics2.1.1, 2.4.3Partial signal
AC5 · ARIA correctness4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only

Not statically assessed — these 40 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.2.1, 1.2.3, 1.2.4, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.2, 2.1.4, 2.2.2, 2.3.1, 2.4.4, 2.4.5, 2.4.6, 2.4.11, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.7, 2.5.8, 3.1.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.6, 3.3.1, 3.3.3, 3.3.4, 3.3.7, 3.3.8, 4.1.3.

Reference — by lens

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.

LensScoreRatingImpact
Code Health34.5Weak — gated by D4, R1, X5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture98.9ExemplaryStrongest area.
Maturity70.3Adequate — gated by D34Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness33.0Adequate — gated by R4, R6, P2, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security64.3Adequate — gated by D29Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility32.9Weak — gated by AC1, AC4, AC6Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance70.0StrongSolid.
Unscored — 2 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.

  • D36 Supply-chain Provenance & Signing — 2 observation(s) recorded · The CI pipeline publishes no artifact — no package publish, container push or release with files to download. Supply-chain provenance, signing and an SBOM describe a PUBLISHED artifact for the people who obtain it, so there is nothing to attest here; a deployment of the service itself publishes nothing for anyone else to verify. Add them to the release pipeline when this repo starts publishing artifacts (a package, a container image, or a release with downloadable files). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
  • X10 Duplicated predicate — 7 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 5 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
  • P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
Not included — 65 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.

  • AX1 Captive dependencies — Not applicable: this repository's Java imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's PHP imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
  • AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Java code is a Spring, JSR-330 or CDI singleton bean. PHP builds its object graph per request and shares none of it between requests. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
  • 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
  • AX6 Interface segregation — no public interfaces
  • 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
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — The runtime tier booted this repository's service, but crawled PUBLIC routes only — add a Playwright storageState (e.g. playwright/.auth/user.json) or a test auth-setup to crawl authenticated screens rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:8080: page.goto: net::ERR_CONNECTION_RESET at http://127.0.0.1:8080/ Call log: - navigating to "http://127.0.0.1:8080/", waiting until "load" . This repository also has a user interface (130 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates) that the booted service does not serve, and this scan has no strategy that reaches it — so no WCAG success criterion was verified in a rendered page on this run. That is a gap in OUR tooling, not a finding about your application: nothing here says the interface is inaccessible. The static accessibility checks still ran.
  • AXS1 Runtime exposed surface — 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.
  • D1 Cyclomatic Complexity — cyclomatic complexity not measured — .c, .cpp, .groovy, .js exposed no member bodies
  • D16 Bus Factor — single-maintainer repository — bus factor is not applicable
  • 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.
  • D2 Cognitive Complexity — cognitive complexity not measured — .c, .cpp, .groovy, .js exposed no member bodies
  • D20 ADR Quality — N/A — this repo declares itself a template / kata / sample / demo; a formal ADR log is deferred to a real application built from it.
  • D21 Naming Consistency — Naming consistency does not read PHP, html yet; not measured.
  • D22 Internal API Consistency — API consistency is measured on C#, TypeScript, Go only; the exposed JavaScript surface was not measured.
  • 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"]`.
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — D26 measured no build unit over this repository's .c, .cpp, .groovy, .js, .php source. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D27 Navigability — D27 reads resolved call sites in the languages it reads only — this repository's production source is .c, .cpp, .groovy, .java, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D3 God Classes — Most of this repository's production source (.c, .cpp, .groovy, .js) was not read by god-class detection, so class size was not assessed for the languages that are the product — whatever else this pass did read is not this repository's class size. Not scored — this is a gap in the analyzer, not a verdict about this repository.
  • D32 Data Compliance (PII/GDPR) — 2 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • 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.
  • D6 Cohesion (LCOM4) — Cohesion (LCOM4) was not measured: of the 40 type(s) found, none both holds instance state and has two or more methods whose shared use of it could be read (40 stateless), so LCOM4 is undefined for every type in this repository. Not scored — the metric does not apply here, and this is not a finding about this repository.
  • 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 — This repo declares itself a template / kata / sample; tests are deferred to the application built from it, so coverage is not scored here.
  • DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
  • 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
  • M2 Architecture documentation — This repo declares itself a template / kata / sample / demo — formal architecture documentation (ADRs, C4 diagrams) is deferred to a real application built from it, so its absence is not a defect here.
  • M4 Documentation accuracy — Not applicable: the 8 current-state document(s) make no claim of a kind M4 checks. 2 claim(s) of kinds M4 does not check were not checked (path 2); M4 checks only links and versions and artefact counts.
  • P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • 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 tinybench, mitata, benchmark.js, benny or vitest `bench(...)` calls in files that import them (or `*.bench.*` files), or one of those in a package.json, 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.
  • R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X1 Async correctness — X1 reached only 36% of this repository's production lines — php (5,856 lines), java (1,715 lines), groovy (161 lines), cpp (142 lines), c (43 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
  • X12 Unreachable branch — X12 reached only 50% of this repository's production lines — php (5,856 lines), groovy (161 lines), cpp (142 lines), c (43 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
  • X13 Undrained process stream — X13 reached only 50% of this repository's production lines — php (5,856 lines), groovy (161 lines), cpp (142 lines), c (43 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
  • X19 Unrestored process-global state — 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 PHP and Java were read, and no request in it can be cancelled by a caller (amphp's HttpClient or connect) — 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
  • X20 Mistyped argument 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
  • X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X24 Document value interpolated into markup unescaped — X24 reached only 50% of this repository's production lines — php (5,856 lines), groovy (161 lines), cpp (142 lines), c (43 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
  • X25 Inert configuration knob — 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.
  • X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Java was read, and it logs through none that an assembled message defeats: java.util.logging's level methods, log4j 1, commons-logging, JBoss Logging and Flogger take one finished message (as log4net does in C#), or it makes no call through a named logger at all. Calls made through SLF4J or log4j 2 (`org.slf4j.Logger`, `org.apache.logging.log4j.Logger`, Lombok's `@Slf4j`) would be judged.
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X7 Silent fallback defaults — 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.

Critical — 145 finding(s)
D30 · Dependency Vulnerabilities · High CVE · ×44
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 19 more in this group — see findings.md.
AC3 · Page structure · <html> without a lang · ×18
  • <html> without a lang bluetesterapp/views/form.html:3 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang bluetesterapp/views/request.html:2 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang codereview101/index.html:6 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang hackerden/commandproc/WebContent/index.jsp:55 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang hackerden/commandproc/WebContent/login.jsp:4 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang REDACTED:5 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang REDACTED:6 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/ch1.jsp:11 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/ch2.jsp:20 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/ch2loggedin.jsp:21 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/cwe120.jsp:53 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/cwe134.jsp:33 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/cwe190.jsp:45 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/cwe209.jsp:26 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/cwe209loggedin.jsp:27 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/cwe22.jsp:77 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/cwe307.jsp:23 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang insecureinc/src/main/webapp/cwe311.jsp:30 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
D30 · Dependency Vulnerabilities · Critical CVE · ×10
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D31 · IaC & Container Security · High IaC · ×10
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC1 · Text alternatives · <img> without a text alternative · ×7
  • <img> without a text alternative hackerden/commandproc/WebContent/index.jsp:69 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative hackerden/commandproc/WebContent/login.jsp:18 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative insecureinc/src/main/webapp/cwe352loggedin.jsp:115 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative insecureinc/src/main/webapp/cwe434loggedin.jsp:94 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative insecureinc/src/main/webapp/cwe79loggedin.jsp:141 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative serialcat/WebContent/index.jsp:18 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative trainingportal/public/locallogin.html:115 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
AC2 · Forms & labels · <input> without a programmatic label · ×7
  • <input> without a programmatic label bluetesterapp/views/form.html:24 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label bluetesterapp/views/form.html:26 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label REDACTED:73 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label insecureinc/src/main/webapp/cwe502admin.jsp:55 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label trainingportal/public/locallogin.html:122 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label trainingportal/static/activity.html:5 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label trainingportal/static/submitCode.html:11 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
AC2 · Forms & labels · <label> that labels no control · ×7
  • <label> that labels no control insecureinc/src/main/webapp/cwe502admin.jsp:48 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control insecureinc/src/main/webapp/cwe502admin.jsp:51 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control insecureinc/src/main/webapp/cwe502admin.jsp:54 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control REDACTED:10 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control REDACTED:12 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control REDACTED:16 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control REDACTED:18 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · <textarea> without a programmatic label · ×4
  • <textarea> without a programmatic label hackerden/commandproc/WebContent/index.jsp:81 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <textarea> without a programmatic label hackerden/commandproc/WebContent/login.jsp:27 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <textarea> without a programmatic label insecureinc/src/main/webapp/cwe502admin.jsp:52 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <textarea> without a programmatic label serialcat/WebContent/index.jsp:27 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
AC3 · Page structure · Document without a <title> · ×4
  • Document without a <title> bluetesterapp/views/form.html:3 — A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>.
  • Document without a <title> bluetesterapp/views/request.html:2 — A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>.
  • Document without a <title> hackerden/commandproc/WebContent/index.jsp:55 — A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>.
  • Document without a <title> hackerden/commandproc/WebContent/login.jsp:4 — A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>.
D28 · Secrets (history) · High secret · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · <button> with no accessible text · ×2
  • <button> with no accessible text trainingportal/static/activity.html:7 — A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
  • <button> with no accessible text trainingportal/static/submitCode.html:12 — A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · High vulnerability · ×2
  • REDACTED
  • REDACTED
R8 · Dependency Hygiene · Unlisted import 'body-parser' · ×2
  • Unlisted import 'body-parser' REDACTED:4 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
  • Unlisted import 'body-parser' hackerden/front/server.js:6 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
AC2 · Forms & labels · Link with no accessible name · ×1
  • Link with no accessible name trainingportal/public/locallogin.html:116 — A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label.
D11 · Test Reliability · Test suite cannot be installed from its own lockfile · ×1
  • Test suite cannot be installed from its own lockfile: trainingportal/ — The jest suite in trainingportal/ was never exercised because its dependency install refused the committed lockfile — the dependency install for trainingportal/ refused the committed lockfile (npm error code EUSAGE), so the suite never ran. The suite is declared and committed but cannot be installed from what the repository ships, so neither this scan nor a new contributor can run it. The ask is the one the owner performs: run the install locally and commit the lockfile it writes.
D14 · License Compliance · Banned license · ×1
  • Banned license: org.openjdk.nashorn:nashorn-core — `org.openjdk.nashorn:nashorn-core` 15.4 is published on Maven Central under `GPL-2.0`, which this policy bans, and this repository declares it in a Maven or Gradle manifest. The licence was read from the artifact's POM `<licenses>` block — following `<parent>` where the POM inherits them — and normalised to SPDX before it was judged, because Maven publishes the name as free text (`GNU Affero General Public License v3` is AGPL-3.0). Where a POM lists several licences they are read as a CHOICE, per Maven's own documentation, so this is charged only because EVERY listed licence is banned. Replace the dependency, or record an accepted exception.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
Serious — 310 finding(s)
R4 · Test Coverage · No test reaches this file · ×35
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/static/main-app.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/static/submitCodeCtrl.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/static/challengesCtrl.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/static/leaderboardCtrl.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/badge.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/tools/importUsers.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/tools/setupDemo.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file hackerden/front/server.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/static/reportCtrl.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/static/trainingModulesCtrl.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file hackerden/front/bucket.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/tools/devSetup.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/tools/exportUsers.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file redblueapp/redchallenge3lambda/app.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/static/dashboardCtrl.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/static/dataSvc.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/tools/challengeUtil.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file trainingportal/static/activityCtrl.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file codereview101/snipXSS5.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file codereview101/snipXSS6.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file codereview101/snipData5.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • + 10 more in this group — see findings.md.
AC3 · Page structure · Page without a main landmark · ×17
  • Page without a main landmark bluetesterapp/views/form.html:3 — 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 bluetesterapp/views/request.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 codereview101/index.html:6 — 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 hackerden/commandproc/WebContent/index.jsp:55 — 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 hackerden/commandproc/WebContent/login.jsp:4 — 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 REDACTED:5 — 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 REDACTED:6 — 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 insecureinc/src/main/webapp/ch1.jsp:11 — 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 insecureinc/src/main/webapp/ch2.jsp:20 — 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 insecureinc/src/main/webapp/ch2loggedin.jsp:21 — 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 insecureinc/src/main/webapp/cwe120.jsp:53 — 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 insecureinc/src/main/webapp/cwe134.jsp:33 — 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 insecureinc/src/main/webapp/cwe190.jsp:45 — 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 insecureinc/src/main/webapp/cwe209.jsp:26 — 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 insecureinc/src/main/webapp/cwe209loggedin.jsp:27 — 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 insecureinc/src/main/webapp/cwe22.jsp:77 — 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 insecureinc/src/main/webapp/cwe307.jsp:23 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
D17 · Explicit Debt · TodoComment · ×15
  • TodoComment REDACTED:43 — // TODO Auto-generated method stub — 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 REDACTED:48 — // TODO Auto-generated method stub — 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 insecureinc/src/main/java/insecure/inc/Cwe22Servlet.java:35 — // TODO Auto-generated method stub — 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 insecureinc/src/main/java/insecure/inc/UnlockCodeFilter.java:40 — // TODO Auto-generated method stub — 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 insecureinc/src/main/java/insecure/inc/UnlockCodeFilter.java:47 — // TODO Auto-generated method stub — 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 insecureinc/src/main/java/insecure/inc/UnlockCodeFilter.java:80 — // TODO Auto-generated method stub — 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 hackerden/commandproc/src/serial/GetCommand.java:58 — // TODO Auto-generated method stub — 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 REDACTED:89 — // TODO Auto-generated method stub — 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 REDACTED:48 — // TODO Auto-generated catch block — 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 REDACTED:76 — // TODO Auto-generated catch block — 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 REDACTED:53 — // TODO Auto-generated catch block — 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 REDACTED:133 — // TODO Auto-generated catch block — 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 REDACTED:45 — // TODO Auto-generated catch block — 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 REDACTED:133 — // TODO Auto-generated catch block — 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 REDACTED:82 — // TODO Auto-generated catch block — 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.
D31 · IaC & Container Security · Medium IaC · ×15
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×13
  • Focus outline removed in CSS without a :focus replacement redblueapp/drupal-8.5.0/sites/default/files/css/css_-WrsEEXsu3CD7ngdWXBx3VhsNTy-rXuiVchdNMp8iZU.css:25 — `.ui-helper-reset` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement redblueapp/drupal-8.5.0/sites/default/files/css/css_-WrsEEXsu3CD7ngdWXBx3VhsNTy-rXuiVchdNMp8iZU.css:28 — `.ui-dialog` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement redblueapp/drupal-8.5.0/sites/default/files/css/css_-WrsEEXsu3CD7ngdWXBx3VhsNTy-rXuiVchdNMp8iZU.css:29 — `.quickedit-editable:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement redblueapp/drupal-8.5.0/sites/default/files/css/css_784meuLf1XxEa0aJBHdM5DsfnwhGGzACMXmUJ22g_lk.css:61 — `.skip-link` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement redblueapp/drupal-8.5.0/sites/default/files/css/css_8APOHq_BdlpreN22oegBNLp3sDVKX7_ISJXyxwe2PnA.css:25 — `.ui-helper-reset` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement redblueapp/drupal-8.5.0/sites/default/files/css/css_8APOHq_BdlpreN22oegBNLp3sDVKX7_ISJXyxwe2PnA.css:28 — `.ui-dialog` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement redblueapp/drupal-8.5.0/sites/default/files/css/css_8APOHq_BdlpreN22oegBNLp3sDVKX7_ISJXyxwe2PnA.css:29 — `.quickedit-editable:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement redblueapp/drupal-8.5.0/sites/default/files/css/css_97NGigb7VWVuTTDanLjKsObBB7Rnq8-4zw2MRgeCJ88.css:59 — `.skip-link` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement redblueapp/drupal-8.5.0/sites/default/files/css/css_mMHZVBWrcsPaqRLbvud1u1JSon5n08FZbS-IBt37v0Q.css:4 — `.contextual .trigger:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement redblueapp/drupal-8.5.0/sites/default/files/css/css_mMHZVBWrcsPaqRLbvud1u1JSon5n08FZbS-IBt37v0Q.css:10 — `.toolbar-lining button:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3518 — `.dropdown-toggle:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3573 — `.dropdown-menu > .active > a` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3592 — `.open > a` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
D29 · Static Analysis (SAST) · REDACTED · ×9
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Medium CVE · ×7
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×6
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×6
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.5 · ×5
  • Low contrast colour pair in CSS (2.5:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3173 — `.btn-success` sets color: #fff on background-color: #5cb85c — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (2.5:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3226 — `.btn-success .badge` sets color: #5cb85c on background-color: #fff — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (2.5:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3236 — `.btn-info:focus, .btn-info.focus` sets color: #fff on background-color: #31b0d5 — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (2.5:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3241 — `.btn-info:hover` sets color: #fff on background-color: #31b0d5 — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (2.5:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3248 — `.btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info` sets color: #fff on background-color: #31b0d5 — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC4 · Keyboard semantics · Anchor without href · ×3
  • Anchor without href codereview101/index.html:73 — An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
  • Anchor without href trainingportal/static/main.html:75 — An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
  • Anchor without href trainingportal/static/main.html:80 — An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (4.2 · ×3
  • Low contrast colour pair in CSS (4.2:1) redblueapp/drupal-8.5.0/sites/default/files/css/css_784meuLf1XxEa0aJBHdM5DsfnwhGGzACMXmUJ22g_lk.css:40 — `.form-disabled input,.form-disabled select,.form-disabled textarea` sets color: #717171 on background-color: #ededed — 4.2:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from).
  • Low contrast colour pair in CSS (4.2:1) redblueapp/drupal-8.5.0/sites/default/files/css/css_97NGigb7VWVuTTDanLjKsObBB7Rnq8-4zw2MRgeCJ88.css:38 — `.form-disabled input,.form-disabled select,.form-disabled textarea` sets color: #717171 on background-color: #ededed — 4.2:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from).
  • Low contrast colour pair in CSS (4.2:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:5341 — `a.list-group-item-success:hover, button.list-group-item-success:hover, a.list-group-item-success:focus, button.list-group-item-success:focus` sets color: #3c763d on background-color: #d0e9c6 — 4.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.4 · ×3
  • Low contrast colour pair in CSS (3.4:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3179 — `.btn-success:focus, .btn-success.focus` sets color: #fff on background-color: #449d44 — 3.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.4:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3184 — `.btn-success:hover` sets color: #fff on background-color: #449d44 — 3.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.4:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3191 — `.btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success` sets color: #fff on background-color: #449d44 — 3.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.3 · ×3
  • Low contrast colour pair in CSS (2.3:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3293 — `.btn-warning:focus, .btn-warning.focus` sets color: #fff on background-color: #ec971f — 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (2.3:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3298 — `.btn-warning:hover` sets color: #fff on background-color: #ec971f — 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (2.3:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3305 — `.btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning` sets color: #fff on background-color: #ec971f — 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D29 · Static Analysis (SAST) · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×3
  • Duplicated block (8 lines × 4) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:76 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:76-86 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:95-102 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:117-126 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:117-126 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:76` 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 (8 lines × 4) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:98 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:98-105 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:73-84 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:117-128 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:184-193 — there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:98` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:106` calls `getExtension`, `ensureToStringAllowed`, `escapeFilter` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:86` 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 × 4) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:25 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_xfJj5DnEqpgtG2BHufPlBKzpV/yptx1rTCbAShiVSmjZ4T7DYahhULSGVSWlyP4Ofcp18.php:31-38 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:25` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×3
  • Duplicated block (5 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:59 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:59-63 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:61-65 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_Kj22JzrbuWqFmqffbsmZOndRV/Yg85NB65pr8ajT8RbDcScHIPAYWiDQGhpZyF51niRJY.php:51-55 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:59` 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 × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:65 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:65-69 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:47-52 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:59-64 — 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. 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 (5 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:93 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:93-97 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:87-95 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:91-95 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:93` 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.
P7 · Outbound HTTP resilience · Outbound HTTP without resilience · ×3
  • Outbound HTTP without resilience codereview101/snipData3.java:10 — `.openConnection(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience codereview101/snipData4.java:10 — `.openConnection(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience trainingportal/challenges.js:415 — `https.request(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
R10 · Code Duplication · Duplicated block (11 lines × 2 locations) · ×3
  • Duplicated block (11 lines × 2 locations) REDACTED:68 — REDACTED:68 · REDACTED:105 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (11 lines × 2 locations) trainingportal/db.js:386 — trainingportal/db.js:386 · trainingportal/db.js:410 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (11 lines × 2 locations) REDACTED:256 — REDACTED:256 · REDACTED:286 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (9 lines × 2 locations) · ×3
  • Duplicated block (9 lines × 2 locations) REDACTED:121 — REDACTED:121 · REDACTED:234 — 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 locations) REDACTED:135 — REDACTED:135 · REDACTED:240 — 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 locations) trainingportal/db.js:265 — trainingportal/db.js:265 · trainingportal/db.js:335 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
X3 · Exception handling · Swallowed exception (empty catch) · ×3
  • Swallowed exception (empty catch) REDACTED:54 — 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) trainingportal/challenges.js:378 — 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) trainingportal/static/reportCtrl.js:33 — `.then(…, function(){})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
AC4 · Keyboard semantics · Modal dialog does not manage focus · ×2
  • Modal dialog does not manage focus codereview101/index.html:143 — This <div role="dialog"> is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close.
  • Modal dialog does not manage focus trainingportal/static/submitCode.html:27 — This <div role="dialog"> is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (1.3 · ×2
  • Low contrast colour pair in CSS (1.3:1) redblueapp/drupal-8.5.0/sites/default/files/css/css_784meuLf1XxEa0aJBHdM5DsfnwhGGzACMXmUJ22g_lk.css:78 — `body` sets color: #3b3b3b on background-color: #292929 — 1.3:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from).
  • Low contrast colour pair in CSS (1.3:1) redblueapp/drupal-8.5.0/sites/default/files/css/css_97NGigb7VWVuTTDanLjKsObBB7Rnq8-4zw2MRgeCJ88.css:76 — `body` sets color: #3b3b3b on background-color: #292929 — 1.3:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from).
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.1 · ×2
  • Low contrast colour pair in CSS (2.1:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3230 — `.btn-info` sets color: #fff on background-color: #5bc0de — 2.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (2.1:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3283 — `.btn-info .badge` sets color: #5bc0de on background-color: #fff — 2.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (1.9 · ×2
  • Low contrast colour pair in CSS (1.9:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3287 — `.btn-warning` sets color: #fff on background-color: #f0ad4e — 1.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (1.9:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3340 — `.btn-warning .badge` sets color: #f0ad4e on background-color: #fff — 1.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×2
  • REDACTED
  • REDACTED
D4 · Code Duplication · Edited copy of a member (28 corresponding lines) · ×2
  • Edited copy of a member (28 corresponding lines) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_file-upload-help.html.twi_WMZNPiQT8tKxmVUNwUq0L1oIP/9LcUH8l69NYemK-FgoViyxKSgXETTqR8SIkLgi0GsjQ.php:18 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_file-upload-help.html.twi_WMZNPiQT8tKxmVUNwUq0L1oIP/9LcUH8l69NYemK-FgoViyxKSgXETTqR8SIkLgi0GsjQ.php:18-45 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form.html.twig_yB95M-mH2KEXj4tKtKISfLbel/IyTQqLJeumug6kIyXNAlqXHHwoleMSFZc4xC65qfZMI.php:18-50 — 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.
  • Edited copy of a member (28 corresponding lines) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_ru8-oS6iQHH9XXT9fI_2HbHtS/VrlNrhbQg66EKZny5b1XalVC7v52-Rjs0Baed_YHe2Q.php:23 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_ru8-oS6iQHH9XXT9fI_2HbHtS/VrlNrhbQg66EKZny5b1XalVC7v52-Rjs0Baed_YHe2Q.php:23-50 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region--header.html.twig_lzq1A9ghT2jjveN_i8p4TyuUy/0nvJi3SiE0IdUIOGzZd-XxgLMToblj1suxz9j1hMG7Q.php:23-50 — 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 (17 corresponding lines) · ×2
  • Edited copy of a member (17 corresponding lines) REDACTED:202 — REDACTED:202-220 | REDACTED:222-238 — 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) REDACTED:47 — REDACTED:47-63 | REDACTED:42-58 — 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) insecureinc/src/main/java/insecure/inc/Cwe352Profile.java:34 — insecureinc/src/main/java/insecure/inc/Cwe352Profile.java:34-42 | insecureinc/src/main/java/insecure/inc/Cwe79Profile.java:34-42 — 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) REDACTED:83 — REDACTED:83-91 | REDACTED:56-64 — 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.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×2
  • Duplicated block (15 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:59 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:59-73 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:61-75 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:59` 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) REDACTED:46 — REDACTED:46-60 | REDACTED:361-375 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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.
D4 · Code Duplication · Duplicated block (14 lines × 6) · ×2
  • Duplicated block (14 lines × 6) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php:24 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php:24-37 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-messages-bl_ZI0iUqt_t91aPosCA454NgoNz/YAw8FD7fGC_91WCB4E_z8sWkU3z2RsYRTOijG4w3UPw.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form--search-block-form.h_g-IqeLH1OKGXFN_QYONS3x-jt/cdimlwnU4Rq-jkv8s1B4IE6KxM7jg2UppwlxjuShLqc.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form.html.twig_yB95M-mH2KEXj4tKtKISfLbel/IyTQqLJeumug6kIyXNAlqXHHwoleMSFZc4xC65qfZMI.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_input.html.twig_jYi6QYvFpjKLYKZCId7BmHw8z/qgy3jIiptd6GJnyMuXQUj15oLLTG_qxSscQSTxKEIDo.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-task.html.twig_CyZBDRlpXnhaZDz3KzNHr4Ys1/0F3kiEF3DHpRauIwnwJjql1k0CiCkD63DpHDfKrCQDQ.php:18-31 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-messages-bl_ZI0iUqt_t91aPosCA454NgoNz/YAw8FD7fGC_91WCB4E_z8sWkU3z2RsYRTOijG4w3UPw.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php:24` 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 (14 lines × 6) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:24 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:24-37 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region.html.twig_MR3fMmw95qbpuDFvbyuI9QHlG/JNyR-dg9X1cxtCQ9FtokZlD5ZdA6P6QJViu4Lt7Lqog.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:18-31 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:24` 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.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×2
  • Duplicated block (14 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:24 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:24-37 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:18-31 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:24` 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 (14 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:18 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element-label.html.t_LIUK9REF8eGBcgyB37knqChLi/-RfouoyiEX8WKGLE0ZV1CZIKkCANHw7ZxD2h19_J10M.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:18-31 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element-label.html.t_LIUK9REF8eGBcgyB37knqChLi/-RfouoyiEX8WKGLE0ZV1CZIKkCANHw7ZxD2h19_J10M.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:18` 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.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×2
  • Duplicated block (14 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._2hNSCNK6Y2jmAWQaMH3vksp4p/6oORERJDdYH03S53XwLVQPbbW3kpGiNu8dHWCTAcyk4.php:19 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._2hNSCNK6Y2jmAWQaMH3vksp4p/6oORERJDdYH03S53XwLVQPbbW3kpGiNu8dHWCTAcyk4.php:19-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:18-31 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._2hNSCNK6Y2jmAWQaMH3vksp4p/6oORERJDdYH03S53XwLVQPbbW3kpGiNu8dHWCTAcyk4.php:19` 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 (14 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:18 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_xfJj5DnEqpgtG2BHufPlBKzpV/yptx1rTCbAShiVSmjZ4T7DYahhULSGVSWlyP4Ofcp18.php:24-37 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_xfJj5DnEqpgtG2BHufPlBKzpV/yptx1rTCbAShiVSmjZ4T7DYahhULSGVSWlyP4Ofcp18.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:18` 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.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×2
  • Duplicated block (11 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:43 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:43-53 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:55-65 — 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) REDACTED:242 — REDACTED:242-252 | REDACTED:256-266 — 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. 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.
D4 · Code Duplication · Duplicated block (6–9 lines × 3) · ×2
  • Duplicated block (6–9 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:36 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:36-41 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region.html.twig_MR3fMmw95qbpuDFvbyuI9QHlG/JNyR-dg9X1cxtCQ9FtokZlD5ZdA6P6QJViu4Lt7Lqog.php:35-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:35-43 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region.html.twig_MR3fMmw95qbpuDFvbyuI9QHlG/JNyR-dg9X1cxtCQ9FtokZlD5ZdA6P6QJViu4Lt7Lqog.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:36` 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.
  • Duplicated block (6–9 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:35 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:35-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element-label.html.t_LIUK9REF8eGBcgyB37knqChLi/-RfouoyiEX8WKGLE0ZV1CZIKkCANHw7ZxD2h19_J10M.php:35-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_html.html.twig_gQv-GORxUVif_Pag4s-5z2NkO/cYnlO1DSpMRHNEDLUe4WMKKLAJGvx0oh37UsBWQK5n8.php:35-43 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element-label.html.t_LIUK9REF8eGBcgyB37knqChLi/-RfouoyiEX8WKGLE0ZV1CZIKkCANHw7ZxD2h19_J10M.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:35` 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.
D4 · Code Duplication · Duplicated block (7 lines × 5) · ×2
  • Duplicated block (7 lines × 5) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:32 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:32-38 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_xfJj5DnEqpgtG2BHufPlBKzpV/yptx1rTCbAShiVSmjZ4T7DYahhULSGVSWlyP4Ofcp18.php:32-38 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:32` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (7 lines × 5) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:76 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:76-85 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:95-101 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:68-76 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:117-125 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:117-125 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:76` 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.
D4 · Code Duplication · Duplicated block (6 lines × 7) · ×2
  • Duplicated block (6 lines × 7) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:52 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:52-57 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:54-59 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:64-72 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:91-96 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:54-59 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:44-50 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:55-60 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php: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. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:60` calls `getExtension`, `ensureToStringAllowed`, `escapeFilter` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:98` 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) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:8 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:8-14 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php:8-14 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:8-14 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:8-14 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_ru8-oS6iQHH9XXT9fI_2HbHtS/VrlNrhbQg66EKZny5b1XalVC7v52-Rjs0Baed_YHe2Q.php:8-13 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region--header.html.twig_lzq1A9ghT2jjveN_i8p4TyuUy/0nvJi3SiE0IdUIOGzZd-XxgLMToblj1suxz9j1hMG7Q.php:8-13 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_xfJj5DnEqpgtG2BHufPlBKzpV/yptx1rTCbAShiVSmjZ4T7DYahhULSGVSWlyP4Ofcp18.php:8-14 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×2
  • Duplicated block (5 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:71 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:71-75 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:77-81 — 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, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:76` calls `t`, `array`, `getAttribute` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:70` 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) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:77 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:77-81 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:83-89 — 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. 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.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×2
  • Duplicated block (8 lines × 2) REDACTED:71 — REDACTED:71-78 | REDACTED:65-72 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:71` 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) insecureinc/src/main/java/insecure/inc/Cwe352Profile.java:35 — insecureinc/src/main/java/insecure/inc/Cwe352Profile.java:35-42 | insecureinc/src/main/java/insecure/inc/Cwe79Profile.java:35-42 — 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. 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.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×2
  • Sync-over-async blocking trainingportal/db.js:193 — `fs.readFileSync` in `init` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking trainingportal/db.js:228 — `fs.readFileSync` in `init` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
R10 · Code Duplication · Duplicated block (10 lines × 2 locations) · ×2
  • Duplicated block (10 lines × 2 locations) trainingportal/db.js:343 — trainingportal/db.js:343 · trainingportal/db.js:380 — 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 (10 lines × 2 locations) trainingportal/qna.js:231 — trainingportal/qna.js:231 · trainingportal/qna.js:244 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R7 · Dead Code · Dead file (~13 LoC) · ×2
  • Dead file (~13 LoC) codereview101/snipXSS5.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~13 LoC) codereview101/snipXSS6.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~11 LoC) · ×2
  • Dead file (~11 LoC) codereview101/snipData5.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~11 LoC) codereview101/snipData6.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~10 LoC) · ×2
  • Dead file (~10 LoC) codereview101/snipXSS7.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~10 LoC) codereview101/snipXSS8.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~8 LoC) · ×2
  • Dead file (~8 LoC) codereview101/snipXSS10.jsx — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~8 LoC) REDACTED — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~4 LoC) · ×2
  • Dead file (~4 LoC) redblueapp/drupal-8.5.0/sites/default/files/js/js_BKcMdIbOMdbTdLn9dkUq3KCJfIKKo2SvKoQ1AnB8D-g.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~4 LoC) trainingportal/tools/recreateBadgesOnModulesUpdate.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
AC3 · Page structure · Heading level jumps from h1 to h3 · ×1
  • Heading level jumps from h1 to h3 codereview101/index.html:121 — Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one.
AC4 · Keyboard semantics · Link used as a button (placeholder href) · ×1
  • Link used as a button (placeholder href) bluetesterapp/views/form.html:28 — An <a href="#"> (or javascript:) with a click handler is a button dressed as a link — it announces the wrong role and stops working without JS. Use a <button> for an action.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.8 · ×1
  • Low contrast colour pair in CSS (3.8:1) redblueapp/drupal-8.5.0/sites/default/files/css/css_mMHZVBWrcsPaqRLbvud1u1JSon5n08FZbS-IBt37v0Q.css:5 — `.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,a.ui-button:active,.ui-button:active,.ui-button.ui-state-active:hover` sets color: #ffffff on background-color: #007fff — 3.8:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from).
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.3 · ×1
  • Low contrast colour pair in CSS (3.3:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3261 — `.btn-info:active:hover, .btn-info.active:hover, .open > .dropdown-toggle.btn-info:hover, .btn-info:active:focus, .btn-info.active:focus, .open > .dropdown-toggle.btn-info:focus, .btn-info:active.focus, .btn-info.active.focus, .open > .dropdown-toggle.btn-info.focus` sets color: #fff on background-color: #269abc — 3.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.9 · ×1
  • Low contrast colour pair in CSS (2.9:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:3318 — `.btn-warning:active:hover, .btn-warning.active:hover, .open > .dropdown-toggle.btn-warning:hover, .btn-warning:active:focus, .btn-warning.active:focus, .open > .dropdown-toggle.btn-warning:focus, .btn-warning:active.focus, .btn-warning.active.focus, .open > .dropdown-toggle.btn-warning.focus` sets color: #fff on background-color: #d58512 — 2.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (4.1 · ×1
  • Low contrast colour pair in CSS (4.1:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:5370 — `a.list-group-item-info:hover, button.list-group-item-info:hover, a.list-group-item-info:focus, button.list-group-item-info:focus` sets color: #31708f on background-color: #c4e3f3 — 4.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (4.3 · ×1
  • Low contrast colour pair in CSS (4.3:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:5399 — `a.list-group-item-warning:hover, button.list-group-item-warning:hover, a.list-group-item-warning:focus, button.list-group-item-warning:focus` sets color: #8a6d3b on background-color: #faf2cc — 4.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.9 · ×1
  • Low contrast colour pair in CSS (3.9:1) insecureinc/src/main/webapp/public/bootstrap/css/bootstrap.css:5428 — `a.list-group-item-danger:hover, button.list-group-item-danger:hover, a.list-group-item-danger:focus, button.list-group-item-danger:focus` sets color: #a94442 on background-color: #ebcccc — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (1.5 · ×1
  • Low contrast colour pair in CSS (1.5:1) bluetesterapp/views/form.css:85 — `.testerapp a:hover` sets color: #fff on background-color: #03e9f4 — 1.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D10 · Test Quality · No assertions · ×1
  • No assertions: should delete the user without error trainingportal/test/db.test.js:52 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
D17 · Explicit Debt · TodoComment repeated across 12 files · ×1
  • TodoComment repeated across 12 files REDACTED:36 — The identical TodoComment appears in 12 files (12 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 12 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO Auto-generated constructor stub". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D35 · Change Coupling · Change coupling · ×1
  • Change coupling: REDACTED ↔ main-app.js REDACTED:1 — `REDACTED` and `trainingportal/static/main-app.js` change together 67% of the time (18 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 18 shared commits counted here, the most recent 3 are `fcd3aefc` Support crypto challenges within the portal; `5dba4fec` Dojo badges and share links; `6736c956` Dojo badges and share links — run `git show` on any of them.
D35 · Change Coupling · Change-coupling hub · ×1
  • Change-coupling hub: submitCodeCtrl.js → challenges.js, REDACTED, main-app.js trainingportal/static/submitCodeCtrl.js — `trainingportal/static/submitCodeCtrl.js` changes together with 3 other files — `trainingportal/challenges.js`, `REDACTED`, `trainingportal/static/main-app.js` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
D4 · Code Duplication · Near-duplicate member family (10 members, 15 shared lines) · ×1
  • Near-duplicate member family (10 members, 15 shared lines) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:19 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:19-73 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:24-53 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:19-75 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:18-115 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:18-140 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:18-134 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_Kj22JzrbuWqFmqffbsmZOndRV/Yg85NB65pr8ajT8RbDcScHIPAYWiDQGhpZyF51niRJY.php:18-59 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:18-205 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_select.html.twig_Mr8lFiPaNe0gAm8QCjlpAZN1y/DQZk6Bx1qWFu8nK8Ym5RsYVn4t3kAKF-MTrJatSbXJc.php:18-101 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:18-116 — These 10 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times.
D4 · Code Duplication · Near-duplicate member family (3 members, 22 shared lines) · ×1
  • Near-duplicate member family (3 members, 22 shared lines) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:18 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:18-86 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:18-102 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:18-76 — These 3 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times.
D4 · Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (7 members, 50+ identical tokens) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:60 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:60-89 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:82-90 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:18-53 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:57-137 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:57-137 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:18-116 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_user.html.twig_KTRNr226v0rq8yWMg4jpuD1r8/wISZmV_ejjXXhEpHJN1i1ySzu3bD64CBji1oc4RX6AE.php:18-54 — 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 · Edited copy of a member (35 corresponding lines) · ×1
  • Edited copy of a member (35 corresponding lines) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:18 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:18-52 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element-label.html.t_LIUK9REF8eGBcgyB37knqChLi/-RfouoyiEX8WKGLE0ZV1CZIKkCANHw7ZxD2h19_J10M.php:18-56 — 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 copy of a member (31 corresponding lines) · ×1
  • Edited copy of a member (31 corresponding lines) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form--search-block-form.h_g-IqeLH1OKGXFN_QYONS3x-jt/cdimlwnU4Rq-jkv8s1B4IE6KxM7jg2UppwlxjuShLqc.php:18 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form--search-block-form.h_g-IqeLH1OKGXFN_QYONS3x-jt/cdimlwnU4Rq-jkv8s1B4IE6KxM7jg2UppwlxjuShLqc.php:18-50 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-task.html.twig_CyZBDRlpXnhaZDz3KzNHr4Ys1/0F3kiEF3DHpRauIwnwJjql1k0CiCkD63DpHDfKrCQDQ.php:18-48 — 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 (25 corresponding lines) · ×1
  • Edited copy of a member (25 corresponding lines) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php:24 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php:24-48 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-messages-bl_ZI0iUqt_t91aPosCA454NgoNz/YAw8FD7fGC_91WCB4E_z8sWkU3z2RsYRTOijG4w3UPw.php:18-45 — These two members are one piece of code written twice and then edited apart: 25 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 · Duplicated block (32 lines × 2) · ×1
  • Duplicated block (32 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:106 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:106-137 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:106-137 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:106` 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.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×1
  • Duplicated block (22 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:57 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:57-78 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:57-78 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:57` 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.
D4 · Code Duplication · Duplicated block (1–21 lines × 7) · ×1
  • Duplicated block (1–21 lines × 7) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:62 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:62-63 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:84-84 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:47-48 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:80-100 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:80-100 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:45-45 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_user.html.twig_KTRNr226v0rq8yWMg4jpuD1r8/wISZmV_ejjXXhEpHJN1i1ySzu3bD64CBji1oc4RX6AE.php:45-46 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:80` 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.
D4 · Code Duplication · Duplicated block (34 lines × 2) · ×1
  • Duplicated block (34 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:18 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:18-51 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:18-51 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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.
D4 · Code Duplication · Duplicated block (14 lines × 7) · ×1
  • Duplicated block (14 lines × 7) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:18 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_off-canvas-page-wrapper.h_hlAfqNqVOta6cQY1nMpQqxAZ7/4pUwu8ccwO-98k5hy3Wok8ImseRz1JNU7pkXCgsL_vw.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_Kj22JzrbuWqFmqffbsmZOndRV/Yg85NB65pr8ajT8RbDcScHIPAYWiDQGhpZyF51niRJY.php:18-31 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_ru8-oS6iQHH9XXT9fI_2HbHtS/VrlNrhbQg66EKZny5b1XalVC7v52-Rjs0Baed_YHe2Q.php:23-36 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region--header.html.twig_lzq1A9ghT2jjveN_i8p4TyuUy/0nvJi3SiE0IdUIOGzZd-XxgLMToblj1suxz9j1hMG7Q.php:23-36 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_user.html.twig_KTRNr226v0rq8yWMg4jpuD1r8/wISZmV_ejjXXhEpHJN1i1ySzu3bD64CBji1oc4RX6AE.php:18-31 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:18` 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.
D4 · Code Duplication · Duplicated block (11–14 lines × 2) · ×1
  • Duplicated block (11–14 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:45 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:45-58 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:43-53 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:45` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:60` calls `getAttribute`, `array` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:53` 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.
D4 · Code Duplication · Duplicated block (11–13 lines × 2) · ×1
  • Duplicated block (11–13 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71-83 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:107-117 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71` 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.
D4 · Code Duplication · Duplicated block (11–12 lines × 4) · ×1
  • Duplicated block (11–12 lines × 4) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:72 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:72-83 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:65-75 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:113-124 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:113-124 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:72` 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.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×1
  • Duplicated block (12 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:40 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:40-51 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_ru8-oS6iQHH9XXT9fI_2HbHtS/VrlNrhbQg66EKZny5b1XalVC7v52-Rjs0Baed_YHe2Q.php:39-50 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region--header.html.twig_lzq1A9ghT2jjveN_i8p4TyuUy/0nvJi3SiE0IdUIOGzZd-XxgLMToblj1suxz9j1hMG7Q.php:39-50 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_ru8-oS6iQHH9XXT9fI_2HbHtS/VrlNrhbQg66EKZny5b1XalVC7v52-Rjs0Baed_YHe2Q.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:40` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×1
  • Duplicated block (12 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:36 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:36-47 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:36-50 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:36` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (11 lines × 4) · ×1
  • Duplicated block (11 lines × 4) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:35 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:35-46 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:35-45 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_off-canvas-page-wrapper.h_hlAfqNqVOta6cQY1nMpQqxAZ7/4pUwu8ccwO-98k5hy3Wok8ImseRz1JNU7pkXCgsL_vw.php:35-46 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:35-46 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:35` 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.
D4 · Code Duplication · Duplicated block (10–11 lines × 3) · ×1
  • Duplicated block (10–11 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:36 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:36-45 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form.html.twig_yB95M-mH2KEXj4tKtKISfLbel/IyTQqLJeumug6kIyXNAlqXHHwoleMSFZc4xC65qfZMI.php:36-46 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_input.html.twig_jYi6QYvFpjKLYKZCId7BmHw8z/qgy3jIiptd6GJnyMuXQUj15oLLTG_qxSscQSTxKEIDo.php:36-45 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form.html.twig_yB95M-mH2KEXj4tKtKISfLbel/IyTQqLJeumug6kIyXNAlqXHHwoleMSFZc4xC65qfZMI.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:36` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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.
D4 · Code Duplication · Duplicated block (10 lines × 10) · ×1
  • Duplicated block (10 lines × 10) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:34 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form--search-block-form.h_g-IqeLH1OKGXFN_QYONS3x-jt/cdimlwnU4Rq-jkv8s1B4IE6KxM7jg2UppwlxjuShLqc.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form.html.twig_yB95M-mH2KEXj4tKtKISfLbel/IyTQqLJeumug6kIyXNAlqXHHwoleMSFZc4xC65qfZMI.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_input.html.twig_jYi6QYvFpjKLYKZCId7BmHw8z/qgy3jIiptd6GJnyMuXQUj15oLLTG_qxSscQSTxKEIDo.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:34-46 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-task.html.twig_CyZBDRlpXnhaZDz3KzNHr4Ys1/0F3kiEF3DHpRauIwnwJjql1k0CiCkD63DpHDfKrCQDQ.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:34-45 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_user.html.twig_KTRNr226v0rq8yWMg4jpuD1r8/wISZmV_ejjXXhEpHJN1i1ySzu3bD64CBji1oc4RX6AE.php:34-43 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form--search-block-form.h_g-IqeLH1OKGXFN_QYONS3x-jt/cdimlwnU4Rq-jkv8s1B4IE6KxM7jg2UppwlxjuShLqc.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:34` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:44` calls `getExtension`, `ensureToStringAllowed`, `escapeFilter` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:44` 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.
D4 · Code Duplication · Duplicated block (10 lines × 5) · ×1
  • Duplicated block (10 lines × 5) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:34 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_off-canvas-page-wrapper.h_hlAfqNqVOta6cQY1nMpQqxAZ7/4pUwu8ccwO-98k5hy3Wok8ImseRz1JNU7pkXCgsL_vw.php:34-43 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:34-43 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:34` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:46` calls `getExtension`, `ensureToStringAllowed`, `renderVar` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:45` 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.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×1
  • Duplicated block (10 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:73 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:73-84 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:117-128 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:184-193 — 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 `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:73` 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.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×1
  • Duplicated block (10 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-messages-bl_ZI0iUqt_t91aPosCA454NgoNz/YAw8FD7fGC_91WCB4E_z8sWkU3z2RsYRTOijG4w3UPw.php:36 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-messages-bl_ZI0iUqt_t91aPosCA454NgoNz/YAw8FD7fGC_91WCB4E_z8sWkU3z2RsYRTOijG4w3UPw.php:36-45 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_Kj22JzrbuWqFmqffbsmZOndRV/Yg85NB65pr8ajT8RbDcScHIPAYWiDQGhpZyF51niRJY.php:36-45 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-messages-bl_ZI0iUqt_t91aPosCA454NgoNz/YAw8FD7fGC_91WCB4E_z8sWkU3z2RsYRTOijG4w3UPw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_Kj22JzrbuWqFmqffbsmZOndRV/Yg85NB65pr8ajT8RbDcScHIPAYWiDQGhpZyF51niRJY.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-messages-bl_ZI0iUqt_t91aPosCA454NgoNz/YAw8FD7fGC_91WCB4E_z8sWkU3z2RsYRTOijG4w3UPw.php:36` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×1
  • Duplicated block (9 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:40 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:40-48 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php:40-48 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_xfJj5DnEqpgtG2BHufPlBKzpV/yptx1rTCbAShiVSmjZ4T7DYahhULSGVSWlyP4Ofcp18.php:40-48 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:40` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (1–9 lines × 4) · ×1
  • Duplicated block (1–9 lines × 4) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:72 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:72-80 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:99-107 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:194-202 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:221-221 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:72` 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.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×1
  • Duplicated block (9 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:131 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:131-139 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:156-164 — 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 `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:131` 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.
D4 · Code Duplication · Duplicated block (8 lines × 19) · ×1
  • Duplicated block (8 lines × 19) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:26 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:26-33 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php:31-38 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-messages-bl_ZI0iUqt_t91aPosCA454NgoNz/YAw8FD7fGC_91WCB4E_z8sWkU3z2RsYRTOijG4w3UPw.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form--search-block-form.h_g-IqeLH1OKGXFN_QYONS3x-jt/cdimlwnU4Rq-jkv8s1B4IE6KxM7jg2UppwlxjuShLqc.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element-label.html.t_LIUK9REF8eGBcgyB37knqChLi/-RfouoyiEX8WKGLE0ZV1CZIKkCANHw7ZxD2h19_J10M.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form.html.twig_yB95M-mH2KEXj4tKtKISfLbel/IyTQqLJeumug6kIyXNAlqXHHwoleMSFZc4xC65qfZMI.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_input.html.twig_jYi6QYvFpjKLYKZCId7BmHw8z/qgy3jIiptd6GJnyMuXQUj15oLLTG_qxSscQSTxKEIDo.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-task.html.twig_CyZBDRlpXnhaZDz3KzNHr4Ys1/0F3kiEF3DHpRauIwnwJjql1k0CiCkD63DpHDfKrCQDQ.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_off-canvas-page-wrapper.h_hlAfqNqVOta6cQY1nMpQqxAZ7/4pUwu8ccwO-98k5hy3Wok8ImseRz1JNU7pkXCgsL_vw.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_Kj22JzrbuWqFmqffbsmZOndRV/Yg85NB65pr8ajT8RbDcScHIPAYWiDQGhpZyF51niRJY.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_ru8-oS6iQHH9XXT9fI_2HbHtS/VrlNrhbQg66EKZny5b1XalVC7v52-Rjs0Baed_YHe2Q.php:30-37 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region--header.html.twig_lzq1A9ghT2jjveN_i8p4TyuUy/0nvJi3SiE0IdUIOGzZd-XxgLMToblj1suxz9j1hMG7Q.php:30-37 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_select.html.twig_Mr8lFiPaNe0gAm8QCjlpAZN1y/DQZk6Bx1qWFu8nK8Ym5RsYVn4t3kAKF-MTrJatSbXJc.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_user.html.twig_KTRNr226v0rq8yWMg4jpuD1r8/wISZmV_ejjXXhEpHJN1i1ySzu3bD64CBji1oc4RX6AE.php:25-32 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:26` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (8 lines × 12) · ×1
  • Duplicated block (8 lines × 12) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:31 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:31-38 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:31-38 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:26-33 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_file-upload-help.html.twi_WMZNPiQT8tKxmVUNwUq0L1oIP/9LcUH8l69NYemK-FgoViyxKSgXETTqR8SIkLgi0GsjQ.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region.html.twig_MR3fMmw95qbpuDFvbyuI9QHlG/JNyR-dg9X1cxtCQ9FtokZlD5ZdA6P6QJViu4Lt7Lqog.php:25-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:25-32 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:31` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (8 lines × 5) · ×1
  • Duplicated block (8 lines × 5) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:61 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:61-68 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:63-70 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:85-92 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:52-59 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:62-69 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:61` 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.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×1
  • Duplicated block (8 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_select.html.twig_Mr8lFiPaNe0gAm8QCjlpAZN1y/DQZk6Bx1qWFu8nK8Ym5RsYVn4t3kAKF-MTrJatSbXJc.php:72 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_select.html.twig_Mr8lFiPaNe0gAm8QCjlpAZN1y/DQZk6Bx1qWFu8nK8Ym5RsYVn4t3kAKF-MTrJatSbXJc.php:72-79 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_3IhisVoQLOYIb64NBegMDuHJs/FWtNnMpjjfglEUEptHWQmVJBQNk--VqUAn-Y19ueolo.php:93-100 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:103-110 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_select.html.twig_Mr8lFiPaNe0gAm8QCjlpAZN1y/DQZk6Bx1qWFu8nK8Ym5RsYVn4t3kAKF-MTrJatSbXJc.php:72` 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.
D4 · Code Duplication · Duplicated block (14 lines × 40) · ×1
  • Duplicated block (14 lines × 40) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:33 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:33-46 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:28-41 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php:33-46 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:33-46 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:33-46 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._2hNSCNK6Y2jmAWQaMH3vksp4p/6oORERJDdYH03S53XwLVQPbbW3kpGiNu8dHWCTAcyk4.php:28-41 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-messages-bl_ZI0iUqt_t91aPosCA454NgoNz/YAw8FD7fGC_91WCB4E_z8sWkU3z2RsYRTOijG4w3UPw.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:28-41 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_file-upload-help.html.twi_WMZNPiQT8tKxmVUNwUq0L1oIP/9LcUH8l69NYemK-FgoViyxKSgXETTqR8SIkLgi0GsjQ.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form--search-block-form.h_g-IqeLH1OKGXFN_QYONS3x-jt/cdimlwnU4Rq-jkv8s1B4IE6KxM7jg2UppwlxjuShLqc.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element-label.html.t_LIUK9REF8eGBcgyB37knqChLi/-RfouoyiEX8WKGLE0ZV1CZIKkCANHw7ZxD2h19_J10M.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form.html.twig_yB95M-mH2KEXj4tKtKISfLbel/IyTQqLJeumug6kIyXNAlqXHHwoleMSFZc4xC65qfZMI.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_html.html.twig_gQv-GORxUVif_Pag4s-5z2NkO/cYnlO1DSpMRHNEDLUe4WMKKLAJGvx0oh37UsBWQK5n8.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_input.html.twig_jYi6QYvFpjKLYKZCId7BmHw8z/qgy3jIiptd6GJnyMuXQUj15oLLTG_qxSscQSTxKEIDo.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-task.html.twig_CyZBDRlpXnhaZDz3KzNHr4Ys1/0F3kiEF3DHpRauIwnwJjql1k0CiCkD63DpHDfKrCQDQ.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_off-canvas-page-wrapper.h_hlAfqNqVOta6cQY1nMpQqxAZ7/4pUwu8ccwO-98k5hy3Wok8ImseRz1JNU7pkXCgsL_vw.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_Kj22JzrbuWqFmqffbsmZOndRV/Yg85NB65pr8ajT8RbDcScHIPAYWiDQGhpZyF51niRJY.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_ru8-oS6iQHH9XXT9fI_2HbHtS/VrlNrhbQg66EKZny5b1XalVC7v52-Rjs0Baed_YHe2Q.php:32-45 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region--header.html.twig_lzq1A9ghT2jjveN_i8p4TyuUy/0nvJi3SiE0IdUIOGzZd-XxgLMToblj1suxz9j1hMG7Q.php:32-45 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region.html.twig_MR3fMmw95qbpuDFvbyuI9QHlG/JNyR-dg9X1cxtCQ9FtokZlD5ZdA6P6QJViu4Lt7Lqog.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_select.html.twig_Mr8lFiPaNe0gAm8QCjlpAZN1y/DQZk6Bx1qWFu8nK8Ym5RsYVn4t3kAKF-MTrJatSbXJc.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_3IhisVoQLOYIb64NBegMDuHJs/FWtNnMpjjfglEUEptHWQmVJBQNk--VqUAn-Y19ueolo.php:28-41 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_xfJj5DnEqpgtG2BHufPlBKzpV/yptx1rTCbAShiVSmjZ4T7DYahhULSGVSWlyP4Ofcp18.php:33-46 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_user.html.twig_KTRNr226v0rq8yWMg4jpuD1r8/wISZmV_ejjXXhEpHJN1i1ySzu3bD64CBji1oc4RX6AE.php:27-40 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:27-40 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:33` 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, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:49` calls `getAttribute`, `array` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:48` 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.
D4 · Code Duplication · Duplicated block (7 lines × 35) · ×1
  • Duplicated block (7 lines × 35) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:32 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:32-38 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:27-33 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php:32-38 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:32-38 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._2hNSCNK6Y2jmAWQaMH3vksp4p/6oORERJDdYH03S53XwLVQPbbW3kpGiNu8dHWCTAcyk4.php:27-33 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-messages-bl_ZI0iUqt_t91aPosCA454NgoNz/YAw8FD7fGC_91WCB4E_z8sWkU3z2RsYRTOijG4w3UPw.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:27-33 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_feed-icon.html.twig_GzHwYygHdH77hQiaDIr3hDVlR/1lcu-qEhbObV1LRdyrsAc_KkyOBpmDWXxx2HcySsV3M.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_file-upload-help.html.twi_WMZNPiQT8tKxmVUNwUq0L1oIP/9LcUH8l69NYemK-FgoViyxKSgXETTqR8SIkLgi0GsjQ.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form--search-block-form.h_g-IqeLH1OKGXFN_QYONS3x-jt/cdimlwnU4Rq-jkv8s1B4IE6KxM7jg2UppwlxjuShLqc.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element-label.html.t_LIUK9REF8eGBcgyB37knqChLi/-RfouoyiEX8WKGLE0ZV1CZIKkCANHw7ZxD2h19_J10M.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form.html.twig_yB95M-mH2KEXj4tKtKISfLbel/IyTQqLJeumug6kIyXNAlqXHHwoleMSFZc4xC65qfZMI.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_html.html.twig_gQv-GORxUVif_Pag4s-5z2NkO/cYnlO1DSpMRHNEDLUe4WMKKLAJGvx0oh37UsBWQK5n8.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_input.html.twig_jYi6QYvFpjKLYKZCId7BmHw8z/qgy3jIiptd6GJnyMuXQUj15oLLTG_qxSscQSTxKEIDo.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-task.html.twig_CyZBDRlpXnhaZDz3KzNHr4Ys1/0F3kiEF3DHpRauIwnwJjql1k0CiCkD63DpHDfKrCQDQ.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-tasks.html.twi_-U9q0KfMoCml9W-9XJZZCwICm/aZ0EroeIWY8VaD7eoPKtJBzraMHRt-2Om8_1kYqphJU.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_off-canvas-page-wrapper.h_hlAfqNqVOta6cQY1nMpQqxAZ7/4pUwu8ccwO-98k5hy3Wok8ImseRz1JNU7pkXCgsL_vw.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_Kj22JzrbuWqFmqffbsmZOndRV/Yg85NB65pr8ajT8RbDcScHIPAYWiDQGhpZyF51niRJY.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_ru8-oS6iQHH9XXT9fI_2HbHtS/VrlNrhbQg66EKZny5b1XalVC7v52-Rjs0Baed_YHe2Q.php:31-37 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region--header.html.twig_lzq1A9ghT2jjveN_i8p4TyuUy/0nvJi3SiE0IdUIOGzZd-XxgLMToblj1suxz9j1hMG7Q.php:31-37 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region.html.twig_MR3fMmw95qbpuDFvbyuI9QHlG/JNyR-dg9X1cxtCQ9FtokZlD5ZdA6P6QJViu4Lt7Lqog.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_select.html.twig_Mr8lFiPaNe0gAm8QCjlpAZN1y/DQZk6Bx1qWFu8nK8Ym5RsYVn4t3kAKF-MTrJatSbXJc.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_3IhisVoQLOYIb64NBegMDuHJs/FWtNnMpjjfglEUEptHWQmVJBQNk--VqUAn-Y19ueolo.php:27-33 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_user.html.twig_KTRNr226v0rq8yWMg4jpuD1r8/wISZmV_ejjXXhEpHJN1i1ySzu3bD64CBji1oc4RX6AE.php:26-32 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:26-32 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:32` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (7 lines × 8) · ×1
  • Duplicated block (7 lines × 8) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71-80 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:83-89 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:96-102 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:116-125 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:59-66 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:91-97 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:50-56 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:60-66 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:90` calls `getExtension`, `ensureToStringAllowed`, `escapeFilter` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:80` 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.
D4 · Code Duplication · Duplicated block (7 lines × 6) · ×1
  • Duplicated block (7 lines × 6) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:59 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:59-65 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:61-67 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:83-89 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:91-97 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:50-56 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:60-66 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:59` 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, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:58` calls `getExtension`, `ensureToStringAllowed`, `escapeFilter` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:58` 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.
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×1
  • Duplicated block (7 lines × 4) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71-80 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:71-77 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:107-113 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:116-125 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71` 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.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×1
  • Duplicated block (7 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:69 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:69-75 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_select.html.twig_Mr8lFiPaNe0gAm8QCjlpAZN1y/DQZk6Bx1qWFu8nK8Ym5RsYVn4t3kAKF-MTrJatSbXJc.php:47-54 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:53-60 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:69` 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.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×1
  • Duplicated block (7 lines × 2) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:62 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:62-68 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:71-77 — 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 `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:62` 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.
D4 · Code Duplication · Duplicated block (3–7 lines × 3) · ×1
  • Duplicated block (3–7 lines × 3) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:69 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:69-75 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:45-53 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_select.html.twig_Mr8lFiPaNe0gAm8QCjlpAZN1y/DQZk6Bx1qWFu8nK8Ym5RsYVn4t3kAKF-MTrJatSbXJc.php:64-66 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:69` 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.
D4 · Code Duplication · Duplicated block (6 lines × 8) · ×1
  • Duplicated block (6 lines × 8) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:109 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:109-115 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:73-79 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:87-95 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:117-123 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:131-139 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:156-164 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:184-189 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:196-205 — there are 8 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 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php: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. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:141` calls `getAttribute`, `array` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:97` 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.
D4 · Code Duplication · Duplicated block (6 lines × 6) · ×1
  • Duplicated block (6 lines × 6) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:52 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:52-57 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:54-59 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:91-96 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:54-59 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_Kj22JzrbuWqFmqffbsmZOndRV/Yg85NB65pr8ajT8RbDcScHIPAYWiDQGhpZyF51niRJY.php:44-49 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:55-60 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php: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, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:60` calls `getExtension`, `ensureToStringAllowed`, `escapeFilter` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:98` 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.
D4 · Code Duplication · Duplicated block (3–6 lines × 9) · ×1
  • Duplicated block (3–6 lines × 9) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:88 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:88-90 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:60-62 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:64-69 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:87-89 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:91-96 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:182-184 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:186-191 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:209-211 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:213-218 — there are 9 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 9 sites; resolving a subset leaves the remainder to drift apart. 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.
D4 · Code Duplication · Duplicated block (5–6 lines × 4) · ×1
  • Duplicated block (5–6 lines × 4) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:102 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:102-106 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:61-70 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:105-114 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:76-81 — there are 4 copies across 3 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:61` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:102` calls `getExtension`, `ensureToStringAllowed`, `escapeFilter` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:76` 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.
D4 · Code Duplication · Duplicated block (5 lines × 9) · ×1
  • Duplicated block (5 lines × 9) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71-78 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:83-87 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:96-100 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:116-123 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:59-63 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:91-95 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_off-canvas-page-wrapper.h_hlAfqNqVOta6cQY1nMpQqxAZ7/4pUwu8ccwO-98k5hy3Wok8ImseRz1JNU7pkXCgsL_vw.php:45-52 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:50-54 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:60-64 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:71` 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, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:90` calls `getExtension`, `ensureToStringAllowed`, `escapeFilter` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:80` 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.
D4 · Code Duplication · Duplicated block (2–5 lines × 12) · ×1
  • Duplicated block (2–5 lines × 12) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:51 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:51-55 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:53-57 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_container.html.twig_5ytYVUs_gdkx819cOy1xqJ2Z_/QwKrc_sCa6tntQN2KpeanDQmr3aGiUH-_ZNrIbeyq7E.php:49-50 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:90-94 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form--search-block-form.h_g-IqeLH1OKGXFN_QYONS3x-jt/cdimlwnU4Rq-jkv8s1B4IE6KxM7jg2UppwlxjuShLqc.php:45-48 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element-label.html.t_LIUK9REF8eGBcgyB37knqChLi/-RfouoyiEX8WKGLE0ZV1CZIKkCANHw7ZxD2h19_J10M.php:53-54 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:53-57 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu-local-task.html.twig_CyZBDRlpXnhaZDz3KzNHr4Ys1/0F3kiEF3DHpRauIwnwJjql1k0CiCkD63DpHDfKrCQDQ.php:45-46 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page-title.html.twig_Kj22JzrbuWqFmqffbsmZOndRV/Yg85NB65pr8ajT8RbDcScHIPAYWiDQGhpZyF51niRJY.php:43-47 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region.html.twig_MR3fMmw95qbpuDFvbyuI9QHlG/JNyR-dg9X1cxtCQ9FtokZlD5ZdA6P6QJViu4Lt7Lqog.php:50-53 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:54-58 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:67-71 — before extracting anything, compare `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. Read the line range as the matched WINDOW rather than a finished unit: at `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:51` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:51` calls `getExtension`, `ensureToStringAllowed`, `escapeFilter` and `redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_region.html.twig_MR3fMmw95qbpuDFvbyuI9QHlG/JNyR-dg9X1cxtCQ9FtokZlD5ZdA6P6QJViu4Lt7Lqog.php:50` 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.
D4 · Code Duplication · Duplicated block (3–5 lines × 5) · ×1
  • Duplicated block (3–5 lines × 5) redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:65 — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:65-69 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:65-68 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._2hNSCNK6Y2jmAWQaMH3vksp4p/6oORERJDdYH03S53XwLVQPbbW3kpGiNu8dHWCTAcyk4.php:49-51 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_html.html.twig_gQv-GORxUVif_Pag4s-5z2NkO/cYnlO1DSpMRHNEDLUe4WMKKLAJGvx0oh37UsBWQK5n8.php:61-66 | redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:142-144 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 5 times. 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.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×1
  • Duplicated block (13 lines × 2) REDACTED:49 — REDACTED:49-61 | REDACTED:44-56 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: `HttpServletRequest` names `jakarta.servlet.http.HttpServletRequest` in one and `javax.servlet.http.HttpServletRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (11–12 lines × 3) · ×1
  • Duplicated block (11–12 lines × 3) hackerden/commandproc/src/serial/GetCommand.java:85 — hackerden/commandproc/src/serial/GetCommand.java:85-95 | REDACTED:52-63 | REDACTED:47-58 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `hackerden/commandproc/src/serial/GetCommand.java:85` 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 first that the copies are not typed on the same thing: `HttpServletRequest` names `jakarta.servlet.http.HttpServletRequest` in one and `javax.servlet.http.HttpServletRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×1
  • Duplicated block (6 lines × 2) REDACTED:84 — REDACTED:84-89 | REDACTED:57-62 — 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.
P2 · Observability · No structured logging · ×1
  • No structured logging — No logging call was found in the 125 JVM, JavaScript/TypeScript, PHP production file(s) this check read across 8 module(s). Each was searched for its ecosystem's logging libraries (JVM: SLF4J, Log4j2, java.util.logging, Logback, kotlin-logging, scala-logging; JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger; PHP: PSR-3 loggers (Monolog), Laravel's Log facade, error_log()) and for a call on a receiver named `log`/`logger` (or ending in `Logger`/`_logger`) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read — this is 'no logging found by this walk', not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose.
R1 · Type Safety · Type Safety · ×1
  • Type Safety — 0 typed · 55 plain JS — the untyped files are REDACTED, REDACTED, codereview101/snipData5.js, codereview101/snipData6.js, codereview101/snipXSS10.jsx, codereview101/snipXSS5.js (+49 more).
R10 · Code Duplication · Duplicated block (16 lines × 3 locations) · ×1
  • Duplicated block (16 lines × 3 locations) trainingportal/static/main-app.js:146 — trainingportal/static/main-app.js:146 · trainingportal/static/main-app.js:228 · trainingportal/static/main-app.js:259 — 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.
R10 · Code Duplication · Duplicated block (12 lines × 2 locations) · ×1
  • Duplicated block (12 lines × 2 locations) REDACTED:209 — REDACTED:209 · REDACTED:228 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (10 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (10 matched lines × 2 locations) trainingportal/challenges.js:130 — trainingportal/challenges.js:130 · trainingportal/challenges.js:285 — the two spans are one implementation copied and then locally edited — 58 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (9 lines × 3 locations) · ×1
  • Duplicated block (9 lines × 3 locations) trainingportal/db.js:296 — trainingportal/db.js:296 · trainingportal/db.js:388 · trainingportal/db.js:412 — all 3 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (8 lines × 2 locations) · ×1
  • Duplicated block (8 lines × 2 locations) REDACTED:307 — REDACTED:307 · REDACTED:317 — 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.
R10 · Code Duplication · Duplicated block (7 lines × 2 locations) · ×1
  • Duplicated block (7 lines × 2 locations) codereview101/snipXSS5.js:2 — codereview101/snipXSS5.js:2 · codereview101/snipXSS6.js:2 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R2 · Cyclomatic Complexity · Complex function apiChallengeCode (cyclomatic 24, cognitive 25) · ×1
  • Complex function apiChallengeCode (cyclomatic 24, cognitive 25) trainingportal/challenges.js:438 — apiChallengeCode has cyclomatic complexity 24 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function init (cyclomatic 18, cognitive 43) · ×1
  • Complex function init (cyclomatic 18, cognitive 43) trainingportal/db.js:166 — init has cyclomatic complexity 18 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function processAuthCallback (cyclomatic 15, cognitive 24) · ×1
  • Complex function processAuthCallback (cyclomatic 15, cognitive 24) REDACTED:265 — processAuthCallback has cyclomatic complexity 15 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function getChallengeDefinitions (cyclomatic 13, cognitive 25) · ×1
  • Complex function getChallengeDefinitions (cyclomatic 13, cognitive 25) trainingportal/challenges.js:203 — getChallengeDefinitions has cyclomatic complexity 13 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function getCurrentUser (cyclomatic 13, cognitive 14) · ×1
  • Complex function getCurrentUser (cyclomatic 13, cognitive 14) REDACTED:72 — getCurrentUser has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 12, cognitive 43) · ×1
  • Complex function (anonymous) (cyclomatic 12, cognitive 43) trainingportal/static/challengesCtrl.js:59 — (anonymous) has cyclomatic complexity 12 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function registerLocalUser (cyclomatic 12, cognitive 11) · ×1
  • Complex function registerLocalUser (cyclomatic 12, cognitive 11) REDACTED:119 — registerLocalUser has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 11, cognitive 16) · ×1
  • Complex function (anonymous) (cyclomatic 11, cognitive 16) REDACTED:47 — (anonymous) has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function postMessage (cyclomatic 11, cognitive 10) · ×1
  • Complex function postMessage (cyclomatic 11, cognitive 10) REDACTED:123 — postMessage has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files · trainingportal/db.js · ×1
  • trainingportal/db.js: 585 lines of code trainingportal/db.js:1 — trainingportal/db.js has 585 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 494 lines of code REDACTED:1 — REDACTED has 494 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · trainingportal/challenges.js · ×1
  • trainingportal/challenges.js: 488 lines of code trainingportal/challenges.js:1 — trainingportal/challenges.js has 488 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 481 lines of code REDACTED:1 — REDACTED has 481 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R6 · Tooling · No lint or typecheck script · ×1
  • No lint or typecheck script — test ✓ · lint ✗ · typecheck ✗ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
R7 · Dead Code · Dead file (~53 LoC) · ×1
  • Dead file (~53 LoC) trainingportal/tools/setupDemo.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~31 LoC) · ×1
  • Dead file (~31 LoC) trainingportal/tools/exportUsers.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~27 LoC) · ×1
  • Dead file (~27 LoC) REDACTED — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~3 LoC) · ×1
  • Dead file (~3 LoC) trainingportal/tools/decrypt.js — no import path from any entry point (18 application, 0 tooling, 10 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R8 · Dependency Hygiene · Unused dependency 'form-data' · ×1
  • Unused dependency 'form-data' bluetesterapp/package.json:15 — Declared in bluetesterapp/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'crypto' · ×1
  • Unused dependency 'crypto' trainingportal/package.json:28 — Declared in trainingportal/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'node-truncate' · ×1
  • Unused dependency 'node-truncate' trainingportal/package.json:36 — Declared in trainingportal/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'passport-slack' · ×1
  • Unused dependency 'passport-slack' trainingportal/package.json:43 — Declared in trainingportal/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
S1 · Web-Security Posture · Third-party script without Subresource Integrity · ×1
  • Third-party script without Subresource Integrity codereview101/index.html:16 — `https://cdnjs.cloudflare.com/ajax/libs/angular-sanitize/1.7.8/angular-sanitize.min.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. 6 such include(s) across the repository's markup.
Minor — 111 finding(s)
D34 · Knowledge Freshness · Orphaned file · ×51
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_pager.html.twig_sbCI69R_UAdtPaGn0ZzTyeyem/8sFL0d_k7-e8F3i7sgNcxtcV6RAXUY5gNtegy80pJI0.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file REDACTED:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_page.html.twig_u5wurMyx4yyLrcXBTHkEErVIO/upOpiWTAEVOw665hvhqOoHjjtyvYBH2ZZNq1F_6JepI.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_views-view.html.twig_My8wCKNyJv0eBmdCJ1uPxYt8x/vdpxaLLaK6U4WSdwBYMszKbESMiyqBJM7vjVKxBg0q8.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_form-element.html.twig_dJcTIbdx1y7B0dbOtEyyZSSZ1/ZX3PVD0irczBxZ1_DySyCotoM_vSAyqjtej7m8JE6G0.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_links.html.twig_KA9UNfGPPAAfgCg_weyFshk4D/xm2LE6EwtKdJ8LYD7hohSTbyFckeSiLvxRkAVhhISFw.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu--toolbar.html.twig_rEyH-nXH5XjWIMdT-yjXXlvnB/B9RBN3AkLeyIppkfY1O_WoqfwmgmNouzQGG-rjy62Hc.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_menu.html.twig_6_49nUJrABYdgsuH1VhK8sIfM/DMjDqMOhnDZMn8I50Ygmg6ODPwNO_ScLIeFL3po-TtU.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_toolbar.html.twig_6OS5XDMFNd05xfubEcPy9VaSc/CuRbW0_d_bE-XYpU1Ozo1mVacU3y5QEIttomNtW_OVA.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_status-messages.html.twig_3IhisVoQLOYIb64NBegMDuHJs/FWtNnMpjjfglEUEptHWQmVJBQNk--VqUAn-Y19ueolo.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_fieldset.html.twig_JMAAwhWf4E9thX8NFpCu7nvgO/wmnyGDt0qTfacpaBiCZEhwzodU4aQs0wMxO63iy4wbw.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_select.html.twig_Mr8lFiPaNe0gAm8QCjlpAZN1y/DQZk6Bx1qWFu8nK8Ym5RsYVn4t3kAKF-MTrJatSbXJc.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_install-page.html.twig_eG0YDsfcoFlt83O9OZG4ysQES/o2IwwB3r5EksWhpYTaTe1Goh5yfHMx-GFlA5ZlGu7ns.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_html.html.twig_gQv-GORxUVif_Pag4s-5z2NkO/cYnlO1DSpMRHNEDLUe4WMKKLAJGvx0oh37UsBWQK5n8.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._2hNSCNK6Y2jmAWQaMH3vksp4p/6oORERJDdYH03S53XwLVQPbbW3kpGiNu8dHWCTAcyk4.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-menu-block._1hXD0762SwwNpzV7K2aSpV7W5/pUxhID9NxVPzlFa6gPVwq9B30UePYy9Jf8Y6W2bJ3RU.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block.html.twig_NJ8S4QqIhiqAiD3IV7bDf1Kr1/5RcyClUN0qFLVVsTdC8tnpKr9VWIFCUfK5lnHUJE6Mc.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file REDACTED:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file REDACTED:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_breadcrumb.html.twig_H4UQfgZP18ZL0vxRxVUOyXGQy/toxMkgImJWBewMgFbDrileq1NvCW1uPJP9X8v4vyktc.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/example.settings.local.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_maintenance-task-list.htm_sB983SWLW9VoWXmkj9Mk9GGwW/5ZMHVqEnJuDfripSZPUj7WcpfdFEeXpyUdq24OeczLc.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_progress-bar.html.twig_KLZjEpo-27Ghv3Yyd1ETcZ2Of/O8VClK8RMM1O4fVcVLuOs1LRs0RQNki9fecO-MCu_jw.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • + 26 more in this group — see findings.md.
D30 · Dependency Vulnerabilities · Low CVE · ×14
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D31 · IaC & Container Security · Low IaC · ×12
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D24 · Comment Value · redundant comment · ×9
  • redundant comment REDACTED:519 — "add csrf token" repeats the code it sits on: 3 of its 3 words (add, csrf, token) are already in `let addCsrfToken = function (req, responseBody)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment trainingportal/db.js:448 — "set all users that are part of this team to have teamId null" repeats the code it sits on: 5 of its 6 words (set, users, team, id, null) are already in `var sql = "UPDATE users SET teamId = null WHERE teamId = ?";`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:387 — "challenge code api" repeats the code it sits on: 3 of its 3 words (challenge, code, api) are already in `app.post('/api/user/challengeCode', async (req,res) =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:480 — "get the challenge stats" repeats the code it sits on: 3 of its 3 words (get, challenge, stats) are already in `app.get('/api/challengeStats', (req, res) =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:487 — "get the module stats" repeats the code it sits on: 3 of its 3 words (get, module, stats) are already in `app.get('/api/moduleStats', async (req, res) =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:493 — "get the team stats" repeats the code it sits on: 3 of its 3 words (get, team, stats) are already in `app.get('/api/teamStats',async (req, res) =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment trainingportal/static/main-app.js:121 — "hide a team save error" repeats the code it sits on: 4 of its 4 words (hide, team, save, error) are already in `$scope.hideTeamSaveError = function()`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment trainingportal/static/main-app.js:126 — "hide a team save success message" repeats the code it sits on: 4 of its 5 words (hide, team, save, success) are already in `$scope.hideTeamSaveSuccess = function()`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment trainingportal/static/main-app.js:331 — "get the code blocks definitions" repeats the code it sits on: 4 of its 4 words (get, code, blocks, definitions) are already in `$http.get("static/codeBlocks/codeBlocksDefinitions.json").then(function(response)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
X10 · Duplicated predicate · Duplicated predicate · ×7
  • Duplicated predicate REDACTED:71 — `b64String != null && !b64String.trim().isEmpty()` appears character-identically in 3 files — REDACTED, REDACTED, REDACTED. 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 REDACTED:51 — `response != null && response.data != null` appears character-identically in 5 files — REDACTED, trainingportal/static/challengesCtrl.js, trainingportal/static/dashboardCtrl.js, trainingportal/static/main-app.js. 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 trainingportal/static/leaderboardCtrl.js:11 — `response !== null && response.data !== null` appears character-identically in 2 files — trainingportal/static/leaderboardCtrl.js, trainingportal/static/main-app.js. 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 trainingportal/challenges.js:473 — `util.isNullOrUndefined(challengeId) || util.isAlphanumericOrUnderscore(challengeId) === false` appears character-identically in 2 files — trainingportal/challenges.js, REDACTED. 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 redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:39 — `$e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])` appears character-identically in 39 files — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php, redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php, redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php, redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php. 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 redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:41 — `$e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])` appears character-identically in 39 files — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php, redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php, redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php, redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php. 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 redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php:37 — `$e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])` appears character-identically in 39 files — redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--local-tasks-block._XrY-Gbbe_3ZGK_eVUo36wAuEb/LguoMKX-Nn31Bu8lIIPDaJ_j4c0xShnjCJolf2YYdFw.php, redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._-9HtaDVE8pCe5SyzLjs47G6RZ/buzDwOI44uDyCvqA09gS-7JihwA9_ytvV6iWgWrwAvA.php, redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--search-form-block._XvcglJkCAjPFIFcXZlg_iuycU/LkKRiqVpSKtTpbBIBJScK3QAUMeOC9aYtj2DQxzfY3Q.php, redblueapp/drupal-8.5.0/sites/default/files/php/twig/5e710b200578d_block--system-branding-bl_72GkZTYHvldCdMcY-Fr9WtVSZ/lW7u_FJ1W6ZgmW9C659R92_k4MwVCWu-exi63o5nQuU.php. 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.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D34 · Knowledge Freshness · Most significant orphaned file · ×2
  • Most significant orphaned file redblueapp/drupal-8.5.0/sites/default/settings.php:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file redblueapp/drupal-8.5.0/sites/default/default.settings.php:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
D19 · Documentation Quality · Documentation · ×1
  • Documentation: no build, run or usage example bluetesterapp/README.md:1 — `bluetesterapp` is a published package (`package.json` without `"private": true`) and neither `bluetesterapp/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.
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D34 · Knowledge Freshness · Dormant codebase · ×1
  • Dormant codebase — 53 of 53 significant files have no living knowledge — the codebase as a whole is dormant, not 53 separate risks. Counted over 53 of the 84 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D8 · Code Coverage · No tests · ×1
  • No tests — template/sample — This repo declares itself a template / kata / sample; tests are deferred to the application built from it, so coverage is not scored here.
GD1 · Unfinished & placeholder code · Placeholder literal left in code · ×1
  • Placeholder literal left in code trainingportal/qna.js:160 — A placeholder string ("LOREM IPSUM DOLOR SIT AMET") is still in shipped code — typical of generated boilerplate that was never filled in.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation bluetesterapp/package.json:11 — `bluetesterapp/package.json` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
P4 · Deployment & Rollback · No rollback/health safety · ×1
  • No rollback/health safety — Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.
R7 · Dead Code · Unused module-local declaration 'mockResponse' · ×1
  • Unused module-local declaration 'mockResponse' trainingportal/test/challenge.test.js:55 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
S1 · Web-Security Posture · Information-disclosure response header set · ×1
  • Information-disclosure response header set redblueapp/drupal-8.5.0/sites/default/files/js/js_Di5_9uQOKAh2G8AILXfrGSFGtwKDx4P8HLPQaUZUjz0.js:1357 — `Server` is set explicitly here. The OWASP Secure Headers Project lists it among the response headers to REMOVE: it names the server, framework or tooling behind the application, which is exactly what an attacker looks up known exploits for. (No deduction on this card.)
X5 · Nullable reference types · Java packages are not null-marked everywhere · ×1
  • Java packages are not null-marked everywhere — 0/5 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`.
Minor — 28 finding(s)
D12 · Dependency Hygiene · Outdated (compile) · ×23
  • Outdated (compile): com.sun.xml.stream:sjsxp — com.sun.xml.stream:sjsxp 1.0.1 → 1.0.2 available.
  • Outdated (compile): org.ow2.asm:asm-tree — org.ow2.asm:asm-tree 7.3.1 → 9.11.1 available.
  • Outdated (compile): javax.xml.ws:jaxws-api — javax.xml.ws:jaxws-api 2.1 → 2.3.1 available.
  • Outdated (compile): org.apache.derby:derby — org.apache.derby:derby 10.10.1.1 → 10.17.1.0 available.
  • Outdated (compile): javax.activation:activation — javax.activation:activation 1.1 → 1.1.1 available.
  • Outdated (compile): org.jvnet.staxex:stax-ex — org.jvnet.staxex:stax-ex 1.2 → 2.1.0 available.
  • Outdated (compile): com.sun.xml.ws:jaxws-rt — com.sun.xml.ws:jaxws-rt 2.1.4 → 4.0.5 available.
  • Outdated (compile): org.ow2.asm:asm-commons — org.ow2.asm:asm-commons 7.3.1 → 9.11.1 available.
  • Outdated (compile): org.ow2.asm:asm-util — org.ow2.asm:asm-util 7.3.1 → 9.11.1 available.
  • Outdated (compile): org.jvnet:mimepull — org.jvnet:mimepull 1.2 → 1.6 available.
  • Outdated (compile): com.sun.xml.messaging.saaj:saaj-impl — com.sun.xml.messaging.saaj:saaj-impl 1.3.1 → 3.0.6 available.
  • Outdated (compile): org.ow2.asm:asm-analysis — org.ow2.asm:asm-analysis 7.3.1 → 9.11.1 available.
  • Outdated (compile): com.auth0:java-jwt — com.auth0:java-jwt 4.4.0 → 4.6.2 available.
  • Outdated (compile): com.sun.xml.bind:jaxb-impl — com.sun.xml.bind:jaxb-impl 2.1.7 → 4.0.9 available.
  • Outdated (compile): junit:junit — junit:junit 3.8 → 4.13.2 available.
  • Outdated (compile): org.apache.tomcat:tomcat-juli — org.apache.tomcat:tomcat-juli 11.0.0-M18 → 11.0.29 available.
  • Outdated (compile): org.openjdk.nashorn:nashorn-core — org.openjdk.nashorn:nashorn-core 15.4 → 15.7 available.
  • Outdated (compile): org.apache.tomcat:tomcat-servlet-api — org.apache.tomcat:tomcat-servlet-api 11.0.0-M18 → 11.0.29 available.
  • Outdated (compile): org.ow2.asm:asm — org.ow2.asm:asm 7.3.1 → 9.11.1 available.
  • Outdated (compile): com.sun.xml.stream.buffer:streambuffer — com.sun.xml.stream.buffer:streambuffer 0.7 → 2.1.0 available.
  • Outdated (compile): javax.xml.bind:jaxb-api — javax.xml.bind:jaxb-api 2.1 → 2.3.1 available.
  • Outdated (compile): javax.xml.soap:saaj-api — javax.xml.soap:saaj-api 1.3 → 1.3.5 available.
  • Outdated (compile): org.apache.tomcat:tomcat-util — org.apache.tomcat:tomcat-util 11.0.0-M18 → 11.0.29 available.
D12 · Dependency Hygiene · Outdated (runtime) · ×3
  • Outdated (runtime): com.fasterxml.jackson.core:jackson-databind — com.fasterxml.jackson.core:jackson-databind 2.14.2 → 2.23.0 available.
  • Outdated (runtime): com.fasterxml.jackson.core:jackson-annotations — com.fasterxml.jackson.core:jackson-annotations 2.14.2 → 2.23 available.
  • Outdated (runtime): com.fasterxml.jackson.core:jackson-core — com.fasterxml.jackson.core:jackson-core 2.14.2 → 2.23.0 available.
D12 · Dependency Hygiene · Outdated (provided) · ×1
  • Outdated (provided): jakarta.servlet:jakarta.servlet-api — jakarta.servlet:jakarta.servlet-api 6.1.0-M2 → 6.1.0 available.
D24 · Comment Value · doc comments repeat the names · ×1
  • doc comments repeat the names trainingportal/challenges.js:527 — 0 of 3 documented parameters and 1 of 21 summaries in `securecodingdojo` only repeat the member or parameter name (e.g. "Inserts a challenge entry" for `insertChallengeEntry`). Delete the restating tags, or add what the name does not say.

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.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=0 --max-count=200" --report-format json --report-path /tmp/watchdog-gitleaks-7876d610ec4a4883a60c024a76e32318/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=200 --max-count=789" --report-format json --report-path /tmp/watchdog-gitleaks-7876d610ec4a4883a60c024a76e32318/history-1.json --exit-code 0 --source .1artifacts/raw/gitleaks-history-1.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-7876d610ec4a4883a60c024a76e32318/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt .58artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .77artifacts/raw/trivy-fs.json
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .37artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrep—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. semgrep could not parse 2 file(s) — `codereview101/snipData1.java`, `codereview101/snipData2.java` — so the PII/GDPR sweep did not cover them at all.0—
D37 · Vulnerability-disclosure Policydisclosure—disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0—
D40 · Network Egress Confinementruntime-hardening—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.0—
D41 · Kernel & Syscall Confinementruntime-hardening—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.0—
D42 · Runtime Threat Enforcementruntime-hardening—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.0—
D43 · Malicious Dependenciestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .0artifacts/raw/trivy-fs.json

Run 01a1eaea-294c-74e6-a9d4-27bca5813f74 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

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.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md