Public report of spotify/scio, published 26 October 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.10.5). 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, 26 October 2026, 07:01 UTC · Survey ID cd_873796f0e77a46b38622bbfe2c2dc258

spotify/scio

Measured 26 October 2026, 06:55 UTC, at code version e2fb400

No regression since the last survey Knowledge freshness: not measured

A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.

Knowledge freshness is not measured: Freshness signal contradicted by repo activity.

CAI score 62out of 100 At risk No change since the last survey

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A medium codebase: 85,049 lines of product code in 29 projects, tests not counted · Estimated rebuild effort: about 1.0 person-years · Weakest lens: Code Health, 51

Findings by how serious they are

76 critical 418 serious 121 minor

14 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks 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

Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
26 October 2026, 06:55 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 Watchdog. It is open to any tool that implements it, and today Watchdog 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. Watchdog works 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 ▸

65of 65 dimensions measured by tools.
544of 615 findings point to an exact file and line, so you can open each one in the code. The other 71 concern the repository as a whole, such as missing documentation.
65dimensions across 6 lenses, read from 85,049 lines of product code in 29 projects.
Chapters

Executive summary

spotify/scio is rated At risk because critical security findings are open, most of them in the build pipeline. It scores 62 out of 100, which the At risk rating leaves unchanged. We judged it as a preview release, against a lower bar.

Code Health, at 51, is the weakest lens and counts most in the score. The best first step is declaring which values may be missing, worth about 6 points. Recording design decisions comes next, worth about 4 points. Raising Code Health to 67 would lift the score to about 68.

Fifty-seven pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Ten secrets can leak from the build pipeline, and four known security holes in the packages the code depends on can be used by attackers. Pinning each tool to an exact version, limiting each secret to its own step and updating the vulnerable packages would close these risks. Correcting the flagged pipeline settings would fix the two weaknesses in the build pipeline's configuration, and setting a waiting period for automatic updates would deal with the automatic dependency update that takes a new release at once. The package under a licence on your banned list needs replacing, or clearing with your legal team.

The product code is 85,049 lines, about €140,000 to rebuild.

A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.

How the score is built: what each lens counts 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.
Code Health 51 · counts for 46%Maturity 64 · counts for 25%Security and Compliance 74 · counts for 14%Production Readiness 75 · counts for 8%Performance 83 · counts for 4%Architecture 91 · counts for 2%

If Code Health rose from 51 to 67, the lowest score rated Strong, the score would rise from 62 to about 68.

Code composition: what the lines of code are
Product code 66%Tests 34%
New since the last survey: 79 findings

These 79 critical or serious findings weren't in the previous survey, on 12 October 2026.

Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.

Fixed since the last survey: 41 findings

These 41 critical or serious findings were in the previous survey, on 12 October 2026, and are gone from this one.

  • Supply-chain Provenance & Signing REDACTED
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder10.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder15.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder3.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder4.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder5.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixLogicalTypeSuppliers.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixQuery.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_14/src/main/scala/fix/v0_14_0/FixQuery.scala
  • Incompleteness & stubs · Skeleton type — most members are unfinished scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Skeleton type — most members are unfinished scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala
  • Incompleteness & stubs · Empty method body — does nothing with its inputs scalafix/output-0_8/src/main/scala/fix/v0_8_0/FixSyntaxImports.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scalafix/output-0_8/src/main/scala/fix/v0_8_0/FixSyntaxImports.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scio-core/src/main/scala/com/spotify/scio/coders/instances/JavaCoders.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scio-core/src/main/scala/com/spotify/scio/io/BinaryIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scio-core/src/main/scala/com/spotify/scio/io/BinaryIO.scala
  • Incompleteness & stubs · Unfinished stub — body is ??? / NotImplementedError scio-core/src/main/scala/com/spotify/scio/runners/dataflow/DataflowResult.scala
Rebuild cost: about €140,000 · Estimate
Cost to rebuild€48,000 to €240,000, for 792 to 2,512 hours of work, about 1.0 person-years for 1 to 2 engineers
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.8 at a score of 62. 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.
SizeMedium: 85,049 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: Watchdog prices 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
On Scala 3, add `-Yexplicit-nulls` to `scalacOptions` so `String` and `String | Null` mean different things, and type each Java API's result as nullable where it can return null; on Scala 2 (or as a first step), enable WartRemover's `Null` wart (`wartremoverErrors += Wart.Null`) or Scalafix's `DisableSyntax.noNulls = true` so the code holds absence in `Option`.
Then pay the assertions down rather than adding to them: each `.nn` is a null the compiler could not rule out — wrap the Java value in `Option(…)` at the boundary, pattern-match on `null` once there, or change the API so the null cannot arrive; an `unsafeNulls` import switches the checking off for everything after it.
Raises the score by about 6 points · Medium effort · Nullable reference types
2
Record your significant design decisions.
Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Raises the score by about 4 points · Medium effort · Architecture documentation
3
Interpolated log message defeats structured logging
Raises the score by about 3 points · Medium effort · Structured logging

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 €140,000 to build again, about 1.0 person-years of work. Its weakest lens is Code Health, at 51 (Adequate). Code Health is about how easy the code is to read and change safely, and code that is hard to read is slow and risky to change, so every future change costs more than it should. Because the weakest lens counts most in the score, work on Code Health also moves the score most.
Based on: the rebuild estimate · the Code Health grade · how much each lens counts
What to do: Start with the Code Health actions in Top priorities.
If you do one thing first · First action
On Scala 3, add `-Yexplicit-nulls` to `scalacOptions` so `String` and `String | Null` mean different things, and type each Java API's result as nullable where it can return null; on Scala 2 (or as a first step), enable WartRemover's `Null` wart (`wartremoverErrors += Wart.Null`) or Scalafix's `DisableSyntax.noNulls = true` so the code holds absence in `Option`. Of all the actions in this report, it raises the score most for the work it takes: about 6 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort

Architecture: which parts of the code depend on which

The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.

245 modules, with 568 dependencies between them. 2 loops run through 27 of the modules, marked above the diagonal.

The table shows the 40 modules with the most connections; 205 more are left out to keep it readable.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 com.spotify.scio.bigquery.client.CompressionT2 com.spotify.scio.bigtable.TableAdmin3 com.spotify.scio.redis.types4 fix.v0_13_0.FixTfParameter5 com.spotify.scio.extra.csv.CsvIO6 com.spotify.scio.schemas7 com.spotify.scio.coders8 com.spotify.scio.io.dynamic.syntax9 com.spotify.scio.io10 com.spotify.scio.bigquery.BigQueryTyped11 com.spotify.scio.elasticsearch12 com.spotify.scio.bigquery.client13 com.spotify.scio.bigquery14 com.spotify.scio.values15 com.spotify.scio.util16 com.spotify.scio.avro.AvroIO17 com.spotify.scio.extra.sparkey.instances18 com.spotify.scio.bigquery.BigQueryTypedTable19 com.spotify.scio.bigquery.BigQueryTypedTable.Format20 com.spotify.scio.avro.syntax21 com.spotify.scio.bigquery.types22 fix.v0_14_023 com.spotify.scio.bigquery.syntax24 com.spotify.scio25 com.spotify.scio.avro26 com.spotify.scio.bigtable27 com.spotify.scio.extra.json28 com.spotify.scio.extra.sparkey29 com.spotify.scio.jdbc.sharded30 com.spotify.scio.parquet.avro31 com.spotify.scio.parquet.avro.syntax32 com.spotify.scio.parquet.tensorflow33 com.spotify.scio.pubsub34 com.spotify.scio.redis35 com.spotify.scio.snowflake.syntax36 com.spotify.scio.tensorflow.syntax37 com.spotify.scio.extra38 com.spotify.scio.jdbc.syntax39 com.spotify.scio.parquet.tensorflow.syntax40 com.spotify.scio.parquet.types.syntax
1 com.spotify.scio.bigquery.client.CompressionT
2 com.spotify.scio.bigtable.TableAdmin
3 com.spotify.scio.redis.types
4 fix.v0_13_0.FixTfParameter
5 com.spotify.scio.extra.csv.CsvIO27444
6 com.spotify.scio.schemas13111
7 com.spotify.scio.coders111111
8 com.spotify.scio.io.dynamic.syntax1111
9 com.spotify.scio.io2321192413
10 com.spotify.scio.bigquery.BigQueryTyped57414
11 com.spotify.scio.elasticsearch113121
12 com.spotify.scio.bigquery.client11
13 com.spotify.scio.bigquery111111691915221314
14 com.spotify.scio.values164317
15 com.spotify.scio.util1442
16 com.spotify.scio.avro.AvroIO1
17 com.spotify.scio.extra.sparkey.instances11221
18 com.spotify.scio.bigquery.BigQueryTypedTable131
19 com.spotify.scio.bigquery.BigQueryTypedTable.Format2
20 com.spotify.scio.avro.syntax33710762
21 com.spotify.scio.bigquery.types5112
22 fix.v0_14_0316264
23 com.spotify.scio.bigquery.syntax24266158126134
24 com.spotify.scio7221154
25 com.spotify.scio.avro610198559
26 com.spotify.scio.bigtable111433
27 com.spotify.scio.extra.json23312
28 com.spotify.scio.extra.sparkey32163141
29 com.spotify.scio.jdbc.sharded1211
30 com.spotify.scio.parquet.avro12132112
31 com.spotify.scio.parquet.avro.syntax2214132
32 com.spotify.scio.parquet.tensorflow1132112
33 com.spotify.scio.pubsub281626
34 com.spotify.scio.redis31212
35 com.spotify.scio.snowflake.syntax121322
36 com.spotify.scio.tensorflow.syntax5664322
37 com.spotify.scio.extra21123
38 com.spotify.scio.jdbc.syntax213221
39 com.spotify.scio.parquet.tensorflow.syntax2131321
40 com.spotify.scio.parquet.types.syntax1131321
Uses a module listed above itPart of a loopThe module itself
1 com.spotify.scio.bigquery.client.CompressionT2 com.spotify.scio.bigtable.TableAdmin3 com.spotify.scio.redis.types4 fix.v0_13_0.FixTfParameter5 com.spotify.scio.extra.csv.CsvIO6 com.spotify.scio.schemas7 com.spotify.scio.coders8 com.spotify.scio.io.dynamic.syntax9 com.spotify.scio.io10 com.spotify.scio.bigquery.BigQueryTyped11 com.spotify.scio.elasticsearch12 com.spotify.scio.bigquery.client13 com.spotify.scio.bigquery14 com.spotify.scio.values15 com.spotify.scio.util16 com.spotify.scio.avro.AvroIO17 com.spotify.scio.extra.sparkey.instances18 com.spotify.scio.bigquery.BigQueryTypedTable19 com.spotify.scio.bigquery.BigQueryTypedTable.Format20 com.spotify.scio.avro.syntax21 com.spotify.scio.bigquery.types22 fix.v0_14_023 com.spotify.scio.bigquery.syntax24 com.spotify.scio25 com.spotify.scio.avro26 com.spotify.scio.bigtable27 com.spotify.scio.extra.json28 com.spotify.scio.extra.sparkey29 com.spotify.scio.jdbc.sharded30 com.spotify.scio.parquet.avro31 com.spotify.scio.parquet.avro.syntax32 com.spotify.scio.parquet.tensorflow33 com.spotify.scio.pubsub34 com.spotify.scio.redis35 com.spotify.scio.snowflake.syntax36 com.spotify.scio.tensorflow.syntax37 com.spotify.scio.extra38 com.spotify.scio.jdbc.syntax39 com.spotify.scio.parquet.tensorflow.syntax40 com.spotify.scio.parquet.types.syntaxcom.spotify.scio.bigquery.client.CompressionT1com.spotify.scio.bigtable.TableAdmin2com.spotify.scio.redis.types3fix.v0_13_0.FixTfParameter4com.spotify.scio.extra.csv.CsvIO5com.spotify.scio.schemas6com.spotify.scio.coders7com.spotify.scio.io.dynamic.syntax8com.spotify.scio.io9com.spotify.scio.bigquery.BigQueryTyped10com.spotify.scio.elasticsearch11com.spotify.scio.bigquery.client12com.spotify.scio.bigquery13com.spotify.scio.values14com.spotify.scio.util15com.spotify.scio.avro.AvroIO16com.spotify.scio.extra.sparkey.instances17com.spotify.scio.bigquery.BigQueryTypedTable18com.spotify.scio.bigquery.BigQueryTypedTable.Format19com.spotify.scio.avro.syntax20com.spotify.scio.bigquery.types21fix.v0_14_022com.spotify.scio.bigquery.syntax23com.spotify.scio24com.spotify.scio.avro25com.spotify.scio.bigtable26com.spotify.scio.extra.json27com.spotify.scio.extra.sparkey28com.spotify.scio.jdbc.sharded29com.spotify.scio.parquet.avro30com.spotify.scio.parquet.avro.syntax31com.spotify.scio.parquet.tensorflow32com.spotify.scio.pubsub33com.spotify.scio.redis34com.spotify.scio.snowflake.syntax35com.spotify.scio.tensorflow.syntax36com.spotify.scio.extra37com.spotify.scio.jdbc.syntax38com.spotify.scio.parquet.tensorflow.syntax39com.spotify.scio.parquet.types.syntax402744413111111111111123211924135741411312111111111691915221314164317144211122113123371076251123162642426615812613472211546101985591114332331232163141121112132112221413211321122816263121212132256643222112321322121313211131321+205 more modules (most-connected shown)

At a glance — Code Health · 51% · Adequate · gated by X5 ·

At a glance — Architecture · 91% · Adequate · gated by D26 ·

At a glance — Maturity · 64% · Adequate · gated by M2 ·

At a glance — Readiness · 75% · Strong ·

At a glance — Security · 74% · Adequate · gated by D29 ·

At a glance — Performance · 83% · 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
A05:2025 — Injection71High / Critical
A03:2025 — Software Supply Chain Failures15High / Critical

Roadmap

First, eliminate null safety risks by enabling explicit null checking in Scala and refactoring Java boundaries to use Option types instead of null assertions. Next, reduce cognitive and cyclomatic complexity by refactoring the most intricate methods in MultiJoin and FixAvroCoder to improve code readability and maintainability. Finally, establish architectural governance by documenting key design decisions in a dedicated ADR folder and standardizing on structured logging to replace interpolated messages.

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

Do thisHelpsEffortDimension
On Scala 3, add `-Yexplicit-nulls` to `scalacOptions` so `String` and `String | Null` mean different things, and type each Java API's result as nullable where it can return null; on Scala 2 (or as a first step), enable WartRemover's `Null` wart (`wartremoverErrors += Wart.Null`) or Scalafix's `DisableSyntax.noNulls = true` so the code holds absence in `Option`. Then pay the assertions down rather than adding to them: each `.nn` is a null the compiler could not rule out — wrap the Java value in `Option(…)` at the boundary, pattern-match on `null` once there, or change the API so the null cannot arrive; an `unsafeNulls` import switches the checking off for everything after it.+6.4 ptsMediumNullable reference types
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.+3.9 ptsMediumArchitecture documentation
Interpolated log message defeats structured logging+3.5 ptsMediumStructured logging
Finish or delete the unfinished stubs (functions that throw "not implemented", or whose body is empty or a bare constant) — they are dead surface that looks live.+2.9 ptsMediumIncompleteness & stubs
Bring the 60 bodies over 15 down to 15 or less in Cognitive Complexity — start with MultiJoin.apply (cognitive 253), MultiJoin.left (cognitive 253), MultiJoin.outer (cognitive 253).+5.8 ptsHighCognitive Complexity
Bring the 31 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with FixAvroCoder.fix (cyclomatic 29), MultiJoin.apply (cyclomatic 23), MultiJoin.left (cyclomatic 23).+3.1 ptsHighCyclomatic Complexity
Resolve the 1 Banned license finding(s) in License Compliance.+0.7 ptsLowLicense Compliance
Swallowed exception (caught, then discarded)+1.3 ptsMediumException handling

File quality

Per-file score 0–10 — a quality signature. Of 120 files carrying findings, judged against the Preview bar: 4% slop · 13% mixed · 83% near-clean.

FileScoreBandWorst signal
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.5SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.0MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.1MixedDependency Vulnerabilities: Critical CVE: REDACTED
scio-avro/src/main/scala/com/spotify/scio/avro/types/TypeProvider.scala6.0MixedExplicit Debt: TodoComment
scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/StorageUtil.scala6.0MixedExplicit Debt: FixmeComment
scio-core/src/main/scala/com/spotify/scio/ScioContext.scala6.0MixedExplicit Debt: FixmeComment
scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketSink.java6.0MixedExplicit Debt: TodoComment
scio-core/src/main/scala/com/spotify/scio/values/SCollection.scala6.0MixedExplicit Debt: TodoComment
scio-test/core/src/test/scala/com/spotify/scio/testing/SCollectionMatchersTest.scala6.6MixedExplicit Debt: FixmeComment
scio-core/src/main/scala/com/spotify/scio/util/random/RandomSampler.scala6.6MixedExplicit Debt: TodoComment
scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/TypeProvider.scala6.7MixedExplicit Debt: TodoComment
scio-avro/src/main/scala/com/spotify/scio/avro/AvroDatumFactory.scala6.7MixedExplicit Debt: TodoComment
scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/BigQueryIO.scala6.7MixedExplicit Debt: TodoComment
scio-snowflake/src/main/scala/com/spotify/scio/snowflake/SnowflakeIO.scala6.7MixedExplicit Debt: TodoComment
scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/taps.scala6.7MixedExplicit Debt: TodoComment
scio-avro/src/test/scala/com/spotify/scio/avro/AvroIOTest.scala6.9MixedExplicit Debt: TodoComment

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

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

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

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

Could not be resolved — 14

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

Watchdog 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. 65 of 65 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. Overall confidence is 0.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three 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; ◐ Advisory — an LLM prose judgement. 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; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 65 dimensions across the health lenses
D1D2D3D4D5D6D9D12D13D14D15D16D17D26D28D29D30D31D35D36D37D43AX10AX3AX4AX6AX8GD1IC1M1M2M3M4P1P10P2P3P4P6PF1PF2PF3X1X12X13X14X15X16X17X18X19X20X21X22X23X24X25X26X27X28X29X3X30X4X5

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, 544 of 615 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, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — 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
Watchdog 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
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement—◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 01a176fe-6c5e-7267-a3e0-2f2513d83144.

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.

  • D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT READ here — but this repository measures it: a coverage step in CI (`codecov/codecov-action`) shows that coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.scala, .java), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored. To have the real number read, produce a coverage report in a standard format (`addSbtPlugin("org.scoverage" % "sbt-scoverage" % "<version>")` in `project/plugins.sbt`, then `sbt clean coverage test coverageReport`, or JaCoCo XML — `mvn jacoco:report` or the Gradle `jacocoTestReport` task) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (`addSbtPlugin("org.scoverage" % "sbt-scoverage" % "<version>")` in `project/plugins.sbt`, then `sbt clean coverage test coverageReport`, or JaCoCo XML — `mvn jacoco:report` or the Gradle `jacocoTestReport` task) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
  • D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.scala, .java) and this repository declares an sbt build (repository root, 266 test files), but it was not re-run: the analyzer environment could not run it. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
  • D21 Naming Consistency — not measured this run — Watchdog 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 deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
  • D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: it declares a published package (scalafix/REDACTED), but no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
  • D24 Comment Value — not measured this run — Watchdog 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.
  • D27 Navigability — not measured this run — Watchdog 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. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
  • D28 Secrets (history) — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. D28's config-credential rule (WD-SECRET-0002) parses each committed `.json` config as a document and reads credential-named values; `integration/src/main/resources/shakespeare-sample-10.json` did not parse (JSON5, a template, several concatenated documents), so a credential bound there is UNMEASURED by that rule. gitleaks still scanned the same files as text.
  • D34 Knowledge Freshness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. File-level freshness contradicts repo activity: 41 commits in the last 90 days, yet 383 of 420 significant files carry no living knowledge. Those two readings cannot both be true, so the per-file recency signal is treated as unreliable here and freshness is not scored for this run.
  • D44 Platform End-of-Life — not measured this run — Watchdog 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 dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a REDACTED scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
  • AX1 Captive dependencies — not measured this run — Watchdog 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 reads Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository defines its own container in scio-examples/src/main/java/org/apache/beam/examples/complete/game/injector/Injector.java, whose lifetimes are not modelled yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • C1 Data Protection — not measured this run — Watchdog 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 — Watchdog 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 — Watchdog 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 — Watchdog 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 — Watchdog 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.
  • GD1 Unfinished & placeholder code — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 34 further occurrence(s) are not listed individually; the score already reflects all 74.
  • IC1 Incompleteness & stubs — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 56 further occurrence(s) are not listed individually; the score already reflects all 96.
  • X4 Structured logging — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 16 further occurrence(s) are not listed individually; the score already reflects all 56.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • 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.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • 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.
  • 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.
  • 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.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity7.3 / 10Strong✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

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

31 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was FixAvroCoder.fix at 29. A further 9 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being ConverterProvider.toAvroInternal at 22 — they are counted neither in the figure above nor in this dimension's score. 6 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: scalafix/rules/src/main/scala/fix/v0_7_0/RewriteSysProp.scala (RewriteSysProp.fix at 20), scalafix/rules/src/main/scala/fix/v0_7_0/BQClientRefactoring.scala (BQClientRefactoring.fix at 19), scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/SchemaProvider.scala (SchemaProvider.rawType at 19), scio-extra/src/main/scala/com/spotify/scio/extra/bigquery/ToTableRow.scala (ToTableRow.toTableRowField at 18), scio-core/src/main/scala/com/spotify/scio/coders/CoderMaterializer.scala (CoderMaterializer.beamImpl at 17), and 1 more not listed here. They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

FixAvroCoder.fix (cyclomatic 29)scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala:191
MultiJoin.apply (cyclomatic 23)scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1258
MultiJoin.left (cyclomatic 23)scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2035
MultiJoin.outer (cyclomatic 23)scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2812
TypeProvider.schemaToType (cyclomatic 23)scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/TypeProvider.scala:254

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

What to do

  1. Bring the 31 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with FixAvroCoder.fix (cyclomatic 29), MultiJoin.apply (cyclomatic 23), MultiJoin.left (cyclomatic 23). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 31 together lifts Cyclomatic Complexity from 7.3 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
  2. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D2 · Cognitive Complexity5.0 / 10Adequate✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

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

60 method(s) exceeded the cognitive complexity threshold of 15; the worst was MultiJoin.apply at 253.

MultiJoin.apply (cognitive 253)scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1258
MultiJoin.left (cognitive 253)scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2035
MultiJoin.outer (cognitive 253)scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2812
MultiJoin.apply (cognitive 231)scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1203
MultiJoin.left (cognitive 231)scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1980

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

What to do

  1. Bring the 60 bodies over 15 down to 15 or less in Cognitive Complexity — start with MultiJoin.apply (cognitive 253), MultiJoin.left (cognitive 253), MultiJoin.outer (cognitive 253). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 60 together lifts Cognitive Complexity from 5.0 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
  2. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D3 · God Classes9.1 / 10Stronggated by 24 serious findings✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

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

24 god class(es) detected.

TooManyMethods: SCollection · ×10scio-core/src/main/scala/com/spotify/scio/values/SCollection.scala:121
FileTooLong: util/MultiJoin.scala · ×8scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala
ClassTooLong: SortedBucketSink · ×6scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketSink.java:124

What to do

  1. Resolve the 10 TooManyMethods finding(s) in God Classes — start with FixPubsubSpecializations.scala (2), SCollection.scala, MultiJoin.scala. — One of this dimension's main actionable groups (10 warning-level).
  2. Resolve the 8 FileTooLong finding(s) in God Classes — start with MultiJoin.scala, SMBMultiJoin.scala, BigQueryIO.scala. — One of this dimension's main actionable groups (8 warning-level).
  3. Resolve the 6 ClassTooLong finding(s) in God Classes — start with SortedBucketSink.java, ElasticsearchIO.java, SortMergeBucketScioContextSyntax.scala. — One of this dimension's main actionable groups (6 warning-level).
  4. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D4 · Code Duplication9.2 / 10Stronggated by 144 serious findings✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

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

132 duplicated block group(s) detected. A further 12 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 27 of the 144 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.

Duplicated block (7 lines × 2) · ×11scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:145
Duplicated block (10 lines × 2) · ×10scio-core/src/main/scala/com/spotify/scio/util/FunctionsWithWindowedValue.scala:47
Duplicated block (5 lines × 3) · ×8scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:814
Duplicated block (5 lines × 2) · ×7scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:175
Members sharing a duplicated core (4 members, 50+ identical tokens) · ×6scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:48

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

What to do

  1. Resolve the 11 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with SMBMultiJoin.scala (2), MultiJoin.scala (2), ParquetAvroFileBasedSink.java (2). — One of this dimension's main actionable groups (11 warning-level).
  2. Resolve the 10 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with SortMergeBucketScioContextSyntax.scala (2), FunctionsWithWindowedValue.scala, PairHashSCollectionFunctions.scala. — One of this dimension's main actionable groups (10 warning-level).
  3. Resolve the 8 Duplicated block (5 lines × 3) finding(s) in Code Duplication — start with MultiJoin.scala (5), BigQueryTornadoes.java (2), MagnolifyAvroExample.scala. — One of this dimension's main actionable groups (8 warning-level).
  4. Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

29 production modules (sbt), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; a dependsOn spread (deps: _*) and a project whose directory a helper computes are not visible there; 0 module(s) off the main sequence, with abstractness counted on 23 of the 29 (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.

D6 · Cohesion (LCOM4)9.8 / 10Stronggated by 2 serious findings✓ Tool-verified

What it measures: Whether a class's methods are focused on a single responsibility.

Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.

Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.

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

2 of 125 classes have LCOM4 above 3.

Low cohesion: ScioResult (LCOM4 5) · ×2scio-core/src/main/scala/com/spotify/scio/ScioResult.scala:44

What to do

  1. Resolve the 2 Low cohesion finding(s) in Cohesion (LCOM4) — start with ScioResult.scala, SCollectionWithFanout.scala. — One of this dimension's main actionable groups (2 warning-level).
  2. Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.

Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.

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

1829 test methods: 1665 unit, 159 integration, 0 BDD, 5 e2e. The Scala suite contributes 1637 test case(s) across 236 file(s) in a test source set declaring at least one — every `test("…")`, `it("…")`, `property("…")` and `"…" in {…}` registration and every JUnit `@Test`, which is how munit, ScalaTest, utest, ZIO Test and specs2 declare a case; a case registered under a computed name is not counted, so this is a floor. Its tier split is INFERRED from paths and file names, except sbt's src/it source set, which the build declares.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md.

D12 · Dependency Hygiene8.0 7.9 / 10Strong✓ Tool-verified

What it measures: Whether dependencies are current, secure, and not bloated.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.

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

58 outdated direct sbt declarations. 94 of 95 direct declarations were graded against Maven Central (1 not published there, which is what a private Nexus or Artifactory artifact looks like, 0 declaring a version range rather than an exact version). An sbt declaration names an EXACT version, so the remedy is an edit to the build file — there is no lockfile refresh that would move it. Test-, Provided- and it-scoped declarations are excluded, because a consumer of this project never receives them. A version held in a Scala val is read only when the val is one string literal: sbt is a program rather than a manifest, and evaluating a computed version would invent the measurement rather than take it. Whether any artifact is DEPRECATED or ABANDONED is not graded and cannot be — Maven Central publishes no such marker, and release age does not stand in for one: the most widely depended-upon libraries are routinely the stalest, being finished rather than abandoned. Known CVEs in this dependency graph are D30's question.

Outdated: co.elastic.clients:elasticsearch-java · ×58

What to do

  1. Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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.

✓ 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 94 declared sbt dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the production coordinates this repository's 8 sbt build file(s) (REDACTED and project/*.scala) declare with a literal version, directly or through a string-literal val — `%%` resolved to the Scala binary suffix Central publishes under, test-scoped declarations excluded — the same declaration-site closure this analysis reads for dependency currency. sbt has no lockfile a checkout carries, so this is deliberately NOT the transitive closure. 67 further production coordinate(s) are declared with a version the build computes rather than writes as a literal — sbt is a program, and this pass does not run it — and are NOT graded: this verdict covers what the build pins literally or through a string-literal val, not the full graph. A further 1 coordinate(s) are not published to Maven Central — another repository (Google's Maven hosts androidx), a SNAPSHOT, or a private artifact — so their licences are not readable from here and they are outside this verdict.

Banned license: com.mysql:mysql-connector-j

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).
  2. Enforce License Compliance in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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.

D16 · Bus Factor9.8 / 10Exemplary✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

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

7 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is scio-core/src/main/scala/com/spotify/scio/values/PairSCollectionFunctions.scala. Counted over 381 of the 775 production source files in this repository: 355 are under the ~2,400-byte size floor this dimension measures over, and the remaining 39 have no attributable history left to measure.

Off-boarding risk: anonymized user #1 · ×2
Further sole-owners (lower concentration)

✓ On the Gold path — maintain.

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

D17 · Explicit Debt9.9 / 10Stronggated by 58 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.9 / 10 · rule-coverage 100% · ceiling Prevented

58 deducted task-comment markers across 85049 LoC (0.1/KLoC) → score 9.9. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

TodoComment · ×40scio-test/parquet/src/test/scala/com/spotify/scio/testing/parquet/ParquetTestUtilsTest.scala:117
FixmeComment · ×14scio-test/core/src/test/scala/com/spotify/scio/testing/SCollectionMatchersTest.scala:336
XxxComment · ×4scio-core/src/main/scala/com/spotify/scio/schemas/SchemaMaterializer.scala:51

What to do

  1. Resolve the 40 TodoComment finding(s) in Explicit Debt — start with SCollection.scala (4), RandomSampler.scala (4), AvroIOTest.scala (3). — One of this dimension's main actionable groups (40 warning-level).
  2. Resolve the 14 FixmeComment finding(s) in Explicit Debt — start with SCollectionMatchersTest.scala (4), TFRecordFileBasedSink.java, KeyGroupIterator.java. — One of this dimension's main actionable groups (14 warning-level).
  3. Resolve the 4 XxxComment finding(s) in Explicit Debt — start with SchemaMaterializer.scala (2), AvroCoders.scala, ItUtils.scala. — One of this dimension's main actionable groups (4 warning-level).
  4. Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D26 · Project Cohesion0.0 / 10Critical✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic, LLM-independent.

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

1 of 2 build units (sbt) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion

What to do

  1. Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).

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

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

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 10.0 / 10 · rule-coverage 100% · ceiling Documented

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)0.9 / 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.9 / 10 · rule-coverage 100% · ceiling Documented

71 finding(s): 0 critical, 71 high, 0 medium, 0 low. 57 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 3 file(s) — `integration/src/main/resources/shakespeare-sample-10.json`, `scio-core/src/main/scala-2.12/com/spotify/scio/coders/instances/TupleCoders.scala`, `scio-core/src/main/scala-2.13/com/spotify/scio/coders/instances/TupleCoders.scala` — so no absence of findings in them is evidence of anything, and nothing in them was analysed. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 2 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 10 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (5), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (10 issue-level).
  2. Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
  3. No action in Static Analysis (SAST) — all 57 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 (57 issue-level, 0 of them charged here).

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

D30 · Dependency Vulnerabilities6.2 / 10Adequate✓ 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.

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

5 finding(s): 2 critical, 2 high, 0 medium, 1 low.

REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 2 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
  2. Resolve the 2 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
  3. Resolve the 1 Low CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).

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

D31 · IaC & Container Security10.0 / 10Exemplary○ Nothing flagged

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

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

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

trivy and checkov found no infrastructure-as-code or container misconfigurations.

✓ On the Gold path — maintain.

Detailed fixes: d31_recommendation.md.

D35 · Change Coupling10.0 / 10Exemplary✓ 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 10.0 / 10 · rule-coverage 100% · ceiling Documented

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

D36 · Supply-chain Provenance & Signing5.0 / 10Adequate✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

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

2/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 7 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (7 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).

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

D37 · Vulnerability-disclosure Policy10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.

Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.

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

A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.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. Scored 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. SCORED, not informational.

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.

Frontend & cross-cutting dimensions

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

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.

What to do

  • The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
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.

AX6 · Interface segregation9.9 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').

Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.

  • `SinkOptions` declares 16 abstract methods: `getAvroDestination`, `getAvroNumBuckets`, `getAvroNumShards`, `getJsonDestination`, `getJsonNumBuckets`, `getJsonNumShards`, `getMaxRecordsPerKey`, `getNumKeys`, `setAvroDestination`, `setAvroNumBuckets`, `setAvroNumShards`, `setJsonDestination`, `setJsonNumBuckets`, `setJsonNumShards`, `setMaxRecordsPerKey`, `setNumKeys`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — integration/src/test/java/org/apache/beam/sdk/extensions/smb/benchmark/SinkBenchmark.java:52
  • `ScioOptions` declares 20 abstract methods: `getAppArguments`, `getBlockFor`, `getChainedCogroups`, `getMetricsLocation`, `getNullableCoders`, `getOptionsFile`, `getScalaVersion`, `getScioVersion`, `getZstdDictionary`, `isBlocking`, `setAppArguments`, `setBlockFor`, `setBlocking`, `setChainedCogroups`, `setMetricsLocation`, `setNullableCoders`, `setOptionsFile`, `setScalaVersion`, `setScioVersion`, `setZstdDictionary`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — scio-core/src/main/java/com/spotify/scio/options/ScioOptions.java:27

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.

Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.

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

Other · Code Health — Unreviewed-generation residue in this repository's Scala: methods whose whole body is still `???` or a "not implemented" throw where nothing overrides them, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

  • `toTensors` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. (×2) — scalafix/input-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:16, scalafix/output-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:13
  • `fromTensors` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. (×2) — scalafix/input-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:17, scalafix/output-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:14
  • `put` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. (×6) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:12, scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:13, scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:15, …
  • `get` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. (×6) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:13, scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:12, scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:14, …
  • `getSchema` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. (×5) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:14, scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:18, scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:11, …
  • `writeExternal` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:19
  • `readExternal` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:20
  • `main` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. (×2) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder10.scala:12, scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:13
  • `someMethod` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder15.scala:12
  • `foo` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. (×3) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder3.scala:9, scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder4.scala:9, scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder5.scala:13
  • `read` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. (×3) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:20, scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala:17, scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala:32
  • `write` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:21
  • `tap` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. (×3) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:22, scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala:24, scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala:39
  • `customMethod` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixLogicalTypeSuppliers.scala:76
  • `queryRaw` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixQuery.scala:14
  • `query` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixQuery.scala:15
  • `handleResponse` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixSyntaxImports.scala:19

What to do

  • Finish or delete the members whose body is still `???` or a "not implemented" throw where nothing overrides them, and replace placeholder text before shipping.
IC1 · Incompleteness & stubs5.0 / 10Adequate✓ Tool-verified

Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's Scala: methods whose body is `???` or only throws a "not implemented" error, methods that take inputs and return a constant or do nothing, dead `if (false)` branches, and skeleton classes most of whose methods are holes.

Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

  • `toTensors` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. (×2) — scalafix/input-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:16, scalafix/output-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:13
  • `fromTensors` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. (×2) — scalafix/input-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:17, scalafix/output-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:14
  • `put` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. (×5) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:12, scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:13, scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:15, …
  • `get` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. (×5) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:13, scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:12, scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:14, …
  • `getSchema` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. (×4) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:14, scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:18, scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:11, …
  • `writeExternal` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:19
  • `readExternal` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:20
  • `main` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. (×2) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder10.scala:12, scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:13
  • `someMethod` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder15.scala:12
  • `foo` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. (×3) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder3.scala:9, scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder4.scala:9, scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder5.scala:13
  • `read` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. (×3) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:20, scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala:17, scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala:32
  • `write` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:21
  • `tap` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. (×3) — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:22, scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala:24, scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixScioIO.scala:39
  • `customMethod` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixLogicalTypeSuppliers.scala:76
  • `queryRaw` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixQuery.scala:14
  • `query` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixQuery.scala:15
  • `InputClass` has 5 unfinished members out of 5 declared methods (whether or not each carries a body) — a scaffolded class that was never implemented. — scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:10
  • `OutputClass` has 5 unfinished members out of 5 declared methods (whether or not each carries a body) — a scaffolded class that was never implemented. — scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:18
  • `apply` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixSyntaxImports.scala:15
  • `handleResponse` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface. — scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixSyntaxImports.scala:19

What to do

  • Finish or delete the unfinished stubs (functions that throw "not implemented", or whose body is empty or a bare constant) — they are dead surface that looks live.
  • Clear the softer debt: re-enable or delete `ignore`d and `pending` tests, decide whether each empty method or UnsupportedOperationException is deliberate (and say so in a comment), and replace a bare `// scalastyle:off` or `@nowarn` with targeted, justified suppressions.
M1 · Documentation (README)8.7 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

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.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
M2 · Architecture documentation0.0 / 10Critical✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
  • No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
  • Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 · Documentation accuracy10.0 / 10Exemplary○ Nothing flagged

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

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 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 · Observability5.5 / 10Adequate✓ 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.

  • Only 1/2 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `scalafix`.

What to do

  • Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
P3 · Security & performance tooling8.0 / 10Strong✓ 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.

What to do

  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback7.0 / 10Strong✓ 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.

P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

PF1 · Benchmark discipline9.0 / 10Exemplary✓ Tool-verified

Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.

Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.

  • A JMH/Jetpack Benchmark suite exists but nothing turns on its allocation measurement — allocations (the main way hot code pressures a garbage collector or allocator) aren't being measured. — scio-jmh/src/test/scala/com/spotify/scio/jmh/BigQueryTypeBenchmark.scala

What to do

  • Run JMH with the GC profiler (`-prof gc`, or addProfiler(GCProfiler.class)) so allocation rate regressions are visible, not just time.
PF2 · Allocation hygiene6.8 / 10Strong✓ Tool-verified

Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.

Method: Production-source scan: density (per 1k LoC) of allocation-aware APIs — in .NET Span/Memory, ArrayPool/ObjectPool, stackalloc, ValueTask, value-type structs, IBufferWriter, string.Create, SkipLocalsInit; off .NET, with comments and strings blanked, Go's sync.Pool, preallocated slices/maps, Grow, strconv.Append* and buf[:0] reuse; the JVM's NIO buffer views, MemorySegment, primitive collections, pools and literal presizes (plus Kotlin primitive arrays and value classes, Scala AnyVal and @specialized); Swift's reserveCapacity, ContiguousArray, withUnsafe* access and ~Copyable. Activated off .NET on the same floor (400 lines, and benchmarks or 8 uses); Rust and garbage-collected scripting languages are not applicable. Reward-only. Deterministic, syntax/text detection.

What to do

  • Raise allocation-aware density on the hot paths — currently 126 use(s) across 78,123 production line(s) (~1.6/1k). More of the idioms below on the allocation-heavy paths climbs this toward 10.
  • Java: on hot paths, work through buffer views (ByteBuffer/LongBuffer slices, MemorySegment) instead of copies, avoid boxing with primitive collections (fastutil, Eclipse Collections, HPPC, Trove), presize collections and StringBuilders, and pool expensive buffers (Netty's pooled allocator, commons-pool).
  • Scala: on hot paths, make small wrappers value classes (extends AnyVal), @specialized generic code over primitives, use primitive collections, and presize builders.
PF3 · Async & latency hygiene10.0 / 10Exemplary✓ 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 the language 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.

X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.

Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.

X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.

Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.

X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.

Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.

X14 · Bypassable address classification10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.

Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.

X15 · Unvalidated length from an untrusted reader3.5 / 10Weak✓ Tool-verified

Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.

Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.

  • `length` is read from the bytes being parsed at line 72 (`getLong`), then used to size a `ByteBuffer.allocate` at line 82 — and nowhere in its scope is `length` bounded from above — compared to a limit, clamped, or checked against the input that remains (a zero or sign test, or the loop that counts up to it, bounds nothing). Whoever wrote those bytes therefore chooses the allocation directly: a 64-bit length reaches the allocation through a cast that keeps only its low 32 bits, so it asks for up to 2 GiB before a single byte of the payload is known to exist, which either exhausts the heap with an `OutOfMemoryError` or, negative, throws `NegativeArraySizeException` out of a parser whose failure path was written for malformed input, not for hostile input. Bound `length` against the bytes actually remaining and a maximum the format allows before allocating. — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/TFRecordCodec.java:82

What to do

  • Each finding names the read that takes the length from the input and the site that spends it, and states that the value is never compared in between. Confirm from the two, then bound the length against the remaining stream before using it.
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.

X17 · Uncapped recursion over a caller-supplied document10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.

Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.

X18 · Disposal-pattern correctness4.3 / 10Weak✓ Tool-verified

Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.

Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.

  • `scala.io.Source.fromFile(…)` opens something that has to be given back — a file descriptor, a socket, a directory handle — and its only use reads `.mkString` through it and drops it, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: `Too many open files` under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with `scala.util.Using.resource(scala.io.Source.fromFile(…)) { r => … }`, which releases it on every path including a throw, or hold it and call `.close()` in a `finally`. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/Cache.scala:100
  • `scala.io.Source.fromFile(…)` opens something that has to be given back — a file descriptor, a socket, a directory handle — and its only use reads `.getLines` through it and drops it, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: `Too many open files` under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with `scala.util.Using.resource(scala.io.Source.fromFile(…)) { r => … }`, which releases it on every path including a throw, or hold it and call `.close()` in a `finally`. (×2) — project/SoccoIndex.scala:77, project/SoccoIndex.scala:98
  • `Files.walk(…)` opens something that has to be given back — a file descriptor, a socket, a directory handle — and its only use reads `.collect` through it and drops it, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: `Too many open files` under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with `scala.util.Using.resource(Files.walk(…)) { r => … }`, which releases it on every path including a throw, or hold it and call `.close()` in a `finally`. — integration/src/main/scala/com/spotify/scio/PopulateTestData.scala:40

What to do

  • Each finding names the value and the span that decides who owns it — the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.

Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.

X20 · Mistyped argument guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.

Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). 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.

X22 · Contradicted release guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.

Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.

X23 · Unguarded diagnostic materialisation5.3 / 10Adequate✓ Tool-verified

Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.

Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.

  • `debug` at line 135 is called with an argument built by `finalLocalArtifacts.mkString("…")` (line 135), whose cost grows with the collection it walks. Scala evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: the logger takes a built `String` (SLF4J, Akka/Pekko `LoggingAdapter`, `context.log`), and there is no `isDebugEnabled`/`isTraceEnabled` test and no debug flag. — scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:135
  • `debug` at line 160 is called with an argument built by `classPathJars.mkString("…")` (line 160), whose cost grows with the collection it walks. Scala evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: the logger takes a built `String` (SLF4J, Akka/Pekko `LoggingAdapter`, `context.log`), and there is no `isDebugEnabled`/`isTraceEnabled` test and no debug flag. — scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:160
  • `debug` at line 141 is called with an argument built by `added.mkString("…")` (line 141), whose cost grows with the collection it walks. Scala evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: the logger takes a built `String` (SLF4J, Akka/Pekko `LoggingAdapter`, `context.log`), and there is no `isDebugEnabled`/`isTraceEnabled` test and no debug flag. — scio-core/src/main/scala/com/spotify/scio/util/AvroClassTrust.scala:141
  • `debug` at line 53 is called with an argument built by `registrars.mkString("…")` (line 53), whose cost grows with the collection it walks. Scala evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: the logger takes a built `String` (SLF4J, Akka/Pekko `LoggingAdapter`, `context.log`), and there is no `isDebugEnabled`/`isTraceEnabled` test and no debug flag. — scio-core/src/main/scala/com/spotify/scio/coders/KryoAtomicCoder.scala:53

What to do

  • In Scala, put the construction behind the logger's own check (`if (log.isDebugEnabled)`), or log through a logger that takes the message by name or by macro and so builds it only when the level is on — scala-logging's `LazyLogging`/`StrictLogging` (`logger.debug(s"rows: ${rows.mkString(", ")}")` expands to that check), log4s or log4cats. Interpolating into an `s"…"` is not the fix on SLF4J or Akka's `LoggingAdapter`: their `debug` takes a `String`, so the interpolation and every `mkString` inside it run before the call is entered.
X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.

Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.

X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.

Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.

X26 · Unsynchronised callback handoff10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.

Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. 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 `for` loop leaves the `dict`, `set` or `deque` it is walking alone — CPython's iterators over those check that the collection has not changed size since the loop began, so a body that removes from (or empties) the very collection the loop is walking makes the next step raise `RuntimeError: dictionary changed size during iteration` and the remaining items are never seen. Whether a `for` comprehension or `foreach` leaves the mutable collection it is walking alone — an `ArrayBuffer` or `ListBuffer` counts its changes and its iterator checks the count, an `ArrayDeque` (and `mutable.Queue`/`mutable.Stack`) is walked by index up to its starting length, and a `java.util` collection walked through `asScala` is fail-fast, so a body that adds to or removes from the very collection the loop is walking makes a later step throw `ConcurrentModificationException` (`IndexOutOfBoundsException` for a deque) and the remaining elements are never seen.

Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.

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 handling7.0 / 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.

  • `case _: Throwable` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×4) — scio-repl/src/main/scala/com/spotify/scio/repl/ScioReplClassLoader.scala:39, scio-core/src/main/scala/com/spotify/scio/SysProps.scala:66, scio-core/src/main/scala/com/spotify/scio/io/FileStorage.scala:66, …

What to do

  • Swallowed exception (caught, then discarded)
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.

X4 · Structured logging4.3 / 10Weak✓ Tool-verified

Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.

  • `info` at line 100 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-repl/src/main/scala/com/spotify/scio/repl/IoCommands.scala:100
  • `info` at line 111 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-repl/src/main/scala/com/spotify/scio/repl/IoCommands.scala:111
  • `info` at line 125 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-repl/src/main/scala/com/spotify/scio/repl/IoCommands.scala:125
  • `info` at line 137 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-jdbc/src/main/scala/com/spotify/scio/jdbc/sharded/JdbcShardedSource.scala:137
  • `info` at line 159 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-jdbc/src/main/scala/com/spotify/scio/jdbc/sharded/Shard.scala:159
  • `debug` at line 576 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/TypeProvider.scala:576
  • `info` at line 143 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/ExtractOps.scala:143
  • `info` at line 45 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:45
  • `info` at line 52 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:52
  • `info` at line 64 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:64
  • `info` at line 67 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:67
  • `info` at line 73 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:73
  • `warn` at line 111 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:111
  • `info` at line 118 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:118
  • `info` at line 171 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/LoadOps.scala:171
  • `info` at line 69 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:69
  • `info` at line 80 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:80
  • `info` at line 157 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:157
  • `info` at line 158 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:158
  • `info` at line 162 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:162
  • `info` at line 167 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:167
  • `info` at line 183 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:183
  • `info` at line 184 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:184
  • `info` at line 262 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:262
  • `info` at line 264 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:264
  • `warn` at line 305 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:305
  • `error` at line 308 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:308
  • `info` at line 317 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/TableOps.scala:317
  • `info` at line 320 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/TableOps.scala:320
  • `info` at line 151 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/SparkeyIO.scala:151
  • `info` at line 208 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/SparkeyIO.scala:208
  • `info` at line 188 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-extra/src/main/scala/com/spotify/scio/extra/annoy/package.scala:188
  • `info` at line 200 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-extra/src/main/scala/com/spotify/scio/extra/annoy/package.scala:200
  • `info` at line 161 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-elasticsearch/common/src/main/scala/com/spotify/scio/elasticsearch/IndexAdmin.scala:161
  • `debug` at line 72 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:72
  • `debug` at line 135 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:135
  • `debug` at line 160 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:160
  • `info` at line 365 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:365
  • `warn` at line 142 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-core/src/main/scala/com/spotify/scio/VersionUtil.scala:142
  • `info` at line 103 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix. — scio-core/src/main/scala/com/spotify/scio/io/Taps.scala:103

What to do

  • Interpolated log message defeats structured logging
X5 · Nullable reference types2.0 / 10Critical✓ Tool-verified

Other · Code Health — Whether Scala's null is held to the type system and not undermined by assertions — a file compiled with `-Yexplicit-nulls` is one where `String` excludes null and `String | Null` admits it, a file under WartRemover's `Null` wart or Scalafix's `DisableSyntax.noNulls` is one whose code cannot write `null` and must say `Option`, and each `.nn`, `import scala.language.unsafeNulls` or null-lint suppression is the author overruling that.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

  • No build over this repository's 530 Scala product file(s) passes `-Yexplicit-nulls`, enables WartRemover's `Null` wart or runs Scalafix's `DisableSyntax.noNulls`, so every reference type admits null and nothing reports a `null` written into the code or returned from a Java API — the first one to reach a method call is a `NullPointerException`. `Option` by convention is a habit no tool here holds the code to.

What to do

  • On Scala 3, add `-Yexplicit-nulls` to `scalacOptions` so `String` and `String | Null` mean different things, and type each Java API's result as nullable where it can return null; on Scala 2 (or as a first step), enable WartRemover's `Null` wart (`wartremoverErrors += Wart.Null`) or Scalafix's `DisableSyntax.noNulls = true` so the code holds absence in `Option`. Then pay the assertions down rather than adding to them: each `.nn` is a null the compiler could not rule out — wrap the Java value in `Option(…)` at the boundary, pattern-match on `null` once there, or change the API so the null cannot arrive; an `unsafeNulls` import switches the checking off for everything after it.

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 Health51%Adequate — gated by X5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture91%Adequate — gated by D26Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity64%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness75%StrongSolid.
Security74%Adequate — gated by D29Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance83%StrongStrongest area.
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.

  • P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • X10 Duplicated predicate — 6 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 48 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.

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — not analysed — these correctness checks read a source model 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
  • 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. No function in this Python code is served by a threaded web framework (a Flask, Bottle or FastAPI route, a Django or Pyramid view), so no module is shared between request threads. No class in this Scala code is a Play controller, a Cask routes object, a Scalatra servlet, a Finatra controller, an Akka/Pekko HTTP routes holder or a JSR-330/Spring singleton, so no instance is shared between request threads.
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB1 Runtime evidence locked — no reproducible boot — This repository has nothing the runtime tiers could boot or serve — no markup, no UI framework or web-server dependency, no UI component source, no native UI project and no API definition — nothing here is a surface to boot — so runtime a11y/egress/header evidence has no subject here. Not applicable: this is neither a gap in the scan nor a finding about your code.
  • 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.
  • D10 Test Quality — ~44511 lines of test source are present (.scala, .java) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included — the .scala suite was found but not re-run
  • 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.
  • D19 Documentation Quality — No runnable or published unit to look for an example in, and no multi-project root README to look for a map in; the other documentation kinds are withheld (see the gaps), so documentation quality is not applicable here.
  • D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
  • D21 Naming Consistency — Naming consistency is measured on C# only; Java, Python, Scala not measured.
  • D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — D24 reads C# and Visual Basic comments only — this repository's production source is .java, .py, .scala, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.scala), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
  • D34 Knowledge Freshness — knowledge concentrated in recent work — freshness signal contradicted by repo activity
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • 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.
  • D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not included — suite not readable by the collector
  • DM1 Domain Modelling — applicable but not scored (2 signals for this style, 2 needed — the count is met but a required primary signal is absent): 355 value object(s); 1 domain event(s); its domain events are published by services or handlers — no domain entity raises one
  • 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
  • P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM, Python source, so there is no service whose uptime a failing dependency could take down
  • P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (`addSbtPlugin("org.scoverage" % "sbt-scoverage" % "<version>")` in `project/plugins.sbt`, then `sbt clean coverage test coverageReport`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
  • S1 Web-Security Posture — No web surface: 635 Scala file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled TLS certificate validation and obsolete TLS versions, and none was found. This repository serves no HTTP of its own — no HTTP-server artifact (akka-http, pekko-http, http4s, Play, Finagle, zio-http, cask, Scalatra, a tapir server, Jetty, Undertow, …) outside test scope in its build, and no server package imported or server bound in its production source — so HTTPS enforcement, HSTS, cookie flags and input validation are N/A here, as they are for a C# library or worker. If this codebase starts serving HTTP, the dimension reactivates automatically.
  • X2 Cancellation propagation — no C# was loaded; this repository's Scala, Java and Python were read, and no request in it can be cancelled by a caller — a Scala request takes no token: a Future cannot be cancelled, and cats-effect, ZIO and Monix interrupt the fiber that made the request from outside the call, not through a parameter; a Java request off Android takes no token: it is cancelled through the handle it returns (Future.cancel, Call.cancel, a Disposable), ambiently (io.grpc.Context) or by interrupting its thread, not through a parameter; a Python request takes no token: asyncio cancels the task and trio or anyio the scope that made it, from outside the call, and requests, httpx, aiohttp and gRPC take a timeout, not a cancellation
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • 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 — 76 finding(s)
D29 · Static Analysis (SAST) · 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
  • REDACTED
  • + 32 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Critical CVE · ×2
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · High CVE · ×2
  • REDACTED
  • REDACTED
D14 · License Compliance · Banned license · ×1
  • Banned license: com.mysql:mysql-connector-j — `com.mysql:mysql-connector-j` 9.7.0 is published on Maven Central under `GPL-2.0`, which this policy bans, and this repository declares it in its sbt build. 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 — 418 finding(s)
D17 · Explicit Debt · TodoComment · ×40
  • TodoComment scio-test/parquet/src/test/scala/com/spotify/scio/testing/parquet/ParquetTestUtilsTest.scala:117 — // Todo eventually replace with MagnolifyParquetProperties — 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 scio-tensorflow/src/test/scala/com/spotify/scio/tensorflow/TFExampleIOTest.scala:63 — // TODO there is an exception with auto-sharding that fails for unbounded streams due to a GBK so numShards must be specified — 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 scio-parquet/src/test/scala/com/spotify/scio/parquet/types/ParquetTypeIOTest.scala:47 — // TODO there is an exception with auto-sharding that fails for unbounded streams due to a GBK so numShards must be specified — 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 scio-parquet/src/test/scala/com/spotify/scio/parquet/tensorflow/ParquetExampleIOTest.scala:159 — // TODO there is an exception with auto-sharding that fails for unbounded streams due to a GBK so numShards must be specified — 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 scio-parquet/src/test/scala/com/spotify/scio/parquet/avro/ParquetAvroIOTest.scala:67 — // TODO there is an exception with auto-sharding that fails for unbounded streams due to a GBK so numShards must be specified — 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 scio-core/src/test/scala/com/spotify/scio/io/ScioIOTest.scala:183 — // TODO there is an exception with auto-sharding that fails for unbounded streams due to a GBK so numShards must be specified — 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 scio-core/src/test/scala/com/spotify/scio/io/ScioIOTest.scala:212 — // TODO there is an exception with auto-sharding that fails for unbounded streams due to a GBK so numShards must be specified — 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 scio-avro/src/test/scala/com/spotify/scio/avro/AvroIOTest.scala:52 — // TODO there is an exception with auto-sharding that fails for unbounded streams due to a GBK so numShards must be specified — 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 scio-avro/src/test/scala/com/spotify/scio/avro/AvroIOTest.scala:82 — // TODO there is an exception with auto-sharding that fails for unbounded streams due to a GBK so numShards must be specified — 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 scio-avro/src/test/scala/com/spotify/scio/avro/AvroIOTest.scala:110 — // TODO there is an exception with auto-sharding that fails for unbounded streams due to a GBK so numShards must be specified — 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 scio-snowflake/src/main/scala/com/spotify/scio/snowflake/SnowflakeIO.scala:179 — // TODO Create a tap — 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 scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketSink.java:405 — // TODO is there some better way to avoid this? it's either shuffle or serde here — 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 scio-repl/src/main/scala/com/spotify/scio/repl/ScioILoop.scala:85 — // TODO: pass BQ settings + non distributed settings — 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 scio-google-cloud-platform/src/test/scala/com/spotify/scio/bigquery/types/TypeProviderTest.scala:88 — // TODO: mock BigQueryClient for fromTable and fromQuery — 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 scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/BigQueryIO.scala:83 — // TODO: support labels Inheritance like in bqReadQuery — 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 scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/taps.scala:65 — // TODO this is inefficient. Migrate to TableRow API ? — 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 scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/TypeProvider.scala:517 — // TODO: add this as key/value settings with default etc — 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 scio-avro/src/main/scala/com/spotify/scio/avro/types/TypeProvider.scala:423 — // TODO: add this as key/value settings with default etc — 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 scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/syntax/SCollectionSyntax.scala:206 — // Todo remove once https://github.com/apache/beam/issues/34038 is fixed
  • TodoComment scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/SparkeyIO.scala:54 — // See the thread-safety TODO and mutable cache implementation in Chill 0.10.0: — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/SparkeyIO.scala:185 — // TODO WriteFiles inserts a reshuffle here for unclear reasons — 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 scio-examples/src/main/scala/com/spotify/scio/examples/complete/TfIdf.scala:73 — // TODO: add splittable DoFn approach once available — 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 scio-examples/src/main/java/org/apache/beam/examples/subprocess/utils/FileUtils.java:69 — // TODO currently not supported with different schemas for example GCS to local, else could use — 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 scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:474 — // Todo replace with getReadChannelOptions when GoogleCloudDataproc/hadoop-connectors#1294 is released
  • TodoComment scio-core/src/main/scala/com/spotify/scio/values/SCollection.scala:927 — // TODO move to implicit — 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.
  • + 15 more in this group — see findings.md.
GD1 · Unfinished & placeholder code · Unfinished stub · ×40
  • Unfinished stub — body is `???` scalafix/input-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:16 — `toTensors` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:17 — `fromTensors` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:12 — `put` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:13 — `get` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:14 — `getSchema` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:18 — `getSchema` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:19 — `writeExternal` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:20 — `readExternal` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder10.scala:12 — `main` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder15.scala:12 — `someMethod` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder3.scala:9 — `foo` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder4.scala:9 — `foo` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder5.scala:13 — `foo` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:13 — `main` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:20 — `read` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:21 — `write` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:22 — `tap` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixLogicalTypeSuppliers.scala:76 — `customMethod` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixQuery.scala:14 — `queryRaw` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixQuery.scala:15 — `query` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:11 — `getSchema` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:12 — `get` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:13 — `put` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:14 — `get` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is `???` scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:15 — `put` is a shipped member whose whole body is still `???`, and nothing in the repository overrides it — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • + 15 more in this group — see findings.md.
IC1 · Incompleteness & stubs · Unfinished stub · ×37
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:16 — `toTensors` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_13/src/main/scala/fix/v0_13_0/FixTfParameter.scala:17 — `fromTensors` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:12 — `put` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:13 — `get` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:14 — `getSchema` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:18 — `getSchema` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:19 — `writeExternal` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/AvroRecords.scala:20 — `readExternal` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder10.scala:12 — `main` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder15.scala:12 — `someMethod` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder3.scala:9 — `foo` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder4.scala:9 — `foo` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder5.scala:13 — `foo` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:13 — `main` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:20 — `read` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:21 — `write` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixAvroCoder9.scala:22 — `tap` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixLogicalTypeSuppliers.scala:76 — `customMethod` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixQuery.scala:14 — `queryRaw` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_14/src/main/scala/fix/v0_14_0/FixQuery.scala:15 — `query` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:11 — `getSchema` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:12 — `get` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:13 — `put` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:14 — `get` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — body is ??? / NotImplementedError scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:15 — `put` is a shipped method whose whole body is `???` (or throws NotImplementedError), and nothing in the repository overrides it — scaffolding that was never completed. Implement it or remove the dead surface.
  • + 12 more in this group — see findings.md.
D17 · Explicit Debt · FixmeComment · ×14
  • FixmeComment scio-test/core/src/test/scala/com/spotify/scio/testing/SCollectionMatchersTest.scala:336 — // FIXME: these will fail if TR in predicate is pulled in via closure, not sure if fixable — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-test/core/src/test/scala/com/spotify/scio/testing/SCollectionMatchersTest.scala:389 — // FIXME: these will fail if TR in predicate is pulled in via closure, not sure if fixable — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-test/core/src/test/scala/com/spotify/scio/testing/SCollectionMatchersTest.scala:443 — // FIXME: these will fail if TR in predicate is pulled in via closure, not sure if fixable — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-test/core/src/test/scala/com/spotify/scio/testing/SCollectionMatchersTest.scala:518 — // FIXME: these will fail if TR in predicate is pulled in via closure, not sure if fixable — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-tensorflow/src/main/java/org/apache/beam/sdk/io/TFRecordFileBasedSink.java:49 — // FIXME why! make! things! private? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/KeyGroupIterator.java:31 — // FIXME: current limitation: must exhaust Iterator<ValueT> before starting the next key group — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java:216 — // FIXME: what about `Option[T]` — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/StorageUtil.scala:101 — // FIXME: schema.getLogicalType == null in this case, BigQuery service side bug? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-core/src/test/scala/com/spotify/scio/transforms/PipeDoFnTest.scala:137 — // FIXME: this test is flaky because teardown is called asynchronously — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-core/src/test/scala/com/spotify/scio/coders/CoderTest.scala:489 — // FIXME: TableRowJsonCoder cannot be tested in scio-test because of circular dependency on scio-google-cloud-platform — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:89 — // FIXME: this is ugly, is there a better way? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-core/src/main/scala/com/spotify/scio/util/ScioUtil.scala:55 — // FIXME: cover Flink, Spark, etc. in local mode — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-core/src/main/scala/com/spotify/scio/coders/KryoAtomicCoder.scala:187 — // FIXME: handle ElementByteSizeObservableIterable[_, _] — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment scio-avro/src/test/scala/com/spotify/scio/avro/types/ConverterProviderSpec.scala:122 — // FIXME: can't derive Eq for this — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×11
  • Duplicated block (7 lines × 2) scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:145 — scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:145-151 | scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/PairLargeHashSCollectionFunctions.scala:169-175 — before extracting anything, compare `scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala` and `scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/PairLargeHashSCollectionFunctions.scala` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 `scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:145` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:77 — scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:77-83 | scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:124-130 — 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 `scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:77` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:468 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:468-474 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1474-1480 — 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 `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:468` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:816 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:816-822 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1792-1798 — 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 `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:816` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) scio-avro/src/main/scala/com/spotify/scio/avro/types/TypeProvider.scala:456 — scio-avro/src/main/scala/com/spotify/scio/avro/types/TypeProvider.scala:456-462 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/TypeProvider.scala:557-563 — 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.
  • Duplicated block (7 lines × 2) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1556 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1556-1562 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2333-2339 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1556` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1802 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1802-1808 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2579-2585 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1802` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java:85 — scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java:85-91 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetUtils.java:79-85 — before extracting anything, compare `scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java` and `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetUtils.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) scio-parquet/src/main/java/com/spotify/scio/parquet/avro/ParquetAvroFileBasedSink.java:109 — scio-parquet/src/main/java/com/spotify/scio/parquet/avro/ParquetAvroFileBasedSink.java:109-115 | scio-parquet/src/main/java/com/spotify/scio/parquet/tensorflow/ParquetExampleFileBasedSink.java:108-114 — 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 `scio-parquet/src/main/java/com/spotify/scio/parquet/avro/ParquetAvroFileBasedSink.java:109` 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 × 2) scio-parquet/src/main/java/com/spotify/scio/parquet/avro/ParquetAvroFileBasedSink.java:77 — scio-parquet/src/main/java/com/spotify/scio/parquet/avro/ParquetAvroFileBasedSink.java:77-83 | scio-parquet/src/main/java/com/spotify/scio/parquet/tensorflow/ParquetExampleFileBasedSink.java:77-83 — 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 `scio-parquet/src/main/java/com/spotify/scio/parquet/avro/ParquetAvroFileBasedSink.java:77` 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 × 2) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/JsonSortedBucketIO.java:43 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/JsonSortedBucketIO.java:43-49 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/TensorFlowBucketIO.java:56-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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind `tupleTag` to `TupleTag<TableRow>` in one and `TupleTag<Example>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D3 · God Classes · TooManyMethods · ×10
  • TooManyMethods: SCollection scio-core/src/main/scala/com/spotify/scio/values/SCollection.scala:121 — TooManyMethods — 123 methods. The bar is 30 methods; this is 93 over it, 4.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: MultiJoin scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:28 — TooManyMethods — 86 methods. The bar is 30 methods; this is 56 over it, 2.87× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: SMBMultiJoin scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:31 — TooManyMethods — 85 methods. The bar is 30 methods; this is 55 over it, 2.83× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: PairSCollectionFunctions scio-core/src/main/scala/com/spotify/scio/values/PairSCollectionFunctions.scala:58 — TooManyMethods — 69 methods. The bar is 30 methods; this is 39 over it, 2.30× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: TableRowOps scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/syntax/TableRowSyntax.scala:168 — TooManyMethods — 51 methods. The bar is 30 methods; this is 21 over it, 1.70× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: BucketMetadata scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/BucketMetadata.java:82 — TooManyMethods — 43 methods. The bar is 30 methods; this is 13 over it, 1.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: FixPubsubSpecializations scalafix/input-0_12/src/main/scala/fix/v0_12_0/FixPubsubSpecializations.scala:11 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: FixPubsubSpecializations scalafix/output-0_12/src/main/scala/fix/v0_12_0/FixPubsubSpecializations.scala:8 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ScioContext scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:433 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: SortedBucketScioContext scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:40 — TooManyMethods — 31 methods. The bar is 30 methods; this is 1 over it, 1.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×10
  • Duplicated block (10 lines × 2) scio-core/src/main/scala/com/spotify/scio/util/FunctionsWithWindowedValue.scala:47 — scio-core/src/main/scala/com/spotify/scio/util/FunctionsWithWindowedValue.scala:47-56 | scio-core/src/main/scala/com/spotify/scio/util/FunctionsWithWindowedValue.scala:67-76 — 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 `scio-core/src/main/scala/com/spotify/scio/util/FunctionsWithWindowedValue.scala:47` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:64 — scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:64-73 | scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/PairLargeHashSCollectionFunctions.scala:75-84 — before extracting anything, compare `scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala` and `scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/PairLargeHashSCollectionFunctions.scala` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 `scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:64` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:406 — scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:406-415 | scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:502-511 — 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 `scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:406` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:637 — scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:637-646 | scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:713-722 — 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 `scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:637` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) scio-snowflake/src/main/scala/com/spotify/scio/snowflake/SnowflakeIO.scala:152 — scio-snowflake/src/main/scala/com/spotify/scio/snowflake/SnowflakeIO.scala:152-161 | scio-snowflake/src/main/scala/com/spotify/scio/snowflake/SnowflakeIO.scala:188-197 — 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 `scio-snowflake/src/main/scala/com/spotify/scio/snowflake/SnowflakeIO.scala:152` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroSortedBucketIO.java:132 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroSortedBucketIO.java:132-141 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetAvroSortedBucketIO.java:128-137 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroSortedBucketIO.java:132` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java:454 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java:454-463 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketPrimaryAndSecondaryKeyedSource.java:100-109 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java:454` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) scripts/multijoin.py:74 — scripts/multijoin.py:74-83 | scripts/multijoin.py:144-154 — 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 `scripts/multijoin.py:74` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) scio-examples/src/main/scala/com/spotify/scio/examples/complete/game/GameStats.scala:58 — scio-examples/src/main/scala/com/spotify/scio/examples/complete/game/GameStats.scala:58-67 | scio-examples/src/main/scala/com/spotify/scio/examples/complete/game/LeaderBoard.scala:61-70 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) scio-examples/src/main/java/org/apache/beam/examples/complete/game/utils/WriteToBigQuery.java:124 — scio-examples/src/main/java/org/apache/beam/examples/complete/game/utils/WriteToBigQuery.java:124-133 | scio-examples/src/main/java/org/apache/beam/examples/complete/game/utils/WriteWindowedToBigQuery.java:63-72 — 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `teamAndScore` to `PCollection<InputT>` in one and `PCollection<T>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D3 · God Classes · FileTooLong · ×8
  • FileTooLong: util/MultiJoin.scala scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala — FileTooLong — 2595 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2095 over it, 5.19× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: util/SMBMultiJoin.scala scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala — FileTooLong — 1685 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SMBMultiJoin (31-2084). The bar is 500 significant lines; this is 1185 over it, 3.37× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: bigquery/BigQueryIO.scala scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/BigQueryIO.scala — FileTooLong — 756 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 256 over it, 1.51× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: values/SCollection.scala scio-core/src/main/scala/com/spotify/scio/values/SCollection.scala — FileTooLong — 659 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 159 over it, 1.32× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: smb/SortedBucketSink.java scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketSink.java — FileTooLong — 640 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: SortedBucketSink (124-894). The bar is 500 significant lines; this is 140 over it, 1.28× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: elasticsearch/ElasticsearchIO.java scio-elasticsearch/common/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java — FileTooLong — 569 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: ElasticsearchIO (74-808). The bar is 500 significant lines; this is 69 over it, 1.14× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: scio/ScioContext.scala scio-core/src/main/scala/com/spotify/scio/ScioContext.scala — FileTooLong — 564 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 64 over it, 1.13× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: syntax/SortMergeBucketScioContextSyntax.scala scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala — FileTooLong — 504 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SortedBucketScioContext (40-756). The bar is 500 significant lines; this is 4 over it, 1.01× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×8
  • Duplicated block (5 lines × 3) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:814 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:814-818 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1591-1595 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2368-2372 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:814` 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) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:852 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:852-856 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1629-1633 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2406-2410 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:852` 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) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1072 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1072-1076 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1849-1853 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2626-2630 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1072` 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) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1122 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1122-1126 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1899-1903 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2676-2680 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1122` 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) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1179 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1179-1183 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1234-1238 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1291-1295 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1233` calls `getAll` and `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1178` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (5 lines × 3) scio-examples/src/main/scala/com/spotify/scio/examples/extra/MagnolifyAvroExample.scala:46 — scio-examples/src/main/scala/com/spotify/scio/examples/extra/MagnolifyAvroExample.scala:46-50 | scio-examples/src/main/scala/com/spotify/scio/examples/extra/MagnolifyDatastoreExample.scala:48-52 | scio-examples/src/main/scala/com/spotify/scio/examples/extra/MagnolifyTensorFlowExample.scala:53-57 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (5 lines × 3) scio-examples/src/main/java/org/apache/beam/examples/cookbook/BigQueryTornadoes.java:148 — scio-examples/src/main/java/org/apache/beam/examples/cookbook/BigQueryTornadoes.java:148-152 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/CombinePerKeyExamples.java:182-186 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/MaxPerKeyExamples.java:138-142 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (5 lines × 3) scio-examples/src/main/java/org/apache/beam/examples/cookbook/BigQueryTornadoes.java:91 — scio-examples/src/main/java/org/apache/beam/examples/cookbook/BigQueryTornadoes.java:91-95 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/CombinePerKeyExamples.java:101-105 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/MaxPerKeyExamples.java:88-92 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind `element` to `KV<Integer, Long>` in one and `KV<String, String>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D36 · Supply-chain Provenance & Signing REDACTED · ×7
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×7
  • Duplicated block (5 lines × 2) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:175 — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:175-179 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:369-373 — 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 `scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:175` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:900 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:900-904 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1926-1930 — 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 `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:900` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) scio-core/src/main/scala-2.12/com/spotify/scio/coders/instances/JavaCollectionWrappers.scala:39 — scio-core/src/main/scala-2.12/com/spotify/scio/coders/instances/JavaCollectionWrappers.scala:39-43 | scio-core/src/main/scala-2.13/com/spotify/scio/coders/instances/JavaCollectionWrappers.scala:39-43 — before extracting anything, compare `scio-core/src/main/scala-2.12/com/spotify/scio/coders/instances/JavaCollectionWrappers.scala` and `scio-core/src/main/scala-2.13/com/spotify/scio/coders/instances/JavaCollectionWrappers.scala` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
  • Duplicated block (5 lines × 2) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:197 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:197-201 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java:233-237 — before extracting anything, compare `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java` and `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java` 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:204 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:204-208 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java:240-244 — before extracting anything, compare `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java` and `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java` 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) scio-elasticsearch/common/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java:476 — scio-elasticsearch/common/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java:476-480 | scio-google-cloud-platform/src/main/java/com/spotify/scio/bigtable/BigtableBulkWriter.java:214-218 — 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 `scio-google-cloud-platform/src/main/java/com/spotify/scio/bigtable/BigtableBulkWriter.java:214` 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 first that the copies are not typed on the same thing: the declarations holding them bind `element` to `T` in one and `KV<ByteString, Iterable<Mutation>>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 2) scio-examples/src/main/scala/com/spotify/scio/examples/WordCount.scala:77 — scio-examples/src/main/scala/com/spotify/scio/examples/WordCount.scala:77-81 | scio-examples/src/main/scala/com/spotify/scio/examples/extra/WordCountScioIO.scala:79-83 — 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.
D3 · God Classes · ClassTooLong · ×6
  • ClassTooLong: SortedBucketSink scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketSink.java:124 — ClassTooLong — 578 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 178 over it, 1.45× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: ElasticsearchIO scio-elasticsearch/common/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java:74 — ClassTooLong — 516 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 116 over it, 1.29× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: SortedBucketScioContext scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:40 — ClassTooLong — 487 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 87 over it, 1.22× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: SortedBucketIO scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java:63 — ClassTooLong — 434 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 34 over it, 1.09× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: SortedBucketTransform scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketTransform.java:77 — ClassTooLong — 418 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 18 over it, 1.05× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: SortedBucketSource scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketSource.java:89 — ClassTooLong — 417 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 17 over it, 1.04× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×6
  • Members sharing a duplicated core (4 members, 50+ identical tokens) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:48 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:48-61 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:555-572 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1332-1349 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2109-2126 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:63 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:63-77 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:574-593 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1351-1370 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2128-2147 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:64 — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:64-165 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:167-285 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:289-357 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:361-459 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) scio-redis/src/main/scala/com/spotify/scio/redis/RedisMutator.scala:87 — scio-redis/src/main/scala/com/spotify/scio/redis/RedisMutator.scala:87-99 | scio-redis/src/main/scala/com/spotify/scio/redis/RedisMutator.scala:101-113 | scio-redis/src/main/scala/com/spotify/scio/redis/RedisMutator.scala:115-127 | scio-redis/src/main/scala/com/spotify/scio/redis/RedisMutator.scala:130-142 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:181 — scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:181-227 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncDoFn.java:86-104 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncLookupDoFn.java:183-226 | scio-core/src/main/java/com/spotify/scio/transforms/FileDownloadDoFn.java:100-112 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficMaxLaneFlow.java:275 — scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficMaxLaneFlow.java:275-289 | scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficRoutes.java:277-285 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/FilterExamples.java:228-236 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/TriggerExample.java:533-547 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×6
  • Duplicated block (11 lines × 2) scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala:78 — scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala:78-88 | scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroSchemasPackage.scala:48-58 — before extracting anything, compare `scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala` and `scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroSchemasPackage.scala` as WHOLE FILES: this scan already matched 3 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) scio-avro/src/main/scala/com/spotify/scio/avro/AvroCompat.scala:102 — scio-avro/src/main/scala/com/spotify/scio/avro/AvroCompat.scala:102-112 | scio-parquet/src/main/scala/com/spotify/scio/parquet/avro/AvroStringType.scala:43-53 — 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 `scio-avro/src/main/scala/com/spotify/scio/avro/AvroCompat.scala:102` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:113 — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:113-123 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:407-419 — 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 `scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:113` 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.
  • Duplicated block (11 lines × 2) scio-repl/src/main/scala-2.12/com/spotify/scio/repl/ScioGenericRunner.scala:39 — scio-repl/src/main/scala-2.12/com/spotify/scio/repl/ScioGenericRunner.scala:39-49 | scio-repl/src/main/scala-2.13/com/spotify/scio/repl/ScioGenericRunner.scala:37-47 — before extracting anything, compare `scio-repl/src/main/scala-2.12/com/spotify/scio/repl/ScioGenericRunner.scala` and `scio-repl/src/main/scala-2.13/com/spotify/scio/repl/ScioGenericRunner.scala` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) scio-examples/src/main/scala/com/spotify/scio/examples/complete/TrafficMaxLaneFlow.scala:70 — scio-examples/src/main/scala/com/spotify/scio/examples/complete/TrafficMaxLaneFlow.scala:70-80 | scio-examples/src/main/scala/com/spotify/scio/examples/complete/TrafficRoutes.scala:57-67 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-examples/src/main/scala/com/spotify/scio/examples/complete/TrafficMaxLaneFlow.scala:70` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `scio-examples/src/main/scala/com/spotify/scio/examples/complete/TrafficMaxLaneFlow.scala:67` calls `setup` and `scio-examples/src/main/scala/com/spotify/scio/examples/complete/TrafficRoutes.scala:54` 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 (11 lines × 2) scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficMaxLaneFlow.java:360 — scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficMaxLaneFlow.java:360-370 | scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficRoutes.java:363-373 — 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.
D4 · Code Duplication · Duplicated block (6 lines × 4) · ×5
  • Duplicated block (6 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:67 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:67-72 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:578-583 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1355-1360 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2132-2137 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:184 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:184-189 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:740-745 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1517-1522 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2294-2299 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:184` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:337 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:337-342 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:974-979 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1751-1756 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2528-2533 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:337` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 4) scio-redis/src/main/scala/com/spotify/scio/redis/RedisMutator.scala:89 — scio-redis/src/main/scala/com/spotify/scio/redis/RedisMutator.scala:89-94 | scio-redis/src/main/scala/com/spotify/scio/redis/RedisMutator.scala:103-108 | scio-redis/src/main/scala/com/spotify/scio/redis/RedisMutator.scala:117-122 | scio-redis/src/main/scala/com/spotify/scio/redis/RedisMutator.scala:132-137 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 4) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:189 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:189-194 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/JsonBucketMetadata.java:146-151 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java:143-148 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/TensorFlowBucketMetadata.java:157-162 — before extracting anything, compare `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java` and `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java` 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind `builder` to `Builder` in one and `DisplayData.Builder` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×5
  • Duplicated block (6 lines × 2) scalafix/rules/src/main/scala/fix/v0_12_0/FixPubsubSpecializations.scala:173 — scalafix/rules/src/main/scala/fix/v0_12_0/FixPubsubSpecializations.scala:173-178 | scalafix/rules/src/main/scala/fix/v0_12_0/FixPubsubSpecializations.scala:180-185 — 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 `scalafix/rules/src/main/scala/fix/v0_12_0/FixPubsubSpecializations.scala:173` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) scio-avro/src/main/scala/com/spotify/scio/avro/types/MacroUtil.scala:36 — scio-avro/src/main/scala/com/spotify/scio/avro/types/MacroUtil.scala:36-41 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/MacroUtil.scala:39-44 — 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.
  • Duplicated block (6 lines × 2) scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:148 — scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:148-153 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncLookupDoFn.java:150-155 — 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `resource` to `Pair<ClientType, Cache<String, Output>>` in one and `Pair<Client, Cache<Input, Output>>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (6 lines × 2) scripts/smb_multijoin.py:91 — scripts/smb_multijoin.py:91-96 | scripts/smb_multijoin.py:124-129 — 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 `scripts/smb_multijoin.py:91` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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 lines × 2) scio-examples/src/main/java/org/apache/beam/examples/cookbook/CombinePerKeyExamples.java:181 — scio-examples/src/main/java/org/apache/beam/examples/cookbook/CombinePerKeyExamples.java:181-186 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/MaxPerKeyExamples.java:137-142 — 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.
D4 · Code Duplication · Duplicated block (4–5 lines × 4) · ×5
  • Duplicated block (4–5 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:163 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:163-166 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:712-716 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1489-1493 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2266-2270 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:163` 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 (4–5 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:284 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:284-287 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:892-896 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1669-1673 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2446-2450 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:284` 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 (4–5 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:310 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:310-313 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:934-938 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1711-1715 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2488-2492 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:310` 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 (4–5 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:461 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:461-464 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1174-1178 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1951-1955 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2728-2732 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:461` 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 (4–5 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:493 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:493-496 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1228-1232 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2005-2009 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2782-2786 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:493` 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.
D17 · Explicit Debt · XxxComment · ×4
  • XxxComment scio-core/src/main/scala/com/spotify/scio/schemas/SchemaMaterializer.scala:51 — // XXX: scalac can't unify schema.Repr with s.Repr — 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.
  • XxxComment scio-core/src/main/scala/com/spotify/scio/schemas/SchemaMaterializer.scala:110 — // XXX: scalac can't unify schema.Repr with s.Repr — 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.
  • XxxComment scio-avro/src/main/scala/com/spotify/scio/coders/avro/AvroCoders.scala:141 — // XXX: similar to GenericAvroSerializer — 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.
  • XxxComment integration/src/test/scala/com/spotify/scio/testing/util/ItUtils.scala:35 — // XXX: Copied from BigQueryClient — 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.
X18 · Disposal-pattern correctness · Disposable created and abandoned in the function that made it · ×4
  • Disposable created and abandoned in the function that made it scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/Cache.scala:100 — `scala.io.Source.fromFile(…)` opens something that has to be given back — a file descriptor, a socket, a directory handle — and its only use reads `.mkString` through it and drops it, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: `Too many open files` under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with `scala.util.Using.resource(scala.io.Source.fromFile(…)) { r => … }`, which releases it on every path including a throw, or hold it and call `.close()` in a `finally`.
  • Disposable created and abandoned in the function that made it project/SoccoIndex.scala:77 — `scala.io.Source.fromFile(…)` opens something that has to be given back — a file descriptor, a socket, a directory handle — and its only use reads `.getLines` through it and drops it, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: `Too many open files` under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with `scala.util.Using.resource(scala.io.Source.fromFile(…)) { r => … }`, which releases it on every path including a throw, or hold it and call `.close()` in a `finally`.
  • Disposable created and abandoned in the function that made it project/SoccoIndex.scala:98 — `scala.io.Source.fromFile(…)` opens something that has to be given back — a file descriptor, a socket, a directory handle — and its only use reads `.getLines` through it and drops it, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: `Too many open files` under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with `scala.util.Using.resource(scala.io.Source.fromFile(…)) { r => … }`, which releases it on every path including a throw, or hold it and call `.close()` in a `finally`.
  • Disposable created and abandoned in the function that made it integration/src/main/scala/com/spotify/scio/PopulateTestData.scala:40 — `Files.walk(…)` opens something that has to be given back — a file descriptor, a socket, a directory handle — and its only use reads `.collect` through it and drops it, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: `Too many open files` under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with `scala.util.Using.resource(Files.walk(…)) { r => … }`, which releases it on every path including a throw, or hold it and call `.close()` in a `finally`.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×4
  • Swallowed exception (caught, then discarded) scio-repl/src/main/scala/com/spotify/scio/repl/ScioReplClassLoader.scala:39 — `case _: Throwable` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) scio-core/src/main/scala/com/spotify/scio/SysProps.scala:66 — `case _: Throwable` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) scio-core/src/main/scala/com/spotify/scio/io/FileStorage.scala:66 — `case _: Throwable` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) scio-core/src/main/scala/com/spotify/scio/coders/KryoAtomicCoder.scala:76 — `case _: Throwable` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×3
  • Duplicated block (13 lines × 2) scio-grpc/src/main/scala/com/spotify/scio/grpc/SCollectionSyntax.scala:137 — scio-grpc/src/main/scala/com/spotify/scio/grpc/SCollectionSyntax.scala:137-149 | scio-grpc/src/main/scala/com/spotify/scio/grpc/SCollectionSyntax.scala:194-206 — 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 `scio-grpc/src/main/scala/com/spotify/scio/grpc/SCollectionSyntax.scala:137` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) scio-parquet/src/main/scala/com/spotify/scio/parquet/tensorflow/ParquetExampleIO.scala:191 — scio-parquet/src/main/scala/com/spotify/scio/parquet/tensorflow/ParquetExampleIO.scala:191-203 | scio-parquet/src/main/scala/com/spotify/scio/parquet/types/ParquetTypeIO.scala:164-176 — 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 `scio-parquet/src/main/scala/com/spotify/scio/parquet/tensorflow/ParquetExampleIO.scala:191` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:11 — scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:11-23 | scalafix/output-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:11-23 — 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 `scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:11` 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 × 2) · ×3
  • Duplicated block (12 lines × 2) scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala:53 — scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala:53-64 | scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroSchemasPackage.scala:23-34 — before extracting anything, compare `scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala` and `scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroSchemasPackage.scala` as WHOLE FILES: this scan already matched 3 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:700 — scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:700-711 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1129-1140 — 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 `scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:700` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:346 — scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:346-357 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncLookupDoFn.java:276-287 — 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `future` to `FutureType` in one and `Future` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×3
  • Duplicated block (9 lines × 3) scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:321 — scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:321-329 | scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:406-414 | scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:502-510 — 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 `scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala:321` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 3) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/JsonSortedBucketIO.java:164 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/JsonSortedBucketIO.java:164-172 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetAvroSortedBucketIO.java:287-295 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/TensorFlowBucketIO.java:176-184 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 3) scio-examples/src/main/java/org/apache/beam/examples/cookbook/BigQueryTornadoes.java:158 — scio-examples/src/main/java/org/apache/beam/examples/cookbook/BigQueryTornadoes.java:158-166 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/CombinePerKeyExamples.java:192-200 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/MaxPerKeyExamples.java:148-156 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-examples/src/main/java/org/apache/beam/examples/cookbook/BigQueryTornadoes.java:158` 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 (9 lines × 2) · ×3
  • Duplicated block (9 lines × 2) scio-core/src/main/scala/com/spotify/scio/coders/BeamCoders.scala:84 — scio-core/src/main/scala/com/spotify/scio/coders/BeamCoders.scala:84-92 | scio-core/src/main/scala/com/spotify/scio/coders/BeamCoders.scala:109-117 — 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 `scio-core/src/main/scala/com/spotify/scio/coders/BeamCoders.scala:84` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) scio-parquet/src/main/scala/com/spotify/scio/parquet/tensorflow/ParquetExampleIO.scala:55 — scio-parquet/src/main/scala/com/spotify/scio/parquet/tensorflow/ParquetExampleIO.scala:55-63 | scio-parquet/src/main/scala/com/spotify/scio/parquet/types/ParquetTypeIO.scala:56-64 — 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.
  • Duplicated block (9 lines × 2) scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:182 — scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:182-190 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncLookupDoFn.java:184-192 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncLookupDoFn.java:193` calls `getResourceClient` and `scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:191` 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 (8 lines × 2) · ×3
  • Duplicated block (8 lines × 2) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:228 — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:228-235 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:420-427 — 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 `scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:228` 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) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1087 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1087-1094 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:2043-2050 — 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 `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1087` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/JsonSortedBucketIO.java:388 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/JsonSortedBucketIO.java:388-395 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/TensorFlowBucketIO.java:403-410 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/JsonSortedBucketIO.java:388` 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 · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (5 members, 50+ identical tokens) scio-core/src/main/scala/com/spotify/scio/util/ArtisanJoin.scala:48 — scio-core/src/main/scala/com/spotify/scio/util/ArtisanJoin.scala:48-94 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:34-46 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:538-553 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1315-1330 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2092-2107 — These 5 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 5 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 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/BigQueryTornadoes.scala:35 — scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/BigQueryTornadoes.scala:35-74 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/CombinePerKeyExamples.scala:35-72 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/DistinctByKeyExample.scala:34-67 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/MaxPerKeyExamples.scala:34-62 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/StorageBigQueryTornadoes.scala:35-84 — These 5 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 5 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 5 times.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×2
  • Duplicated block (18 lines × 2) scio-avro/src/main/scala/com/spotify/scio/avro/types/SchemaUtil.scala:89 — scio-avro/src/main/scala/com/spotify/scio/avro/types/SchemaUtil.scala:89-106 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/SchemaUtil.scala:76-93 — 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 `scio-avro/src/main/scala/com/spotify/scio/avro/types/SchemaUtil.scala:89` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) scio-examples/src/main/java/org/apache/beam/examples/subprocess/kernel/SubProcessKernel.java:191 — scio-examples/src/main/java/org/apache/beam/examples/subprocess/kernel/SubProcessKernel.java:191-208 | scio-examples/src/main/java/org/apache/beam/examples/subprocess/kernel/SubProcessKernel.java:240-257 — 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 `scio-examples/src/main/java/org/apache/beam/examples/subprocess/kernel/SubProcessKernel.java:191` 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 (15 lines × 2) · ×2
  • Duplicated block (15 lines × 2) scio-parquet/src/main/scala/com/spotify/scio/parquet/avro/dynamic/syntax/SCollectionSyntax.scala:63 — scio-parquet/src/main/scala/com/spotify/scio/parquet/avro/dynamic/syntax/SCollectionSyntax.scala:63-77 | scio-parquet/src/main/scala/com/spotify/scio/parquet/types/dynamic/syntax/SCollectionSyntax.scala:51-65 — 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 `scio-parquet/src/main/scala/com/spotify/scio/parquet/avro/dynamic/syntax/SCollectionSyntax.scala:63` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:204 — scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:204-218 | scio-examples/src/main/java/org/apache/beam/examples/complete/game/LeaderBoard.java:140-154 — 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.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×2
  • Duplicated block (14 lines × 2) scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:153 — scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:153-166 | scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/PairLargeHashSCollectionFunctions.scala:177-190 — before extracting anything, compare `scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala` and `scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/PairLargeHashSCollectionFunctions.scala` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 `scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:153` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:115 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:115-128 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java:121-134 — before extracting anything, compare `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java` and `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java` 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×2
  • Duplicated block (7–8 lines × 2) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/taps.scala:162 — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/taps.scala:162-168 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/taps.scala:177-184 — 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 `scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/taps.scala:162` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7–8 lines × 2) scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:314 — scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:314-321 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:334-340 — 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 `scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:314` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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 × 4) · ×2
  • Duplicated block (7 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:83 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:83-89 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:599-605 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1376-1382 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2153-2159 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (7 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:525 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:525-531 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1279-1285 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2056-2062 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2833-2839 — 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:525` 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 (5 lines × 4) · ×2
  • Duplicated block (5 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:52 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:52-56 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:559-563 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1336-1340 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2113-2117 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:186 — scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:186-190 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncDoFn.java:90-94 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncLookupDoFn.java:188-192 | scio-core/src/main/java/com/spotify/scio/transforms/FileDownloadDoFn.java:106-110 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:186` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncLookupDoFn.java:193` calls `getResourceClient` and `scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:191` 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 (21 lines × 2) · ×2
  • Duplicated block (21 lines × 2) scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/CombinePerKeyExamples.scala:37 — scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/CombinePerKeyExamples.scala:37-57 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/DistinctByKeyExample.scala:36-56 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (21 lines × 2) scio-examples/src/main/scala/com/spotify/scio/examples/extra/MagnolifyTypedStorageBigQueryTornadoes.scala:52 — scio-examples/src/main/scala/com/spotify/scio/examples/extra/MagnolifyTypedStorageBigQueryTornadoes.scala:52-72 | scio-examples/src/main/scala/com/spotify/scio/examples/extra/TypedStorageBigQueryTornadoes.scala:60-80 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-examples/src/main/scala/com/spotify/scio/examples/extra/MagnolifyTypedStorageBigQueryTornadoes.scala:52` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D6 · Cohesion (LCOM4) · Low cohesion · ×2
  • Low cohesion: ScioResult (LCOM4 5) scio-core/src/main/scala/com/spotify/scio/ScioResult.scala:44 — ScioResult's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: SCollectionWithFanout (LCOM4 4) scio-core/src/main/scala/com/spotify/scio/values/SCollectionWithFanout.scala:35 — SCollectionWithFanout's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
IC1 · Incompleteness & stubs · Skeleton type · ×2
  • Skeleton type — most members are unfinished scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:10 — `InputClass` has 5 unfinished members out of 5 declared methods (whether or not each carries a body) — a scaffolded class that was never implemented.
  • Skeleton type — most members are unfinished scalafix/input-0_7/src/main/scala/fix/v0_7_0/FixAvroIO.scala:18 — `OutputClass` has 5 unfinished members out of 5 declared methods (whether or not each carries a body) — a scaffolded class that was never implemented.
D1 · Cyclomatic Complexity · FixAvroCoder.fix (cyclomatic 29) · ×1
  • FixAvroCoder.fix (cyclomatic 29) scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala:191 — FixAvroCoder.fix has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · MultiJoin.apply (cyclomatic 23) · ×1
  • MultiJoin.apply (cyclomatic 23) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1258 — MultiJoin.apply has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.left (cyclomatic 23) · ×1
  • MultiJoin.left (cyclomatic 23) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2035 — MultiJoin.left has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.outer (cyclomatic 23) · ×1
  • MultiJoin.outer (cyclomatic 23) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2812 — MultiJoin.outer has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · TypeProvider.schemaToType (cyclomatic 23) · ×1
  • TypeProvider.schemaToType (cyclomatic 23) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/TypeProvider.scala:254 — TypeProvider.schemaToType has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · MultiJoin.apply (cyclomatic 22) · ×1
  • MultiJoin.apply (cyclomatic 22) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1203 — MultiJoin.apply has cyclomatic complexity 22 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.left (cyclomatic 22) · ×1
  • MultiJoin.left (cyclomatic 22) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1980 — MultiJoin.left has cyclomatic complexity 22 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.outer (cyclomatic 22) · ×1
  • MultiJoin.outer (cyclomatic 22) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2757 — MultiJoin.outer has cyclomatic complexity 22 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · ConverterProvider.fromAvroInternal (cyclomatic 22) · ×1
  • ConverterProvider.fromAvroInternal (cyclomatic 22) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:64 — ConverterProvider.fromAvroInternal has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · MultiJoin.apply (cyclomatic 21) · ×1
  • MultiJoin.apply (cyclomatic 21) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1150 — MultiJoin.apply has cyclomatic complexity 21 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.left (cyclomatic 21) · ×1
  • MultiJoin.left (cyclomatic 21) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1927 — MultiJoin.left has cyclomatic complexity 21 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.outer (cyclomatic 21) · ×1
  • MultiJoin.outer (cyclomatic 21) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2704 — MultiJoin.outer has cyclomatic complexity 21 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · SoccoPhase.typeTokens (cyclomatic 21) · ×1
  • SoccoPhase.typeTokens (cyclomatic 21) socco-plugin/src/main/scala/Socco.scala:224 — SoccoPhase.typeTokens has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · MultiSourceKeyGroupReader.advance (cyclomatic 21) · ×1
  • MultiSourceKeyGroupReader.advance (cyclomatic 21) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java:113 — MultiSourceKeyGroupReader.advance has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MultiJoin.apply (cyclomatic 20) · ×1
  • MultiJoin.apply (cyclomatic 20) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1099 — MultiJoin.apply has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.left (cyclomatic 20) · ×1
  • MultiJoin.left (cyclomatic 20) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1876 — MultiJoin.left has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.outer (cyclomatic 20) · ×1
  • MultiJoin.outer (cyclomatic 20) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2653 — MultiJoin.outer has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · TypeProvider.schemaToType (cyclomatic 19) · ×1
  • TypeProvider.schemaToType (cyclomatic 19) scio-avro/src/main/scala/com/spotify/scio/avro/types/TypeProvider.scala:198 — TypeProvider.schemaToType has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · MultiJoin.apply (cyclomatic 19) · ×1
  • MultiJoin.apply (cyclomatic 19) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1050 — MultiJoin.apply has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.left (cyclomatic 19) · ×1
  • MultiJoin.left (cyclomatic 19) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1827 — MultiJoin.left has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.outer (cyclomatic 19) · ×1
  • MultiJoin.outer (cyclomatic 19) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2604 — MultiJoin.outer has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · StorageUtil.setRawType (cyclomatic 19) · ×1
  • StorageUtil.setRawType (cyclomatic 19) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/StorageUtil.scala:66 — StorageUtil.setRawType has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · MultiJoin.apply (cyclomatic 18) · ×1
  • MultiJoin.apply (cyclomatic 18) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1003 — MultiJoin.apply has cyclomatic complexity 18 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.left (cyclomatic 18) · ×1
  • MultiJoin.left (cyclomatic 18) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1780 — MultiJoin.left has cyclomatic complexity 18 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.outer (cyclomatic 18) · ×1
  • MultiJoin.outer (cyclomatic 18) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2557 — MultiJoin.outer has cyclomatic complexity 18 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.apply (cyclomatic 17) · ×1
  • MultiJoin.apply (cyclomatic 17) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:958 — MultiJoin.apply has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.left (cyclomatic 17) · ×1
  • MultiJoin.left (cyclomatic 17) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1735 — MultiJoin.left has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.outer (cyclomatic 17) · ×1
  • MultiJoin.outer (cyclomatic 17) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2512 — MultiJoin.outer has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.apply (cyclomatic 16) · ×1
  • MultiJoin.apply (cyclomatic 16) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:915 — MultiJoin.apply has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.left (cyclomatic 16) · ×1
  • MultiJoin.left (cyclomatic 16) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1692 — MultiJoin.left has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · MultiJoin.outer (cyclomatic 16) · ×1
  • MultiJoin.outer (cyclomatic 16) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2469 — MultiJoin.outer has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 253) · ×1
  • MultiJoin.apply (cognitive 253) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1258 — MultiJoin.apply has cognitive complexity 253 (threshold 15). Drivers by points: loops 22 (253 pts) (nesting depth added 231). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 253) · ×1
  • MultiJoin.left (cognitive 253) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2035 — MultiJoin.left has cognitive complexity 253 (threshold 15). Drivers by points: loops 22 (253 pts) (nesting depth added 231). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 253) · ×1
  • MultiJoin.outer (cognitive 253) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2812 — MultiJoin.outer has cognitive complexity 253 (threshold 15). Drivers by points: loops 22 (253 pts) (nesting depth added 231). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 231) · ×1
  • MultiJoin.apply (cognitive 231) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1203 — MultiJoin.apply has cognitive complexity 231 (threshold 15). Drivers by points: loops 21 (231 pts) (nesting depth added 210). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 231) · ×1
  • MultiJoin.left (cognitive 231) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1980 — MultiJoin.left has cognitive complexity 231 (threshold 15). Drivers by points: loops 21 (231 pts) (nesting depth added 210). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 231) · ×1
  • MultiJoin.outer (cognitive 231) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2757 — MultiJoin.outer has cognitive complexity 231 (threshold 15). Drivers by points: loops 21 (231 pts) (nesting depth added 210). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 210) · ×1
  • MultiJoin.apply (cognitive 210) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1150 — MultiJoin.apply has cognitive complexity 210 (threshold 15). Drivers by points: loops 20 (210 pts) (nesting depth added 190). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 210) · ×1
  • MultiJoin.left (cognitive 210) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1927 — MultiJoin.left has cognitive complexity 210 (threshold 15). Drivers by points: loops 20 (210 pts) (nesting depth added 190). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 210) · ×1
  • MultiJoin.outer (cognitive 210) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2704 — MultiJoin.outer has cognitive complexity 210 (threshold 15). Drivers by points: loops 20 (210 pts) (nesting depth added 190). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 190) · ×1
  • MultiJoin.apply (cognitive 190) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1099 — MultiJoin.apply has cognitive complexity 190 (threshold 15). Drivers by points: loops 19 (190 pts) (nesting depth added 171). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 190) · ×1
  • MultiJoin.left (cognitive 190) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1876 — MultiJoin.left has cognitive complexity 190 (threshold 15). Drivers by points: loops 19 (190 pts) (nesting depth added 171). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 190) · ×1
  • MultiJoin.outer (cognitive 190) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2653 — MultiJoin.outer has cognitive complexity 190 (threshold 15). Drivers by points: loops 19 (190 pts) (nesting depth added 171). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 171) · ×1
  • MultiJoin.apply (cognitive 171) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1050 — MultiJoin.apply has cognitive complexity 171 (threshold 15). Drivers by points: loops 18 (171 pts) (nesting depth added 153). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 171) · ×1
  • MultiJoin.left (cognitive 171) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1827 — MultiJoin.left has cognitive complexity 171 (threshold 15). Drivers by points: loops 18 (171 pts) (nesting depth added 153). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 171) · ×1
  • MultiJoin.outer (cognitive 171) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2604 — MultiJoin.outer has cognitive complexity 171 (threshold 15). Drivers by points: loops 18 (171 pts) (nesting depth added 153). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 153) · ×1
  • MultiJoin.apply (cognitive 153) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1003 — MultiJoin.apply has cognitive complexity 153 (threshold 15). Drivers by points: loops 17 (153 pts) (nesting depth added 136). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 153) · ×1
  • MultiJoin.left (cognitive 153) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1780 — MultiJoin.left has cognitive complexity 153 (threshold 15). Drivers by points: loops 17 (153 pts) (nesting depth added 136). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 153) · ×1
  • MultiJoin.outer (cognitive 153) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2557 — MultiJoin.outer has cognitive complexity 153 (threshold 15). Drivers by points: loops 17 (153 pts) (nesting depth added 136). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 136) · ×1
  • MultiJoin.apply (cognitive 136) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:958 — MultiJoin.apply has cognitive complexity 136 (threshold 15). Drivers by points: loops 16 (136 pts) (nesting depth added 120). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 136) · ×1
  • MultiJoin.left (cognitive 136) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1735 — MultiJoin.left has cognitive complexity 136 (threshold 15). Drivers by points: loops 16 (136 pts) (nesting depth added 120). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 136) · ×1
  • MultiJoin.outer (cognitive 136) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2512 — MultiJoin.outer has cognitive complexity 136 (threshold 15). Drivers by points: loops 16 (136 pts) (nesting depth added 120). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 120) · ×1
  • MultiJoin.apply (cognitive 120) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:915 — MultiJoin.apply has cognitive complexity 120 (threshold 15). Drivers by points: loops 15 (120 pts) (nesting depth added 105). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 120) · ×1
  • MultiJoin.left (cognitive 120) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1692 — MultiJoin.left has cognitive complexity 120 (threshold 15). Drivers by points: loops 15 (120 pts) (nesting depth added 105). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 120) · ×1
  • MultiJoin.outer (cognitive 120) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2469 — MultiJoin.outer has cognitive complexity 120 (threshold 15). Drivers by points: loops 15 (120 pts) (nesting depth added 105). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 105) · ×1
  • MultiJoin.apply (cognitive 105) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:874 — MultiJoin.apply has cognitive complexity 105 (threshold 15). Drivers by points: loops 14 (105 pts) (nesting depth added 91). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 105) · ×1
  • MultiJoin.left (cognitive 105) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1651 — MultiJoin.left has cognitive complexity 105 (threshold 15). Drivers by points: loops 14 (105 pts) (nesting depth added 91). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 105) · ×1
  • MultiJoin.outer (cognitive 105) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2428 — MultiJoin.outer has cognitive complexity 105 (threshold 15). Drivers by points: loops 14 (105 pts) (nesting depth added 91). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 91) · ×1
  • MultiJoin.apply (cognitive 91) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:835 — MultiJoin.apply has cognitive complexity 91 (threshold 15). Drivers by points: loops 13 (91 pts) (nesting depth added 78). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 91) · ×1
  • MultiJoin.left (cognitive 91) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1612 — MultiJoin.left has cognitive complexity 91 (threshold 15). Drivers by points: loops 13 (91 pts) (nesting depth added 78). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 91) · ×1
  • MultiJoin.outer (cognitive 91) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2389 — MultiJoin.outer has cognitive complexity 91 (threshold 15). Drivers by points: loops 13 (91 pts) (nesting depth added 78). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 78) · ×1
  • MultiJoin.apply (cognitive 78) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:798 — MultiJoin.apply has cognitive complexity 78 (threshold 15). Drivers by points: loops 12 (78 pts) (nesting depth added 66). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 78) · ×1
  • MultiJoin.left (cognitive 78) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1575 — MultiJoin.left has cognitive complexity 78 (threshold 15). Drivers by points: loops 12 (78 pts) (nesting depth added 66). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 78) · ×1
  • MultiJoin.outer (cognitive 78) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2352 — MultiJoin.outer has cognitive complexity 78 (threshold 15). Drivers by points: loops 12 (78 pts) (nesting depth added 66). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 66) · ×1
  • MultiJoin.apply (cognitive 66) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:763 — MultiJoin.apply has cognitive complexity 66 (threshold 15). Drivers by points: loops 11 (66 pts) (nesting depth added 55). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 66) · ×1
  • MultiJoin.left (cognitive 66) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1540 — MultiJoin.left has cognitive complexity 66 (threshold 15). Drivers by points: loops 11 (66 pts) (nesting depth added 55). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 66) · ×1
  • MultiJoin.outer (cognitive 66) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2317 — MultiJoin.outer has cognitive complexity 66 (threshold 15). Drivers by points: loops 11 (66 pts) (nesting depth added 55). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 55) · ×1
  • MultiJoin.apply (cognitive 55) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:730 — MultiJoin.apply has cognitive complexity 55 (threshold 15). Drivers by points: loops 10 (55 pts) (nesting depth added 45). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 55) · ×1
  • MultiJoin.left (cognitive 55) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1507 — MultiJoin.left has cognitive complexity 55 (threshold 15). Drivers by points: loops 10 (55 pts) (nesting depth added 45). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 55) · ×1
  • MultiJoin.outer (cognitive 55) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2284 — MultiJoin.outer has cognitive complexity 55 (threshold 15). Drivers by points: loops 10 (55 pts) (nesting depth added 45). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiSourceKeyGroupReader.advance (cognitive 51) · ×1
  • MultiSourceKeyGroupReader.advance (cognitive 51) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java:113 — MultiSourceKeyGroupReader.advance has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (26 pts), ternaries 2 (12 pts), boolean chains 6, error handling 1 (4 pts), loops 2 (3 pts) (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 45) · ×1
  • MultiJoin.apply (cognitive 45) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:699 — MultiJoin.apply has cognitive complexity 45 (threshold 15). Drivers by points: loops 9 (45 pts) (nesting depth added 36). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 45) · ×1
  • MultiJoin.left (cognitive 45) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1476 — MultiJoin.left has cognitive complexity 45 (threshold 15). Drivers by points: loops 9 (45 pts) (nesting depth added 36). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 45) · ×1
  • MultiJoin.outer (cognitive 45) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2253 — MultiJoin.outer has cognitive complexity 45 (threshold 15). Drivers by points: loops 9 (45 pts) (nesting depth added 36). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 36) · ×1
  • MultiJoin.apply (cognitive 36) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:670 — MultiJoin.apply has cognitive complexity 36 (threshold 15). Drivers by points: loops 8 (36 pts) (nesting depth added 28). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 36) · ×1
  • MultiJoin.left (cognitive 36) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1447 — MultiJoin.left has cognitive complexity 36 (threshold 15). Drivers by points: loops 8 (36 pts) (nesting depth added 28). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 36) · ×1
  • MultiJoin.outer (cognitive 36) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2224 — MultiJoin.outer has cognitive complexity 36 (threshold 15). Drivers by points: loops 8 (36 pts) (nesting depth added 28). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · FixAvroCoder.fix (cognitive 30) · ×1
  • FixAvroCoder.fix (cognitive 30) scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala:191 — FixAvroCoder.fix has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 8 (14 pts), boolean chains 8, if/else 8 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 28) · ×1
  • MultiJoin.apply (cognitive 28) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:643 — MultiJoin.apply has cognitive complexity 28 (threshold 15). Drivers by points: loops 7 (28 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 28) · ×1
  • MultiJoin.left (cognitive 28) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1420 — MultiJoin.left has cognitive complexity 28 (threshold 15). Drivers by points: loops 7 (28 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 28) · ×1
  • MultiJoin.outer (cognitive 28) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2197 — MultiJoin.outer has cognitive complexity 28 (threshold 15). Drivers by points: loops 7 (28 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · ScioContext.parseArguments (cognitive 27) · ×1
  • ScioContext.parseArguments (cognitive 27) scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:325 — ScioContext.parseArguments has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Functions.combineFn (cognitive 22) · ×1
  • Functions.combineFn (cognitive 22) scio-core/src/main/scala/com/spotify/scio/util/Functions.scala:149 — Functions.combineFn has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MultiJoin.apply (cognitive 21) · ×1
  • MultiJoin.apply (cognitive 21) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:618 — MultiJoin.apply has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (21 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.left, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.left (cognitive 21) · ×1
  • MultiJoin.left (cognitive 21) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1395 — MultiJoin.left has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (21 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.outer) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · MultiJoin.outer (cognitive 21) · ×1
  • MultiJoin.outer (cognitive 21) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2172 — MultiJoin.outer has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (21 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (MultiJoin.apply, MultiJoin.left) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cognitive complexity CONCENTRATES: scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala holds 51 of the 60 methods over the threshold — including the worst — and 5202 of the 5282 points over it (98%), 144.5× the next-largest file (scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/MultiSourceKeyGroupReader.java at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · StorageUtil.setRawType (cognitive 18) · ×1
  • StorageUtil.setRawType (cognitive 18) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/StorageUtil.scala:66 — StorageUtil.setRawType has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (12 pts), if/else 6 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · RemoteFileUtil.downloadImpl (cognitive 18) · ×1
  • RemoteFileUtil.downloadImpl (cognitive 18) scio-core/src/main/java/com/spotify/scio/util/RemoteFileUtil.java:164 — RemoteFileUtil.downloadImpl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SortBucketShardDoFn.processElement (cognitive 17) · ×1
  • SortBucketShardDoFn.processElement (cognitive 17) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketSink.java:394 — SortBucketShardDoFn.processElement has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SpecificRecordDatumFactory.addLogicalTypeConversions (cognitive 16) · ×1
  • SpecificRecordDatumFactory.addLogicalTypeConversions (cognitive 16) scio-avro/src/main/scala/com/spotify/scio/avro/AvroDatumFactory.scala:141 — SpecificRecordDatumFactory.addLogicalTypeConversions has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (9 pts), match/switch 2 (5 pts), if/else 2 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · ParquetReadFn.processElement (cognitive 16) · ×1
  • ParquetReadFn.processElement (cognitive 16) scio-parquet/src/main/scala/com/spotify/scio/parquet/read/ParquetReadFn.scala:159 — ParquetReadFn.processElement has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Edited copy of a member (28 corresponding lines) · ×1
  • Edited copy of a member (28 corresponding lines) scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:145 — scio-core/src/main/scala/com/spotify/scio/values/PairHashSCollectionFunctions.scala:145-172 | scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/PairLargeHashSCollectionFunctions.scala:169-196 — 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 · Members sharing a duplicated core (72 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (72 members, 50+ identical tokens) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:79 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:79-94 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:96-112 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:114-131 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:133-151 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:153-172 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:174-194 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:196-217 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:219-241 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:243-266 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:268-292 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:294-319 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:321-347 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:349-376 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:378-406 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:408-437 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:439-469 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:471-502 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:504-536 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:595-616 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:618-641 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:643-668 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:670-697 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:699-728 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:730-761 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:763-796 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:798-833 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:835-872 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:874-913 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:915-956 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:958-1001 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1003-1048 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1050-1097 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1099-1148 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1150-1201 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1203-1256 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1258-1313 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1372-1393 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1395-1418 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1420-1445 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1447-1474 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1476-1505 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1507-1538 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1540-1573 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1575-1610 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1612-1649 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1651-1690 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1692-1733 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1735-1778 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1780-1825 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1827-1874 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1876-1925 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1927-1978 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1980-2033 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2035-2090 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2149-2170 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2172-2195 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2197-2222 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2224-2251 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2253-2282 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2284-2315 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2317-2350 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2352-2387 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2389-2426 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2428-2467 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2469-2510 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2512-2555 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2557-2602 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2604-2651 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2653-2702 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2704-2755 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2757-2810 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2812-2867 — These 72 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 72 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 72 times.
D4 · Code Duplication · Members sharing a duplicated core (32 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (32 members, 50+ identical tokens) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:207 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:207-242 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:248-285 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:291-330 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:336-377 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:383-426 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:432-477 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:483-530 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:536-585 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:591-642 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:648-701 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:707-762 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:768-825 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:831-890 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:896-957 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:963-1026 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1032-1097 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1253-1283 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1289-1321 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1327-1361 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1367-1403 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1409-1447 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1453-1493 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1499-1541 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1547-1591 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1597-1643 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1649-1697 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1703-1753 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1759-1811 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1817-1871 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1877-1933 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1939-1997 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:2003-2063 — These 32 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 32 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 32 times.
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×1
  • Duplicated block (28 lines × 2) scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala:109 — scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala:109-136 | scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroSchemasPackage.scala:79-106 — before extracting anything, compare `scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroCoder.scala` and `scalafix/rules/src/main/scala/fix/v0_14_0/FixAvroSchemasPackage.scala` as WHOLE FILES: this scan already matched 3 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (4–17 lines × 4) · ×1
  • Duplicated block (4–17 lines × 4) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:96 — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:96-103 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:182-198 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:311-314 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:376-392 — 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 `scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:182` 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 (16 lines × 3) · ×1
  • Duplicated block (16 lines × 3) scio-avro/src/main/scala/com/spotify/scio/avro/dynamic/syntax/AvroDynamicSCollectionSyntax.scala:64 — scio-avro/src/main/scala/com/spotify/scio/avro/dynamic/syntax/AvroDynamicSCollectionSyntax.scala:64-80 | scio-avro/src/main/scala/com/spotify/scio/avro/dynamic/syntax/AvroDynamicSCollectionSyntax.scala:113-129 | scio-avro/src/main/scala/com/spotify/scio/avro/dynamic/syntax/AvroDynamicSCollectionSyntax.scala:158-173 — 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 `scio-avro/src/main/scala/com/spotify/scio/avro/dynamic/syntax/AvroDynamicSCollectionSyntax.scala:64` 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–16 lines × 2) · ×1
  • Duplicated block (14–16 lines × 2) scio-avro/src/main/scala/com/spotify/scio/avro/types/ConverterProvider.scala:69 — scio-avro/src/main/scala/com/spotify/scio/avro/types/ConverterProvider.scala:69-82 | scio-avro/src/main/scala/com/spotify/scio/avro/types/ConverterProvider.scala:151-166 — 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 `scio-avro/src/main/scala/com/spotify/scio/avro/types/ConverterProvider.scala:69` 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–11 lines × 19) · ×1
  • Duplicated block (10–11 lines × 19) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:111 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:111-121 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:147-156 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:185-194 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:225-234 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:267-276 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:311-320 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:357-366 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:405-414 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:455-464 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:507-516 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:561-570 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:617-626 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:675-684 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:735-744 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:797-806 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:861-870 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:927-936 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:995-1004 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1065-1074 — all 19 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 `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:111` 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, `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:156` calls `getAll` and `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:121` 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 (10 lines × 26) · ×1
  • Duplicated block (10 lines × 26) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:347 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:347-356 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:394-403 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:443-452 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:494-503 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:547-556 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:602-611 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:659-668 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:718-727 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:779-788 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:842-851 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:907-916 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:974-983 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1043-1052 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1368-1377 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1410-1419 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1454-1463 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1500-1509 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1548-1557 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1598-1607 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1650-1659 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1704-1713 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1760-1769 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1818-1827 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1878-1887 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1940-1949 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:2004-2013 — all 26 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.
D4 · Code Duplication · Duplicated block (10 lines × 16) · ×1
  • Duplicated block (10 lines × 16) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:215 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:215-224 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:256-265 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:299-308 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:344-353 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:391-400 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:440-449 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:491-500 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:544-553 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:599-608 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:656-665 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:715-724 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:776-785 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:839-848 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:904-913 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:971-980 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1040-1049 — all 16 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 `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:215` 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 (10 lines × 6) · ×1
  • Duplicated block (10 lines × 6) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:917 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:917-926 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:984-993 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1053-1062 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1888-1897 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1950-1959 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:2014-2023 — all 6 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.
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×1
  • Duplicated block (10 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:137 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:137-146 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:674-683 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1451-1460 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2228-2237 — 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.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×1
  • Duplicated block (9–10 lines × 2) scio-core/src/main/scala/com/spotify/scio/io/BinaryIO.scala:96 — scio-core/src/main/scala/com/spotify/scio/io/BinaryIO.scala:96-104 | scio-tensorflow/src/main/scala/com/spotify/scio/tensorflow/TFRecordIO.scala:231-240 — 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.
D4 · Code Duplication · Duplicated block (9 lines × 7) · ×1
  • Duplicated block (9 lines × 7) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:917 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:917-925 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:984-992 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1053-1061 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1828-1836 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1888-1896 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1950-1958 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:2014-2022 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×1
  • Duplicated block (9 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:118 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:118-126 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:647-655 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1424-1432 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2201-2209 — 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.
D4 · Code Duplication · Duplicated block (4–9 lines × 4) · ×1
  • Duplicated block (4–9 lines × 4) scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:103 — scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:103-110 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:205-213 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:314-317 | scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:397-405 — 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 `scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/ConverterProvider.scala:103` 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–8 lines × 32) · ×1
  • Duplicated block (7–8 lines × 32) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:231 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:231-238 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:273-279 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:317-323 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:363-369 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:411-417 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:461-467 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:513-519 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:567-573 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:623-629 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:681-687 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:741-747 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:803-809 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:867-873 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:933-939 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1001-1007 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1071-1077 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1262-1269 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1299-1305 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1338-1344 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1379-1385 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1422-1428 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1467-1473 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1514-1520 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1563-1569 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1614-1620 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1667-1673 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1722-1728 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1779-1785 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1838-1844 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1899-1905 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1962-1968 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:2027-2033 — all 32 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 `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:231` 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, `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:279` calls `getAll` and `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:238` 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–8 lines × 17) · ×1
  • Duplicated block (7–8 lines × 17) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1226 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1226-1233 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1261-1267 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1298-1304 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1337-1343 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1378-1384 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1421-1427 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1466-1472 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1513-1519 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1562-1568 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1613-1619 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1666-1672 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1721-1727 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1778-1784 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1837-1843 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1898-1904 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1961-1967 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:2026-2032 — all 17 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 `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1226` 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, `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1267` calls `getAll` and `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1233` 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 (8 lines × 4) · ×1
  • Duplicated block (8 lines × 4) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:100 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:100-107 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:622-629 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1399-1406 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2176-2183 — 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.
D4 · Code Duplication · Duplicated block (6–7 lines × 20) · ×1
  • Duplicated block (6–7 lines × 20) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:520 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:520-526 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:574-579 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:630-635 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:688-693 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:748-753 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:810-815 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:874-879 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:940-945 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1008-1013 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1078-1083 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1521-1527 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1570-1575 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1621-1626 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1674-1679 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1729-1734 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1786-1791 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1845-1850 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1906-1911 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1969-1974 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:2034-2039 — all 20 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note 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, `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:579` calls `getAll` and `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:526` 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 (6–7 lines × 8) · ×1
  • Duplicated block (6–7 lines × 8) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:880 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:880-886 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:946-951 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1014-1019 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1084-1089 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1851-1857 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1912-1917 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1975-1980 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:2040-2045 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note 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, `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:951` calls `getAll` and `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:886` 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 (4–7 lines × 5) · ×1
  • Duplicated block (4–7 lines × 5) scio-core/src/main/scala/com/spotify/scio/util/ArtisanJoin.scala:68 — scio-core/src/main/scala/com/spotify/scio/util/ArtisanJoin.scala:68-71 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:35-38 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:542-548 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1319-1325 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2096-2102 — there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:542` 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, `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:39` calls `of` and `scio-core/src/main/scala/com/spotify/scio/util/ArtisanJoin.scala:71` 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 × 72) · ×1
  • Duplicated block (6 lines × 72) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:83 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:83-88 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:100-105 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:118-123 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:137-142 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:157-162 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:178-183 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:200-205 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:223-228 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:247-252 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:272-277 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:298-303 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:325-330 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:353-358 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:382-387 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:412-417 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:443-448 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:475-480 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:508-513 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:599-604 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:622-627 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:647-652 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:674-679 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:703-708 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:734-739 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:767-772 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:802-807 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:839-844 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:878-883 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:919-924 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:962-967 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1007-1012 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1054-1059 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1103-1108 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1154-1159 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1207-1212 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1262-1267 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1376-1381 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1399-1404 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1424-1429 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1451-1456 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1480-1485 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1511-1516 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1544-1549 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1579-1584 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1616-1621 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1655-1660 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1696-1701 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1739-1744 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1784-1789 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1831-1836 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1880-1885 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1931-1936 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1984-1989 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2039-2044 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2153-2158 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2176-2181 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2201-2206 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2228-2233 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2257-2262 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2288-2293 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2321-2326 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2356-2361 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2393-2398 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2432-2437 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2473-2478 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2516-2521 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2561-2566 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2608-2613 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2657-2662 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2708-2713 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2761-2766 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2816-2821 — all 72 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.
D4 · Code Duplication · Duplicated block (6 lines × 48) · ×1
  • Duplicated block (6 lines × 48) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:206 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:206-211 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:229-234 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:253-258 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:278-283 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:304-309 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:331-336 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:359-364 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:388-393 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:418-423 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:449-454 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:481-486 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:514-519 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:773-778 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:808-813 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:845-850 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:884-889 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:925-930 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:968-973 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1013-1018 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1060-1065 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1109-1114 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1160-1165 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1213-1218 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1268-1273 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1550-1555 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1585-1590 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1622-1627 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1661-1666 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1702-1707 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1745-1750 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1790-1795 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1837-1842 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1886-1891 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1937-1942 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1990-1995 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2045-2050 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2327-2332 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2362-2367 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2399-2404 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2438-2443 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2479-2484 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2522-2527 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2567-2572 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2614-2619 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2663-2668 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2714-2719 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2767-2772 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2822-2827 — all 48 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:206` 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 (6 lines × 24) · ×1
  • Duplicated block (6 lines × 24) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:365 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:365-370 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:394-399 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:424-429 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:455-460 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:487-492 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:520-525 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1019-1024 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1066-1071 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1115-1120 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1166-1171 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1219-1224 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1274-1279 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1796-1801 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1843-1848 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1892-1897 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1943-1948 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1996-2001 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2051-2056 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2573-2578 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2620-2625 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2669-2674 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2720-2725 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2773-2778 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:2828-2833 — all 24 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 `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:365` 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 (5 lines × 16) · ×1
  • Duplicated block (5 lines × 16) scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1274 — scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1274-1278 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1312-1316 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1352-1356 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1394-1398 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1438-1442 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1484-1488 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1532-1536 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1582-1586 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1634-1638 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1688-1692 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1744-1748 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1802-1806 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1862-1866 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1924-1928 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1988-1992 | scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:2054-2058 — all 16 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 `scio-smb/src/main/scala/com/spotify/scio/smb/util/SMBMultiJoin.scala:1274` 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 (26 lines × 2) · ×1
  • Duplicated block (26 lines × 2) scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixJoinNames.scala:29 — scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixJoinNames.scala:29-54 | scalafix/output-0_8/src/main/scala/fix/v0_8_0/FixJoinNames.scala:26-51 — 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.
D4 · Code Duplication · Duplicated block (5 lines × 18) · ×1
  • Duplicated block (5 lines × 18) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:609 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:609-613 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:634-638 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:661-665 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:690-694 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:721-725 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:754-758 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:789-793 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:826-830 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:865-869 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:906-910 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:949-953 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:994-998 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1041-1045 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1090-1094 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1141-1145 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1194-1198 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1249-1253 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1306-1310 — all 18 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:633` calls `getAll` and `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:608` 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 (5 lines × 13) · ×1
  • Duplicated block (5 lines × 13) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:749 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:749-753 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:784-788 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:821-825 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:860-864 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:901-905 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:944-948 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:989-993 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1036-1040 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1085-1089 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1136-1140 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1189-1193 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1244-1248 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1301-1305 — all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:783` calls `getAll` and `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:748` 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 (5 lines × 8) · ×1
  • Duplicated block (5 lines × 8) scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:939 — scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:939-943 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:984-988 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1031-1035 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1080-1084 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1131-1135 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1184-1188 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1239-1243 | scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:1296-1300 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:983` calls `getAll` and `scio-core/src/main/scala/com/spotify/scio/util/MultiJoin.scala:938` 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 (17–21 lines × 2) · ×1
  • Duplicated block (17–21 lines × 2) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketSource.java:207 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketSource.java:207-223 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketTransform.java:350-370 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketSource.java:207` 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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 (20 lines × 2) · ×1
  • Duplicated block (20 lines × 2) scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java:38 — scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java:38-57 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetUtils.java:35-54 — before extracting anything, compare `scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java` and `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetUtils.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java:60` calls `withExtraMetaData` and `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetUtils.java:56` 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 (17 lines × 2) · ×1
  • Duplicated block (17 lines × 2) scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java:63 — scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java:63-79 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetUtils.java:56-72 — before extracting anything, compare `scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java` and `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetUtils.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetUtils.java:73` calls `withRowGroupSize` and `scio-parquet/src/main/java/com/spotify/scio/parquet/WriterUtils.java:80` 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 (13–14 lines × 2) · ×1
  • Duplicated block (13–14 lines × 2) scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncDoFn.java:65 — scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncDoFn.java:65-77 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncLookupDoFn.java:230-243 — 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.
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×1
  • Duplicated block (13 lines × 3) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:115 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:115-127 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/JsonBucketMetadata.java:107-119 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java:121-133 — before extracting anything, compare `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java` and `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java` 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (3–11 lines × 3) · ×1
  • Duplicated block (3–11 lines × 3) scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java:389 — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java:389-399 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java:437-447 | scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketPrimaryAndSecondaryKeyedSource.java:93-95 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java:389` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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, `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketPrimaryAndSecondaryKeyedSource.java:92` calls `stream`, `flatMap`, `getSourceMetadata` and `scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java:389` 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 (8 lines × 3) · ×1
  • Duplicated block (8 lines × 3) scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:241 — scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:241-248 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncDoFn.java:68-75 | scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncLookupDoFn.java:234-241 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-core/src/main/java/com/spotify/scio/transforms/BaseAsyncBatchLookupDoFn.java:241` 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 (29 lines × 2) · ×1
  • Duplicated block (29 lines × 2) scio-core/src/main/java/com/spotify/scio/transforms/GuavaAsyncBatchLookupDoFn.java:50 — scio-core/src/main/java/com/spotify/scio/transforms/GuavaAsyncBatchLookupDoFn.java:50-78 | scio-core/src/main/java/com/spotify/scio/transforms/JavaAsyncBatchLookupDoFn.java:50-78 — before extracting anything, compare `scio-core/src/main/java/com/spotify/scio/transforms/GuavaAsyncBatchLookupDoFn.java` and `scio-core/src/main/java/com/spotify/scio/transforms/JavaAsyncBatchLookupDoFn.java` as WHOLE FILES: 89% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `scio-core/src/main/java/com/spotify/scio/transforms/GuavaAsyncBatchLookupDoFn.java:50` 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (51 lines × 2) · ×1
  • Duplicated block (51 lines × 2) scio-core/src/main/java/com/spotify/scio/transforms/GuavaAsyncLookupDoFn.java:36 — scio-core/src/main/java/com/spotify/scio/transforms/GuavaAsyncLookupDoFn.java:36-86 | scio-core/src/main/java/com/spotify/scio/transforms/JavaAsyncLookupDoFn.java:36-86 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×1
  • Edited copy of a member (20 corresponding lines) scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:199 — scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:199-220 | scio-examples/src/main/java/org/apache/beam/examples/complete/game/LeaderBoard.java:134-160 — These two members are one piece of code written twice and then edited apart: 20 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 (19 lines × 2) · ×1
  • Duplicated block (19 lines × 2) scio-examples/src/main/scala/com/spotify/scio/examples/extra/MagnolifyTypedBigQueryTornadoes.scala:47 — scio-examples/src/main/scala/com/spotify/scio/examples/extra/MagnolifyTypedBigQueryTornadoes.scala:47-65 | scio-examples/src/main/scala/com/spotify/scio/examples/extra/TypedBigQueryTornadoes.scala:55-73 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-examples/src/main/scala/com/spotify/scio/examples/extra/MagnolifyTypedBigQueryTornadoes.scala:47` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×1
  • Duplicated block (12 lines × 3) scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/BigQueryTornadoes.scala:37 — scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/BigQueryTornadoes.scala:37-48 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/MaxPerKeyExamples.scala:36-47 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/StorageBigQueryTornadoes.scala:37-48 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×1
  • Duplicated block (11 lines × 3) scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/JoinExamples.scala:60 — scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/JoinExamples.scala:60-70 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/JoinExamples.scala:124-134 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/JoinExamples.scala:152-163 — 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.
D4 · Code Duplication · Duplicated block (6 lines × 5) · ×1
  • Duplicated block (6 lines × 5) scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/BigQueryTornadoes.scala:40 — scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/BigQueryTornadoes.scala:40-45 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/CombinePerKeyExamples.scala:42-47 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/DistinctByKeyExample.scala:41-46 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/MaxPerKeyExamples.scala:39-44 | scio-examples/src/main/scala/com/spotify/scio/examples/cookbook/StorageBigQueryTornadoes.scala:40-45 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (13–18 lines × 2) · ×1
  • Duplicated block (13–18 lines × 2) scio-examples/src/main/java/org/apache/beam/examples/snippets/Snippets.java:340 — scio-examples/src/main/java/org/apache/beam/examples/snippets/Snippets.java:340-357 | scio-examples/src/main/java/org/apache/beam/examples/snippets/Snippets.java:377-389 — 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 `scio-examples/src/main/java/org/apache/beam/examples/snippets/Snippets.java:340` 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 (13–15 lines × 2) · ×1
  • Duplicated block (13–15 lines × 2) scio-examples/src/main/java/org/apache/beam/examples/BeamSqlExample.java:81 — scio-examples/src/main/java/org/apache/beam/examples/BeamSqlExample.java:81-93 | scio-examples/src/main/java/org/apache/beam/examples/BeamSqlExample.java:99-113 — 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 `scio-examples/src/main/java/org/apache/beam/examples/BeamSqlExample.java:99` 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–15 lines × 2) · ×1
  • Duplicated block (14–15 lines × 2) scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:245 — scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:245-258 | scio-examples/src/main/java/org/apache/beam/examples/complete/game/LeaderBoard.java:195-209 — 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.
D4 · Code Duplication · Duplicated block (9–11 lines × 3) · ×1
  • Duplicated block (9–11 lines × 3) scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:207 — scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:207-217 | scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:230-238 | scio-examples/src/main/java/org/apache/beam/examples/complete/game/LeaderBoard.java:143-153 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:207` 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.
D4 · Code Duplication · Duplicated block (9–10 lines × 3) · ×1
  • Duplicated block (9–10 lines × 3) scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:201 — scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:201-210 | scio-examples/src/main/java/org/apache/beam/examples/complete/game/LeaderBoard.java:137-146 | scio-examples/src/main/java/org/apache/beam/examples/complete/game/StatefulTeamScore.java:98-106 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `scio-examples/src/main/java/org/apache/beam/examples/complete/game/GameStats.java:201` 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.
D4 · Code Duplication · Duplicated block (2–5 lines × 6) · ×1
  • Duplicated block (2–5 lines × 6) scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficMaxLaneFlow.java:278 — scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficMaxLaneFlow.java:278-279 | scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficMaxLaneFlow.java:285-289 | scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficRoutes.java:281-285 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/FilterExamples.java:232-236 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/TriggerExample.java:536-537 | scio-examples/src/main/java/org/apache/beam/examples/cookbook/TriggerExample.java:543-547 — there are 6 copies across 4 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficMaxLaneFlow.java:285` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. 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, `scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficRoutes.java:279` calls `add`, `TableFieldSchema`, `setName` and `scio-examples/src/main/java/org/apache/beam/examples/complete/TrafficMaxLaneFlow.java:276` 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.
IC1 · Incompleteness & stubs · Empty method body · ×1
  • Empty method body — does nothing with its inputs scalafix/input-0_8/src/main/scala/fix/v0_8_0/FixSyntaxImports.scala:15 — `apply` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
P12 · CI test-gate honesty · Coverage collected but not gated · ×1
  • Coverage collected but not gated — CI collects a coverage report but no step enforces a minimum — coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool's minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository's CI files AND its coverage configuration — the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited — matched against the threshold settings this check knows by name. A floor set in your coverage service's web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here.
X15 · Unvalidated length from an untrusted reader · Length read from the parsed input is spent without ever being bounded · ×1
  • Length read from the parsed input is spent without ever being bounded scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/TFRecordCodec.java:82 — `length` is read from the bytes being parsed at line 72 (`getLong`), then used to size a `ByteBuffer.allocate` at line 82 — and nowhere in its scope is `length` bounded from above — compared to a limit, clamped, or checked against the input that remains (a zero or sign test, or the loop that counts up to it, bounds nothing). Whoever wrote those bytes therefore chooses the allocation directly: a 64-bit length reaches the allocation through a cast that keeps only its low 32 bits, so it asks for up to 2 GiB before a single byte of the payload is known to exist, which either exhausts the heap with an `OutOfMemoryError` or, negative, throws `NegativeArraySizeException` out of a parser whose failure path was written for malformed input, not for hostile input. Bound `length` against the bytes actually remaining and a maximum the format allows before allocating.
Minor — 63 finding(s)
X4 · Structured logging · Interpolated log message defeats structured logging · ×40
  • Interpolated log message defeats structured logging scio-repl/src/main/scala/com/spotify/scio/repl/IoCommands.scala:100 — `info` at line 100 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-repl/src/main/scala/com/spotify/scio/repl/IoCommands.scala:111 — `info` at line 111 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-repl/src/main/scala/com/spotify/scio/repl/IoCommands.scala:125 — `info` at line 125 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-jdbc/src/main/scala/com/spotify/scio/jdbc/sharded/JdbcShardedSource.scala:137 — `info` at line 137 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-jdbc/src/main/scala/com/spotify/scio/jdbc/sharded/Shard.scala:159 — `info` at line 159 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/types/TypeProvider.scala:576 — `debug` at line 576 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/ExtractOps.scala:143 — `info` at line 143 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:45 — `info` at line 45 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:52 — `info` at line 52 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:64 — `info` at line 64 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:67 — `info` at line 67 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:73 — `info` at line 73 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:111 — `warn` at line 111 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/JobOps.scala:118 — `info` at line 118 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/LoadOps.scala:171 — `info` at line 171 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:69 — `info` at line 69 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:80 — `info` at line 80 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:157 — `info` at line 157 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:158 — `info` at line 158 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:162 — `info` at line 162 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:167 — `info` at line 167 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:183 — `info` at line 183 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:184 — `info` at line 184 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:262 — `info` at line 262 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • Interpolated log message defeats structured logging scio-google-cloud-platform/src/main/scala/com/spotify/scio/bigquery/client/QueryOps.scala:264 — `info` at line 264 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"…"` message apart into that pattern at compile time, so switching to it is also a fix.
  • + 15 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×6
  • Duplicated predicate scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:124 — `(keyClassSecondary != null && keyFieldSecondary != null) || (keyClassSecondary == null && keyFieldSecondary == null)` appears character-identically in 3 files — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java, scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/JsonBucketMetadata.java, scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java:457 — `sm.metadata.getKeyClassSecondary() != null && sm.metadata.keyClassSecondaryMatches(keyClassSecondary) && sm.metadata.getKeyCoderSecondary() …` appears character-identically in 2 files — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketIO.java, scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/SortedBucketPrimaryAndSecondaryKeyedSource.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:198 — `super.keyClassMatches(requestedReadType) || AvroUtils.castToComparableStringClass(getKeyClass()) == requestedReadType || AvroUtils.castToCom…` appears character-identically in 2 files — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java, scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java:205 — `super.keyClassSecondaryMatches(requestedReadType) || AvroUtils.castToComparableStringClass(getKeyClassSecondary()) == requestedReadType || A…` appears character-identically in 2 files — scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/AvroBucketMetadata.java, scio-smb/src/main/java/org/apache/beam/sdk/extensions/smb/ParquetBucketMetadata.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate scio-core/src/main/scala/com/spotify/scio/coders/instances/JodaCoders.scala:46 — `chronology != null && chronology != ISOChronology.getInstanceUTC` appears character-identically in 2 files — scio-core/src/main/scala/com/spotify/scio/coders/instances/JodaCoders.scala, scio-core/src/main/scala/com/spotify/scio/coders/instances/kryo/JodaSerializer.scala. 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 scio-avro/src/main/scala/com/spotify/scio/avro/types/SchemaUtil.scala:60 — `unionTypes.size != 2 || !unionTypes.contains(NULL)` appears character-identically in 2 files — scio-avro/src/main/scala/com/spotify/scio/avro/types/SchemaUtil.scala, scio-avro/src/main/scala/com/spotify/scio/avro/types/TypeProvider.scala. 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.
X23 · Unguarded diagnostic materialisation · Diagnostic log message is built whether or not it is wanted · ×4
  • Diagnostic log message is built whether or not it is wanted scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:135 — `debug` at line 135 is called with an argument built by `finalLocalArtifacts.mkString("…")` (line 135), whose cost grows with the collection it walks. Scala evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: the logger takes a built `String` (SLF4J, Akka/Pekko `LoggingAdapter`, `context.log`), and there is no `isDebugEnabled`/`isTraceEnabled` test and no debug flag.
  • Diagnostic log message is built whether or not it is wanted scio-core/src/main/scala/com/spotify/scio/ScioContext.scala:160 — `debug` at line 160 is called with an argument built by `classPathJars.mkString("…")` (line 160), whose cost grows with the collection it walks. Scala evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: the logger takes a built `String` (SLF4J, Akka/Pekko `LoggingAdapter`, `context.log`), and there is no `isDebugEnabled`/`isTraceEnabled` test and no debug flag.
  • Diagnostic log message is built whether or not it is wanted scio-core/src/main/scala/com/spotify/scio/util/AvroClassTrust.scala:141 — `debug` at line 141 is called with an argument built by `added.mkString("…")` (line 141), whose cost grows with the collection it walks. Scala evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: the logger takes a built `String` (SLF4J, Akka/Pekko `LoggingAdapter`, `context.log`), and there is no `isDebugEnabled`/`isTraceEnabled` test and no debug flag.
  • Diagnostic log message is built whether or not it is wanted scio-core/src/main/scala/com/spotify/scio/coders/KryoAtomicCoder.scala:53 — `debug` at line 53 is called with an argument built by `registrars.mkString("…")` (line 53), whose cost grows with the collection it walks. Scala evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: the logger takes a built `String` (SLF4J, Akka/Pekko `LoggingAdapter`, `context.log`), and there is no `isDebugEnabled`/`isTraceEnabled` test and no debug flag.
AX6 · Interface segregation · Fat interface · ×2
  • Fat interface: SinkOptions (16 abstract methods) integration/src/test/java/org/apache/beam/sdk/extensions/smb/benchmark/SinkBenchmark.java:52 — `SinkOptions` declares 16 abstract methods: `getAvroDestination`, `getAvroNumBuckets`, `getAvroNumShards`, `getJsonDestination`, `getJsonNumBuckets`, `getJsonNumShards`, `getMaxRecordsPerKey`, `getNumKeys`, `setAvroDestination`, `setAvroNumBuckets`, `setAvroNumShards`, `setJsonDestination`, `setJsonNumBuckets`, `setJsonNumShards`, `setMaxRecordsPerKey`, `setNumKeys`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: ScioOptions (20 abstract methods) scio-core/src/main/java/com/spotify/scio/options/ScioOptions.java:27 — `ScioOptions` declares 20 abstract methods: `getAppArguments`, `getBlockFor`, `getChainedCogroups`, `getMetricsLocation`, `getNullableCoders`, `getOptionsFile`, `getScalaVersion`, `getScioVersion`, `getZstdDictionary`, `isBlocking`, `setAppArguments`, `setBlockFor`, `setBlocking`, `setChainedCogroups`, `setMetricsLocation`, `setNullableCoders`, `setOptionsFile`, `setScalaVersion`, `setScioVersion`, `setZstdDictionary`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
D16 · Bus Factor · Off-boarding risk · ×2
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 3 significant file(s) lose their only recent owner: scio-core/src/main/scala/com/spotify/scio/values/PairSCollectionFunctions.scala, scio-avro/src/main/scala/com/spotify/scio/avro/AvroDatumFactory.scala, scio-core/src/main/scala/com/spotify/scio/SysProps.scala. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 3 significant file(s) lose their only recent owner: scio-parquet/src/main/scala/com/spotify/scio/parquet/types/ParquetTypeIO.scala, scio-core/src/main/scala/com/spotify/scio/io/Taps.scala, scio-avro/src/main/scala/com/spotify/scio/avro/types/SchemaProvider.scala. Pair on, review, or document these before any departure.
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (7 single-owned of 381 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 381 of the 775 production source files in this repository met that bar). They are anonymized user #3 (1 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: scio-extra/src/main/scala/com/spotify/scio/extra/sparkey/SparkeyUri.scala.
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion — 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is `(repository root)` (81705 LoC, 1434 module-visible types across 179 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D30 · Dependency Vulnerabilities · Low CVE · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
M2 · Architecture documentation · No architecture diagram/doc · ×1
  • No architecture diagram/doc — No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 1/2 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `scalafix`.
PF1 · Benchmark discipline · Benchmarks don't track allocations · ×1
  • Benchmarks don't track allocations scio-jmh/src/test/scala/com/spotify/scio/jmh/BigQueryTypeBenchmark.scala — A JMH/Jetpack Benchmark suite exists but nothing turns on its allocation measurement — allocations (the main way hot code pressures a garbage collector or allocator) aren't being measured.
X5 · Nullable reference types · Scala's null is not held to the type system everywhere · ×1
  • Scala's null is not held to the type system everywhere — No build over this repository's 530 Scala product file(s) passes `-Yexplicit-nulls`, enables WartRemover's `Null` wart or runs Scalafix's `DisableSyntax.noNulls`, so every reference type admits null and nothing reports a `null` written into the code or returned from a Java API — the first one to reach a method call is a `NullPointerException`. `Option` by convention is a habit no tool here holds the code to.
Minor — 58 finding(s)
D12 · Dependency Hygiene · Outdated · ×58
  • Outdated: co.elastic.clients:elasticsearch-java — `co.elastic.clients %% elasticsearch-java` is declared at 7.17.21 in REDACTED, but 9.5.5 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 7.17.21 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.datastax.cassandra:cassandra-driver-core — `com.datastax.cassandra %% cassandra-driver-core` is declared at 3.11.5 in REDACTED, but 4.0.0 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 3.11.5 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.fasterxml.jackson:jackson-bom — `com.fasterxml.jackson %% jackson-bom` is declared at 2.18.8 in REDACTED, but 2.22.4 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 2.18.8 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.fasterxml.jackson.core:jackson-annotations — `com.fasterxml.jackson.core %% jackson-annotations` is declared at 2.18.8 in REDACTED, but 2.22 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 2.18.8 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.fasterxml.jackson.core:jackson-core — `com.fasterxml.jackson.core %% jackson-core` is declared at 2.18.8 in REDACTED, but 2.22.4 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 2.18.8 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.fasterxml.jackson.core:jackson-databind — `com.fasterxml.jackson.core %% jackson-databind` is declared at 2.18.8 in REDACTED, but 2.22.4 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 2.18.8 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.fasterxml.jackson.datatype:jackson-datatype-joda — `com.fasterxml.jackson.datatype %% jackson-datatype-joda` is declared at 2.18.8 in REDACTED, but 2.22.4 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 2.18.8 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.fasterxml.jackson.datatype:jackson-datatype-jsr310 — `com.fasterxml.jackson.datatype %% jackson-datatype-jsr310` is declared at 2.18.8 in REDACTED, but 2.22.4 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 2.18.8 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.github.luben:zstd-jni — `com.github.luben %% zstd-jni` is declared at 1.5.6-3 in REDACTED, but 1.5.7-1 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 1.5.6-3 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.api-client:google-api-client — `com.google.api-client %% google-api-client` is declared at 2.7.2 in REDACTED, but 2.9.2 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 2.7.2 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.auto.service:auto-service — `com.google.auto.service %% auto-service` is declared at 1.0.1 in REDACTED, but 1.1.1 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 1.0.1 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.auto.service:auto-service-annotations — `com.google.auto.service %% auto-service-annotations` is declared at 1.0.1 in REDACTED, but 1.1.1 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 1.0.1 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.auto.value:auto-value — `com.google.auto.value %% auto-value` is declared at 1.9 in REDACTED, but 1.11.1 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 1.9 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.auto.value:auto-value-annotations — `com.google.auto.value %% auto-value-annotations` is declared at 1.9 in REDACTED, but 1.11.1 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 1.9 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.cloud:libraries-bom — `com.google.cloud %% libraries-bom` is declared at 26.87.0 in REDACTED, but 26.90.0 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 26.87.0 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.cloud.bigdataoss:gcs-connector — `com.google.cloud.bigdataoss %% gcs-connector` is declared at 3.1.16 in REDACTED, but 4.0.6 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 3.1.16 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.cloud.bigdataoss:gcsio — `com.google.cloud.bigdataoss %% gcsio` is declared at 3.1.16 in REDACTED, but 4.0.6 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 3.1.16 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.cloud.bigdataoss:util — `com.google.cloud.bigdataoss %% util` is declared at 3.1.16 in REDACTED, but 4.0.6 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 3.1.16 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.cloud.bigdataoss:util-hadoop — `com.google.cloud.bigdataoss %% util-hadoop` is declared at 3.1.16 in REDACTED, but 4.0.6 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 3.1.16 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.cloud.bigtable:bigtable-client-core — `com.google.cloud.bigtable %% bigtable-client-core` is declared at 1.28.0 in REDACTED, but 1.29.2 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 1.28.0 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.cloud.bigtable:bigtable-client-core-config — `com.google.cloud.bigtable %% bigtable-client-core-config` is declared at 1.28.0 in REDACTED, but 1.29.2 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 1.28.0 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.cloud.sql:cloud-sql-connector-jdbc-sqlserver — `com.google.cloud.sql %% cloud-sql-connector-jdbc-sqlserver` is declared at 1.28.6 in REDACTED, but 1.30.2 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 1.28.6 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.cloud.sql:mysql-socket-factory-connector-j-8 — `com.google.cloud.sql %% mysql-socket-factory-connector-j-8` is declared at 1.28.6 in REDACTED, but 1.30.2 is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 1.28.6 until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.guava:guava — `com.google.guava %% guava` is declared at 33.1.0-jre in REDACTED, but 33.7.2-android is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 33.1.0-jre until the declaration is edited — there is no lockfile refresh that would move it.
  • Outdated: com.google.guava:guava-bom — `com.google.guava %% guava-bom` is declared at 33.1.0-jre in REDACTED, but 33.7.2-android is the current release on Maven Central. An sbt declaration names an exact version, so this repository builds against 33.1.0-jre until the declaration is edited — there is no lockfile refresh that would move it.
  • + 33 more in this group — see findings.md.

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/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-dd683758a9644005a74d9decb7389d49/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-dd683758a9644005a74d9decb7389d49/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/watchdog-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 .71artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . /tmp/codehealth-osv-sbom-5c99174c6c504d7ea13b28e82b326f435artifacts/raw/osv-scanner.json
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .0artifacts/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.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 Dependenciesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . /tmp/codehealth-osv-sbom-5c99174c6c504d7ea13b28e82b326f430artifacts/raw/osv-scanner.json

Run 01a176fe-6c5e-7267-a3e0-2f2513d83144 · 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