Executive summary
fthomas/refined falls short of our standard for a preview release, held back most by its Production Readiness lens, the way the code is tested, built, released and run. It scores 59 out of 100 and is rated Adequate, and all 13 of its critical findings are security problems in the build pipeline.
Production Readiness, at 51, is the weakest lens and counts most in the score. The best first step is adding automated security scanning, worth about 6 points. Recording design decisions comes next, worth about 3 points. Raising Production Readiness to 62 would lift the score to about 64.
Eleven pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. One secret can leak from the build pipeline. Pinning each tool to an exact version and limiting the secret to its own step would close both risks. Correcting the flagged pipeline settings would fix the weakness in the build pipeline's configuration.
The product code is 5,583 lines, about €9,400 to rebuild.
If Production Readiness rose from 51 to 62, the lowest score rated Strong, the score would rise from 59 to about 64.
New since the last survey: 2 findings
- Code Duplication · Edited copy of a member (17 corresponding lines) modules/cats/shared/src/main/scala/eu/timepit/refined/cats/unorderedFoldable.scala
- Code Duplication · Edited copy of a member (8 corresponding lines) modules/cats/shared/src/main/scala/eu/timepit/refined/cats/package.scala
Fixed since the last survey: 1 finding
- Code Duplication · Duplicated block (6 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala
Rebuild cost: about €9,400 · Estimate
| Cost to rebuild | €3,100 to €16,000, for 52 to 166 hours of work, under 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.8 at a score of 59. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Small: 5,583 lines of product code |
| What it is not | Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one. |
Top priorities
Diagnosis: what the measurements show together
Architecture — module dependency graph
Architecture: which parts of the code depend on which
| uses → | 1 refined.boolean | 2 refined.cats.CatsRefinedTypeOpsSyntax | 3 refined.char | 4 refined.collection | 5 refined.eval | 6 refined.generic | 7 refined.jsonpath | 8 refined.jsonpath.string | 9 refined.macros.LiteralMatchers | 10 refined.numeric | 11 refined.predicates | 12 refined.scalacheck.util | 13 refined.scalaz.ScalazRefinedTypeOpsSyntax | 14 refined.string | 15 refined.types | 16 refined.internal | 17 refined.scodec | 18 refined.api | 19 eu.timepit | 20 refined.api.RefType | 21 refined.api.RefinedTypeOps | 22 refined.cats | 23 refined.macros | 24 refined.pureconfig | 25 refined.scalacheck | 26 refined.scalaz | 27 refined.shapeless | 28 refined.types.char | 29 refined.types.digests | 30 refined.types.net | 31 refined.types.numeric | 32 refined.types.string | 33 refined.types.time | 34 refined.util | 35 refined | 36 refined.cats.CatsNonEmptyListSyntax | 37 refined.cats.CatsNonEmptyVectorSyntax | 38 refined.types.string.FiniteString | 39 refined.types.string.NonEmptyFiniteString |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 refined.boolean | |||||||||||||||||||||||||||||||||||||||
| 2 refined.cats.CatsRefinedTypeOpsSyntax | |||||||||||||||||||||||||||||||||||||||
| 3 refined.char | |||||||||||||||||||||||||||||||||||||||
| 4 refined.collection | |||||||||||||||||||||||||||||||||||||||
| 5 refined.eval | |||||||||||||||||||||||||||||||||||||||
| 6 refined.generic | |||||||||||||||||||||||||||||||||||||||
| 7 refined.jsonpath | |||||||||||||||||||||||||||||||||||||||
| 8 refined.jsonpath.string | |||||||||||||||||||||||||||||||||||||||
| 9 refined.macros.LiteralMatchers | |||||||||||||||||||||||||||||||||||||||
| 10 refined.numeric | |||||||||||||||||||||||||||||||||||||||
| 11 refined.predicates | |||||||||||||||||||||||||||||||||||||||
| 12 refined.scalacheck.util | |||||||||||||||||||||||||||||||||||||||
| 13 refined.scalaz.ScalazRefinedTypeOpsSyntax | |||||||||||||||||||||||||||||||||||||||
| 14 refined.string | |||||||||||||||||||||||||||||||||||||||
| 15 refined.types | |||||||||||||||||||||||||||||||||||||||
| 16 refined.internal | 4 | ||||||||||||||||||||||||||||||||||||||
| 17 refined.scodec | 1 | ||||||||||||||||||||||||||||||||||||||
| 18 refined.api | 2 | 4 | 7 | ||||||||||||||||||||||||||||||||||||
| 19 eu.timepit | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 20 refined.api.RefType | 1 | ||||||||||||||||||||||||||||||||||||||
| 21 refined.api.RefinedTypeOps | 1 | ||||||||||||||||||||||||||||||||||||||
| 22 refined.cats | 1 | 2 | |||||||||||||||||||||||||||||||||||||
| 23 refined.macros | 4 | ||||||||||||||||||||||||||||||||||||||
| 24 refined.pureconfig | 2 | ||||||||||||||||||||||||||||||||||||||
| 25 refined.scalacheck | 1 | 5 | 2 | 1 | 3 | 12 | 2 | 14 | |||||||||||||||||||||||||||||||
| 26 refined.scalaz | 2 | ||||||||||||||||||||||||||||||||||||||
| 27 refined.shapeless | 2 | ||||||||||||||||||||||||||||||||||||||
| 28 refined.types.char | 2 | ||||||||||||||||||||||||||||||||||||||
| 29 refined.types.digests | 6 | ||||||||||||||||||||||||||||||||||||||
| 30 refined.types.net | 5 | ||||||||||||||||||||||||||||||||||||||
| 31 refined.types.numeric | 10 | ||||||||||||||||||||||||||||||||||||||
| 32 refined.types.string | 3 | ||||||||||||||||||||||||||||||||||||||
| 33 refined.types.time | 6 | ||||||||||||||||||||||||||||||||||||||
| 34 refined.util | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 35 refined | 3 | 14 | 23 | ||||||||||||||||||||||||||||||||||||
| 36 refined.cats.CatsNonEmptyListSyntax | 1 | ||||||||||||||||||||||||||||||||||||||
| 37 refined.cats.CatsNonEmptyVectorSyntax | 1 | ||||||||||||||||||||||||||||||||||||||
| 38 refined.types.string.FiniteString | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 39 refined.types.string.NonEmptyFiniteString | 1 | 2 |
16→18 refined.internal uses refined.api part of a loop✕
- Connections
- 4 pairs of types, where a type in refined.internal uses a type in refined.api.
- The types involved
eu.timepit.refined.internal.ApplyRefPartiallyApplied→eu.timepit.refined.api.RefTypeeu.timepit.refined.internal.ApplyRefPartiallyApplied→eu.timepit.refined.api.Validateeu.timepit.refined.internal.RefinePartiallyApplied→eu.timepit.refined.api.Validateeu.timepit.refined.internal.Resources→eu.timepit.refined.api.Result
- Direction
- refined.internal uses refined.api, so a change to refined.api can break refined.internal, while a change to refined.internal can't break refined.api.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
17→4 refined.scodec uses refined.collection✕
- Connections
- 1 pair of types, where a type in refined.scodec uses a type in refined.collection.
- The types involved
eu.timepit.refined.scodec.ByteVectorValidate→eu.timepit.refined.collection.Size
- Direction
- refined.scodec uses refined.collection, so a change to refined.collection can break refined.scodec, while a change to refined.scodec can't break refined.collection.
- Position
- Below the diagonal: refined.scodec uses a module listed above it, which is the healthy direction.
18→1 refined.api uses refined.boolean✕
- Connections
- 2 pairs of types, where a type in refined.api uses a type in refined.boolean.
- The types involved
eu.timepit.refined.api.MaxInstances→eu.timepit.refined.boolean.Andeu.timepit.refined.api.MinInstances→eu.timepit.refined.boolean.And
- Direction
- refined.api uses refined.boolean, so a change to refined.boolean can break refined.api, while a change to refined.api can't break refined.boolean.
- Position
- Below the diagonal: refined.api uses a module listed above it, which is the healthy direction.
18→10 refined.api uses refined.numeric✕
- Connections
- 4 pairs of types, where a type in refined.api uses a type in refined.numeric.
- The types involved
eu.timepit.refined.api.MaxInstances→eu.timepit.refined.numeric.Greatereu.timepit.refined.api.MaxInstances→eu.timepit.refined.numeric.Lesseu.timepit.refined.api.MinInstances→eu.timepit.refined.numeric.Greatereu.timepit.refined.api.MinInstances→eu.timepit.refined.numeric.Less
- Direction
- refined.api uses refined.numeric, so a change to refined.numeric can break refined.api, while a change to refined.api can't break refined.numeric.
- Position
- Below the diagonal: refined.api uses a module listed above it, which is the healthy direction.
18→16 refined.api uses refined.internal✕
- Connections
- 7 pairs of types, where a type in refined.api uses a type in refined.internal.
- The types involved
eu.timepit.refined.api.LowPriorityMaxInstances→eu.timepit.refined.internal.Adjacenteu.timepit.refined.api.LowPriorityMinInstances→eu.timepit.refined.internal.Adjacenteu.timepit.refined.api.MaxInstances→eu.timepit.refined.internal.Adjacenteu.timepit.refined.api.MaxInstances→eu.timepit.refined.internal.WitnessAseu.timepit.refined.api.MinInstances→eu.timepit.refined.internal.Adjacenteu.timepit.refined.api.MinInstances→eu.timepit.refined.internal.WitnessAseu.timepit.refined.api.RefType→eu.timepit.refined.internal.RefinePartiallyApplied
- Direction
- refined.api uses refined.internal, so a change to refined.internal can break refined.api, while a change to refined.api can't break refined.internal.
- Position
- Below the diagonal: refined.api uses a module listed above it, which is the healthy direction.
19→16 eu.timepit uses refined.internal✕
- Connections
- 1 pair of types, where a type in eu.timepit uses a type in refined.internal.
- The types involved
eu.timepit.refined→eu.timepit.refined.internal.RefinePartiallyApplied
- Direction
- eu.timepit uses refined.internal, so a change to refined.internal can break eu.timepit, while a change to eu.timepit can't break refined.internal.
- Position
- Below the diagonal: eu.timepit uses a module listed above it, which is the healthy direction.
19→18 eu.timepit uses refined.api✕
- Connections
- 1 pair of types, where a type in eu.timepit uses a type in refined.api.
- The types involved
eu.timepit.refined→eu.timepit.refined.api.Refined
- Direction
- eu.timepit uses refined.api, so a change to refined.api can break eu.timepit, while a change to eu.timepit can't break refined.api.
- Position
- Below the diagonal: eu.timepit uses a module listed above it, which is the healthy direction.
20→18 refined.api.RefType uses refined.api✕
- Connections
- 1 pair of types, where a type in refined.api.RefType uses a type in refined.api.
- The types involved
eu.timepit.refined.api.RefType.RefTypeOps→eu.timepit.refined.api.Validate
- Direction
- refined.api.RefType uses refined.api, so a change to refined.api can break refined.api.RefType, while a change to refined.api.RefType can't break refined.api.
- Position
- Below the diagonal: refined.api.RefType uses a module listed above it, which is the healthy direction.
21→18 refined.api.RefinedTypeOps uses refined.api✕
- Connections
- 1 pair of types, where a type in refined.api.RefinedTypeOps uses a type in refined.api.
- The types involved
eu.timepit.refined.api.RefinedTypeOps.Numeric→eu.timepit.refined.api.RefinedTypeOps
- Direction
- refined.api.RefinedTypeOps uses refined.api, so a change to refined.api can break refined.api.RefinedTypeOps, while a change to refined.api.RefinedTypeOps can't break refined.api.
- Position
- Below the diagonal: refined.api.RefinedTypeOps uses a module listed above it, which is the healthy direction.
22→4 refined.cats uses refined.collection✕
- Connections
- 1 pair of types, where a type in refined.cats uses a type in refined.collection.
- The types involved
eu.timepit.refined.cats.UnorderedFoldableInstances→eu.timepit.refined.collection.Size
- Direction
- refined.cats uses refined.collection, so a change to refined.collection can break refined.cats, while a change to refined.cats can't break refined.collection.
- Position
- Below the diagonal: refined.cats uses a module listed above it, which is the healthy direction.
22→18 refined.cats uses refined.api✕
- Connections
- 2 pairs of types, where a type in refined.cats uses a type in refined.api.
- The types involved
eu.timepit.refined.cats.DerivationInstances→eu.timepit.refined.api.RefTypeeu.timepit.refined.cats.DerivationInstances→eu.timepit.refined.api.Validate
- Direction
- refined.cats uses refined.api, so a change to refined.api can break refined.cats, while a change to refined.cats can't break refined.api.
- Position
- Below the diagonal: refined.cats uses a module listed above it, which is the healthy direction.
23→18 refined.macros uses refined.api✕
- Connections
- 4 pairs of types, where a type in refined.macros uses a type in refined.api.
- The types involved
eu.timepit.refined.macros.InferMacro→eu.timepit.refined.api.RefTypeeu.timepit.refined.macros.MacroUtils→eu.timepit.refined.api.RefTypeeu.timepit.refined.macros.RefineMacro→eu.timepit.refined.api.RefTypeeu.timepit.refined.macros.RefineMacro→eu.timepit.refined.api.Validate
- Direction
- refined.macros uses refined.api, so a change to refined.api can break refined.macros, while a change to refined.macros can't break refined.api.
- Position
- Below the diagonal: refined.macros uses a module listed above it, which is the healthy direction.
24→18 refined.pureconfig uses refined.api✕
- Connections
- 2 pairs of types, where a type in refined.pureconfig uses a type in refined.api.
- The types involved
eu.timepit.refined.pureconfig.BaseInstances→eu.timepit.refined.api.RefTypeeu.timepit.refined.pureconfig.BaseInstances→eu.timepit.refined.api.Validate
- Direction
- refined.pureconfig uses refined.api, so a change to refined.api can break refined.pureconfig, while a change to refined.pureconfig can't break refined.api.
- Position
- Below the diagonal: refined.pureconfig uses a module listed above it, which is the healthy direction.
25→1 refined.scalacheck uses refined.boolean✕
- Connections
- 1 pair of types, where a type in refined.scalacheck uses a type in refined.boolean.
- The types involved
eu.timepit.refined.scalacheck.BooleanInstances→eu.timepit.refined.boolean.Or
- Direction
- refined.scalacheck uses refined.boolean, so a change to refined.boolean can break refined.scalacheck, while a change to refined.scalacheck can't break refined.boolean.
- Position
- Below the diagonal: refined.scalacheck uses a module listed above it, which is the healthy direction.
25→3 refined.scalacheck uses refined.char✕
- Connections
- 5 pairs of types, where a type in refined.scalacheck uses a type in refined.char.
- The types involved
eu.timepit.refined.scalacheck.CharInstances→eu.timepit.refined.char.Digiteu.timepit.refined.scalacheck.CharInstances→eu.timepit.refined.char.Lettereu.timepit.refined.scalacheck.CharInstances→eu.timepit.refined.char.LowerCaseeu.timepit.refined.scalacheck.CharInstances→eu.timepit.refined.char.UpperCaseeu.timepit.refined.scalacheck.CharInstances→eu.timepit.refined.char.Whitespace
- Direction
- refined.scalacheck uses refined.char, so a change to refined.char can break refined.scalacheck, while a change to refined.scalacheck can't break refined.char.
- Position
- Below the diagonal: refined.scalacheck uses a module listed above it, which is the healthy direction.
25→4 refined.scalacheck uses refined.collection✕
- Connections
- 2 pairs of types, where a type in refined.scalacheck uses a type in refined.collection.
- The types involved
eu.timepit.refined.scalacheck.CollectionInstances→eu.timepit.refined.collection.Sizeeu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.collection.Size
- Direction
- refined.scalacheck uses refined.collection, so a change to refined.collection can break refined.scalacheck, while a change to refined.scalacheck can't break refined.collection.
- Position
- Below the diagonal: refined.scalacheck uses a module listed above it, which is the healthy direction.
25→6 refined.scalacheck uses refined.generic✕
- Connections
- 1 pair of types, where a type in refined.scalacheck uses a type in refined.generic.
- The types involved
eu.timepit.refined.scalacheck.GenericInstances→eu.timepit.refined.generic.Equal
- Direction
- refined.scalacheck uses refined.generic, so a change to refined.generic can break refined.scalacheck, while a change to refined.scalacheck can't break refined.generic.
- Position
- Below the diagonal: refined.scalacheck uses a module listed above it, which is the healthy direction.
25→10 refined.scalacheck uses refined.numeric✕
- Connections
- 3 pairs of types, where a type in refined.scalacheck uses a type in refined.numeric.
- The types involved
eu.timepit.refined.scalacheck.NumericInstances→eu.timepit.refined.numeric.Greatereu.timepit.refined.scalacheck.NumericInstances→eu.timepit.refined.numeric.Lesseu.timepit.refined.scalacheck.NumericInstancesBinCompat1→eu.timepit.refined.numeric.NonNaN
- Direction
- refined.scalacheck uses refined.numeric, so a change to refined.numeric can break refined.scalacheck, while a change to refined.scalacheck can't break refined.numeric.
- Position
- Below the diagonal: refined.scalacheck uses a module listed above it, which is the healthy direction.
25→14 refined.scalacheck uses refined.string✕
- Connections
- 12 pairs of types, where a type in refined.scalacheck uses a type in refined.string.
- The types involved
eu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.EndsWitheu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.StartsWitheu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.Uuideu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.ValidBigDecimaleu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.ValidBigInteu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.ValidByteeu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.ValidDoubleeu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.ValidFloateu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.ValidInteu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.ValidLongeu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.string.ValidShorteu.timepit.refined.scalacheck.StringInstancesBinCompat1→eu.timepit.refined.string.Trimmed
- Direction
- refined.scalacheck uses refined.string, so a change to refined.string can break refined.scalacheck, while a change to refined.scalacheck can't break refined.string.
- Position
- Below the diagonal: refined.scalacheck uses a module listed above it, which is the healthy direction.
25→16 refined.scalacheck uses refined.internal✕
- Connections
- 2 pairs of types, where a type in refined.scalacheck uses a type in refined.internal.
- The types involved
eu.timepit.refined.scalacheck.NumericInstances→eu.timepit.refined.internal.Adjacenteu.timepit.refined.scalacheck.NumericInstances→eu.timepit.refined.internal.WitnessAs
- Direction
- refined.scalacheck uses refined.internal, so a change to refined.internal can break refined.scalacheck, while a change to refined.scalacheck can't break refined.internal.
- Position
- Below the diagonal: refined.scalacheck uses a module listed above it, which is the healthy direction.
25→18 refined.scalacheck uses refined.api✕
- Connections
- 14 pairs of types, where a type in refined.scalacheck uses a type in refined.api.
- The types involved
eu.timepit.refined.scalacheck.AnyInstances→eu.timepit.refined.api.RefTypeeu.timepit.refined.scalacheck.AnyInstances→eu.timepit.refined.api.Validateeu.timepit.refined.scalacheck.BooleanInstances→eu.timepit.refined.api.RefTypeeu.timepit.refined.scalacheck.CollectionInstances→eu.timepit.refined.api.Refinedeu.timepit.refined.scalacheck.NumericInstances→eu.timepit.refined.api.Maxeu.timepit.refined.scalacheck.NumericInstances→eu.timepit.refined.api.Mineu.timepit.refined.scalacheck.NumericInstances→eu.timepit.refined.api.RefTypeeu.timepit.refined.scalacheck.NumericInstances→eu.timepit.refined.api.Validateeu.timepit.refined.scalacheck.RefTypeInstances→eu.timepit.refined.api.RefTypeeu.timepit.refined.scalacheck.RefTypeInstances→eu.timepit.refined.api.RefinedTypeeu.timepit.refined.scalacheck.RefTypeInstances→eu.timepit.refined.api.Validateeu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.api.RefTypeeu.timepit.refined.scalacheck.StringInstances→eu.timepit.refined.api.Refinedeu.timepit.refined.scalacheck.StringInstancesBinCompat1→eu.timepit.refined.api.RefType
- Direction
- refined.scalacheck uses refined.api, so a change to refined.api can break refined.scalacheck, while a change to refined.scalacheck can't break refined.api.
- Position
- Below the diagonal: refined.scalacheck uses a module listed above it, which is the healthy direction.
26→18 refined.scalaz uses refined.api✕
- Connections
- 2 pairs of types, where a type in refined.scalaz uses a type in refined.api.
- The types involved
eu.timepit.refined.scalaz.DerivationInstances→eu.timepit.refined.api.RefTypeeu.timepit.refined.scalaz.DerivationInstances→eu.timepit.refined.api.Validate
- Direction
- refined.scalaz uses refined.api, so a change to refined.api can break refined.scalaz, while a change to refined.scalaz can't break refined.api.
- Position
- Below the diagonal: refined.scalaz uses a module listed above it, which is the healthy direction.
27→18 refined.shapeless uses refined.api✕
- Connections
- 2 pairs of types, where a type in refined.shapeless uses a type in refined.api.
- The types involved
eu.timepit.refined.shapeless.typeable→eu.timepit.refined.api.RefTypeeu.timepit.refined.shapeless.typeable→eu.timepit.refined.api.Validate
- Direction
- refined.shapeless uses refined.api, so a change to refined.api can break refined.shapeless, while a change to refined.shapeless can't break refined.api.
- Position
- Below the diagonal: refined.shapeless uses a module listed above it, which is the healthy direction.
28→18 refined.types.char uses refined.api✕
- Connections
- 2 pairs of types, where a type in refined.types.char uses a type in refined.api.
- The types involved
eu.timepit.refined.types.char.LowerCaseChar→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.char.UpperCaseChar→eu.timepit.refined.api.RefinedTypeOps
- Direction
- refined.types.char uses refined.api, so a change to refined.api can break refined.types.char, while a change to refined.types.char can't break refined.api.
- Position
- Below the diagonal: refined.types.char uses a module listed above it, which is the healthy direction.
29→18 refined.types.digests uses refined.api✕
- Connections
- 6 pairs of types, where a type in refined.types.digests uses a type in refined.api.
- The types involved
eu.timepit.refined.types.digests.MD5→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.digests.SHA1→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.digests.SHA224→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.digests.SHA256→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.digests.SHA384→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.digests.SHA512→eu.timepit.refined.api.RefinedTypeOps
- Direction
- refined.types.digests uses refined.api, so a change to refined.api can break refined.types.digests, while a change to refined.types.digests can't break refined.api.
- Position
- Below the diagonal: refined.types.digests uses a module listed above it, which is the healthy direction.
30→18 refined.types.net uses refined.api✕
- Connections
- 5 pairs of types, where a type in refined.types.net uses a type in refined.api.
- The types involved
eu.timepit.refined.types.net.DynamicPortNumber→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.net.NonSystemPortNumber→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.net.PortNumber→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.net.SystemPortNumber→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.net.UserPortNumber→eu.timepit.refined.api.RefinedTypeOps
- Direction
- refined.types.net uses refined.api, so a change to refined.api can break refined.types.net, while a change to refined.types.net can't break refined.api.
- Position
- Below the diagonal: refined.types.net uses a module listed above it, which is the healthy direction.
31→18 refined.types.numeric uses refined.api✕
- Connections
- 10 pairs of types, where a type in refined.types.numeric uses a type in refined.api.
- The types involved
eu.timepit.refined.types.numeric.NegBigDecimal→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.numeric.NegBigInt→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.numeric.NonNaNDouble→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.numeric.NonNaNFloat→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.numeric.NonNegBigDecimal→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.numeric.NonNegBigInt→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.numeric.NonPosBigDecimal→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.numeric.NonPosBigInt→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.numeric.PosBigDecimal→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.numeric.PosBigInt→eu.timepit.refined.api.RefinedTypeOps
- Direction
- refined.types.numeric uses refined.api, so a change to refined.api can break refined.types.numeric, while a change to refined.types.numeric can't break refined.api.
- Position
- Below the diagonal: refined.types.numeric uses a module listed above it, which is the healthy direction.
32→18 refined.types.string uses refined.api✕
- Connections
- 3 pairs of types, where a type in refined.types.string uses a type in refined.api.
- The types involved
eu.timepit.refined.types.string.HexString→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.string.NonEmptyString→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.string.TrimmedString→eu.timepit.refined.api.RefinedTypeOps
- Direction
- refined.types.string uses refined.api, so a change to refined.api can break refined.types.string, while a change to refined.types.string can't break refined.api.
- Position
- Below the diagonal: refined.types.string uses a module listed above it, which is the healthy direction.
33→18 refined.types.time uses refined.api✕
- Connections
- 6 pairs of types, where a type in refined.types.time uses a type in refined.api.
- The types involved
eu.timepit.refined.types.time.Day→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.time.Hour→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.time.Millis→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.time.Minute→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.time.Month→eu.timepit.refined.api.RefinedTypeOpseu.timepit.refined.types.time.Second→eu.timepit.refined.api.RefinedTypeOps
- Direction
- refined.types.time uses refined.api, so a change to refined.api can break refined.types.time, while a change to refined.types.time can't break refined.api.
- Position
- Below the diagonal: refined.types.time uses a module listed above it, which is the healthy direction.
34→14 refined.util uses refined.string✕
- Connections
- 1 pair of types, where a type in refined.util uses a type in refined.string.
- The types involved
eu.timepit.refined.util.string→eu.timepit.refined.string.Regex
- Direction
- refined.util uses refined.string, so a change to refined.string can break refined.util, while a change to refined.util can't break refined.string.
- Position
- Below the diagonal: refined.util uses a module listed above it, which is the healthy direction.
34→18 refined.util uses refined.api✕
- Connections
- 1 pair of types, where a type in refined.util uses a type in refined.api.
- The types involved
eu.timepit.refined.util.string→eu.timepit.refined.api.Refined
- Direction
- refined.util uses refined.api, so a change to refined.api can break refined.util, while a change to refined.util can't break refined.api.
- Position
- Below the diagonal: refined.util uses a module listed above it, which is the healthy direction.
35→16 refined uses refined.internal✕
- Connections
- 3 pairs of types, where a type in refined uses a type in refined.internal.
- The types involved
eu.timepit.refined.GenericInference→eu.timepit.refined.internal.WitnessAseu.timepit.refined.NumericInference→eu.timepit.refined.internal.ToInteu.timepit.refined.NumericInference→eu.timepit.refined.internal.WitnessAs
- Direction
- refined uses refined.internal, so a change to refined.internal can break refined, while a change to refined can't break refined.internal.
- Position
- Below the diagonal: refined uses a module listed above it, which is the healthy direction.
35→18 refined uses refined.api✕
- Connections
- 14 pairs of types, where a type in refined uses a type in refined.api.
- The types involved
eu.timepit.refined.GenericInference→eu.timepit.refined.api.Validateeu.timepit.refined.auto→eu.timepit.refined.api.RefTypeeu.timepit.refined.cats→eu.timepit.refined.api.RefTypeeu.timepit.refined.cats→eu.timepit.refined.api.Refinedeu.timepit.refined.cats→eu.timepit.refined.api.Validateeu.timepit.refined.collection→eu.timepit.refined.api.Resulteu.timepit.refined.pureconfig→eu.timepit.refined.api.RefTypeeu.timepit.refined.pureconfig→eu.timepit.refined.api.Validateeu.timepit.refined.scalaz→eu.timepit.refined.api.RefTypeeu.timepit.refined.scalaz→eu.timepit.refined.api.Validateeu.timepit.refined.scodec→eu.timepit.refined.api.RefTypeeu.timepit.refined.scodec→eu.timepit.refined.api.Validateeu.timepit.refined.scopt→eu.timepit.refined.api.RefTypeeu.timepit.refined.scopt→eu.timepit.refined.api.Validate
- Direction
- refined uses refined.api, so a change to refined.api can break refined, while a change to refined can't break refined.api.
- Position
- Below the diagonal: refined uses a module listed above it, which is the healthy direction.
35→31 refined uses refined.types.numeric✕
- Connections
- 23 pairs of types, where a type in refined uses a type in refined.types.numeric.
- The types involved
eu.timepit.refined.cats→eu.timepit.refined.types.numeric.NegBigDecimaleu.timepit.refined.cats→eu.timepit.refined.types.numeric.NegByteeu.timepit.refined.cats→eu.timepit.refined.types.numeric.NegDoubleeu.timepit.refined.cats→eu.timepit.refined.types.numeric.NegFloateu.timepit.refined.cats→eu.timepit.refined.types.numeric.NegInteu.timepit.refined.cats→eu.timepit.refined.types.numeric.NegLongeu.timepit.refined.cats→eu.timepit.refined.types.numeric.NegShorteu.timepit.refined.cats→eu.timepit.refined.types.numeric.NonNegBigDecimaleu.timepit.refined.cats→eu.timepit.refined.types.numeric.NonNegByteeu.timepit.refined.cats→eu.timepit.refined.types.numeric.NonNegDoubleeu.timepit.refined.cats→eu.timepit.refined.types.numeric.NonNegFloateu.timepit.refined.cats→eu.timepit.refined.types.numeric.NonNegInteu.timepit.refined.cats→eu.timepit.refined.types.numeric.NonNegLongeu.timepit.refined.cats→eu.timepit.refined.types.numeric.NonNegShorteu.timepit.refined.cats→eu.timepit.refined.types.numeric.NonPosDoubleeu.timepit.refined.cats→eu.timepit.refined.types.numeric.NonPosFloateu.timepit.refined.cats→eu.timepit.refined.types.numeric.PosBigDecimaleu.timepit.refined.cats→eu.timepit.refined.types.numeric.PosByteeu.timepit.refined.cats→eu.timepit.refined.types.numeric.PosDoubleeu.timepit.refined.cats→eu.timepit.refined.types.numeric.PosFloateu.timepit.refined.cats→eu.timepit.refined.types.numeric.PosInteu.timepit.refined.cats→eu.timepit.refined.types.numeric.PosLongeu.timepit.refined.cats→eu.timepit.refined.types.numeric.PosShort
- Direction
- refined uses refined.types.numeric, so a change to refined.types.numeric can break refined, while a change to refined can't break refined.types.numeric.
- Position
- Below the diagonal: refined uses a module listed above it, which is the healthy direction.
36→31 refined.cats.CatsNonEmptyListSyntax uses refined.types.numeric✕
- Connections
- 1 pair of types, where a type in refined.cats.CatsNonEmptyListSyntax uses a type in refined.types.numeric.
- The types involved
eu.timepit.refined.cats.CatsNonEmptyListSyntax.CatsNonEmptyListRefinedOps→eu.timepit.refined.types.numeric.PosInt
- Direction
- refined.cats.CatsNonEmptyListSyntax uses refined.types.numeric, so a change to refined.types.numeric can break refined.cats.CatsNonEmptyListSyntax, while a change to refined.cats.CatsNonEmptyListSyntax can't break refined.types.numeric.
- Position
- Below the diagonal: refined.cats.CatsNonEmptyListSyntax uses a module listed above it, which is the healthy direction.
37→31 refined.cats.CatsNonEmptyVectorSyntax uses refined.types.numeric✕
- Connections
- 1 pair of types, where a type in refined.cats.CatsNonEmptyVectorSyntax uses a type in refined.types.numeric.
- The types involved
eu.timepit.refined.cats.CatsNonEmptyVectorSyntax.CatsNonEmptyVectorRefinedOps→eu.timepit.refined.types.numeric.PosInt
- Direction
- refined.cats.CatsNonEmptyVectorSyntax uses refined.types.numeric, so a change to refined.types.numeric can break refined.cats.CatsNonEmptyVectorSyntax, while a change to refined.cats.CatsNonEmptyVectorSyntax can't break refined.types.numeric.
- Position
- Below the diagonal: refined.cats.CatsNonEmptyVectorSyntax uses a module listed above it, which is the healthy direction.
38→18 refined.types.string.FiniteString uses refined.api✕
- Connections
- 1 pair of types, where a type in refined.types.string.FiniteString uses a type in refined.api.
- The types involved
eu.timepit.refined.types.string.FiniteString.FiniteStringOps→eu.timepit.refined.api.RefinedTypeOps
- Direction
- refined.types.string.FiniteString uses refined.api, so a change to refined.api can break refined.types.string.FiniteString, while a change to refined.types.string.FiniteString can't break refined.api.
- Position
- Below the diagonal: refined.types.string.FiniteString uses a module listed above it, which is the healthy direction.
38→32 refined.types.string.FiniteString uses refined.types.string✕
- Connections
- 1 pair of types, where a type in refined.types.string.FiniteString uses a type in refined.types.string.
- The types involved
eu.timepit.refined.types.string.FiniteString.FiniteStringOps→eu.timepit.refined.types.string.FiniteString
- Direction
- refined.types.string.FiniteString uses refined.types.string, so a change to refined.types.string can break refined.types.string.FiniteString, while a change to refined.types.string.FiniteString can't break refined.types.string.
- Position
- Below the diagonal: refined.types.string.FiniteString uses a module listed above it, which is the healthy direction.
39→18 refined.types.string.NonEmptyFiniteString uses refined.api✕
- Connections
- 1 pair of types, where a type in refined.types.string.NonEmptyFiniteString uses a type in refined.api.
- The types involved
eu.timepit.refined.types.string.NonEmptyFiniteString.NonEmptyFiniteStringOps→eu.timepit.refined.api.RefinedTypeOps
- Direction
- refined.types.string.NonEmptyFiniteString uses refined.api, so a change to refined.api can break refined.types.string.NonEmptyFiniteString, while a change to refined.types.string.NonEmptyFiniteString can't break refined.api.
- Position
- Below the diagonal: refined.types.string.NonEmptyFiniteString uses a module listed above it, which is the healthy direction.
39→32 refined.types.string.NonEmptyFiniteString uses refined.types.string✕
- Connections
- 2 pairs of types, where a type in refined.types.string.NonEmptyFiniteString uses a type in refined.types.string.
- The types involved
eu.timepit.refined.types.string.NonEmptyFiniteString.NonEmptyFiniteStringOps→eu.timepit.refined.types.string.NonEmptyFiniteStringeu.timepit.refined.types.string.NonEmptyFiniteString.NonEmptyFiniteStringOps→eu.timepit.refined.types.string.NonEmptyString
- Direction
- refined.types.string.NonEmptyFiniteString uses refined.types.string, so a change to refined.types.string can break refined.types.string.NonEmptyFiniteString, while a change to refined.types.string.NonEmptyFiniteString can't break refined.types.string.
- Position
- Below the diagonal: refined.types.string.NonEmptyFiniteString uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 13 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 6 | Medium |
Roadmap
Top priorities: Add a SAST step to CI running what this repository's stack ships: scalafix or scapegoat — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing; 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; Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Add a SAST step to CI running what this repository's stack ships: scalafix or scapegoat — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing. | +6.0 pts | Medium | Security & performance tooling |
| 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.3 pts | Medium | Architecture documentation |
| Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it. | +3.1 pts | Medium | Deployment & Rollback |
| Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release. | +3.1 pts | Medium | Release Hygiene |
| Add a build/run (quick start) section to the root README — the first thing a newcomer needs. | +2.2 pts | Medium | Documentation (README) |
| 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. | +1.7 pts | Medium | Nullable reference types |
| Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED. | +0.7 pts | Low | Supply-chain Provenance & Signing |
| Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. | +0.6 pts | Low | Static Analysis (SAST) |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 2.3 | Slop | Static Analysis (SAST): High: REDACTED |
| modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala | 7.0 | Near-clean | Code Duplication: Members sharing a duplicated core (6 members, 50+ identical tokens) |
| modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala | 7.0 | Near-clean | Code Duplication: Duplicated block (21 lines × 2) |
| REDACTED | 7.9 | Near-clean | Supply-chain Provenance & Signing: REDACTED |
| modules/cats/shared/src/main/scala/eu/timepit/refined/cats/unorderedFoldable.scala | 8.5 | Near-clean | Code Duplication: Edited copy of a member (17 corresponding lines) |
| modules/cats/shared/src/main/scala/eu/timepit/refined/cats/package.scala | 8.5 | Near-clean | Code Duplication: Edited copy of a member (8 corresponding lines) |
| modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/api/RefinedTypeOps.scala | 8.5 | Near-clean | Code Duplication: Duplicated block (10 lines × 2) |
| modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/numeric.scala | 8.5 | Near-clean | Code Duplication: Duplicated block (66 lines × 2) |
| modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/types/string.scala | 8.5 | Near-clean | Code Duplication: Duplicated block (94 lines × 2) |
| modules/scalacheck/shared/src/main/scala-3.0+/eu/timepit/refined/scalacheck/string.scala | 8.5 | Near-clean | Code Duplication: Duplicated block (72 lines × 2) |
| modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/string.scala | 8.5 | Near-clean | Code Duplication: Duplicated block (5 lines × 2) |
How the grades work
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.
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.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 39 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.
What we checked — 39 dimensions across the health lenses
- 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, 43 of 53 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Canine Code Analyzer duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
Run transparency — what happened this run
- D8 Code Coverage — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT READ here — but this repository measures it: a Codecov configuration (.codecov.yml) and 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), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored.
- D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.scala) and this repository declares an sbt build (repository root, 61 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
- D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: it declares a published package (build.sbt), but no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict.
- D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
- D26 Project Cohesion — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `(repository root)` (5583 LoC, 465 module-visible types across 29 directories) is over its size bounds, and whether one unit is a coherent whole or a grab-bag is read from its type references: the parts of it that reach the rest only through its shared core. Those are read over the C#/VB code model, which this unit's source did not supply. Its size alone is no verdict on its cohesion, so none is published.
- D27 Navigability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 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.
- D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/api/Refined.scala`, `modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala`, `modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/internal/WitnessAs.scala` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
- D44 Platform End-of-Life — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This 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 build.sbt 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.
- C1 Data Protection — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
- C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
- P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
Limitations & what we did not check
We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- 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.
- 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.
- 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.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
0 method(s) exceeded the cognitive complexity threshold of 15.
D3 · God Classes
0 god class(es) detected.
D4 · Code Duplication
21 duplicated block group(s) detected. 15.1 % of the production lines (845 of 5,583) are in a reported copy. A further 4 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.
What to do
- Resolve the 3 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with collection.scala (3). — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 2 Duplicated block (14 lines × 2) finding(s) in Code Duplication — start with collection.scala (2). — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 2 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with collection.scala, string.scala. — One of this dimension's main actionable groups (2 warning-level).
D5 · Coupling
12 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, and main-sequence distance (abstractness) is not computed for these modules yet.
D6 · Cohesion (LCOM4)
0 of 1 classes have LCOM4 above 3.
D12 · Dependency Hygiene
1 outdated direct sbt declarations. 2 of 3 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.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 2 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 2 sbt build file(s) (build.sbt 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. 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.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D16 · Bus Factor
1 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala. Counted over 23 of the 101 production source files in this repository: 71 are under the ~2,400-byte size floor this dimension measures over, and the remaining 7 have no attributable history left to measure.
D17 · Explicit Debt
0 deducted task-comment markers across 5583 LoC (0.0/KLoC) → score 10.0. 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.
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
13 finding(s): 0 critical, 13 high, 0 medium, 0 low. 11 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. Separately, one or more rules could not re-parse an embedded snippet in 1 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.
What to do
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- No action in Static Analysis (SAST) — all 11 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 (11 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
No known-vulnerable dependencies in any ecosystem this repository declares.
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 30 of the 101 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
No strong hidden change-coupling between production files.
D36 · Supply-chain Provenance & Signing
1/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
Frontend & cross-cutting dimensions
AX10 · Code composition
AX3 · Project dependency cycles
AX4 · Dependency direction
AX6 · Interface segregation
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
M1 · Documentation (README)
What to do
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation
- 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.
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.
M3 · Folder & project structure
P1 · CI/CD gates
P10 · Library API & versioning
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add scalafix or scapegoat (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner. — REDACTED:11
What to do
- Add a SAST step to CI running what this repository's stack ships: scalafix or scapegoat — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release.
What to do
- Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
P6 · Release Hygiene
- No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
- Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
PF1 · Benchmark discipline
- 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. — modules/benchmark/src/main/scala/eu/timepit/refined/benchmark/InferMacroBenchmark.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.
X12 · Unreachable branch
X16 · Unfloored truncation loop
X21 · Side-effecting pattern guard
X3 · Exception handling
X5 · Nullable reference types
- No build over this repository's 93 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
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 70% | Adequate — gated by D4, X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 95% | Exemplary | Strongest area. |
| Maturity | 59% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 51% | Adequate — gated by P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 65% | Adequate — gated by D36 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 90% | Exemplary | Solid. |
Unscored — 1 check(s) recorded observations but carry no score
- X10 Duplicated predicate — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 control(s) we could not find positive evidence for
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 75 check(s) not relevant to this codebase
- 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.
- AX1 Captive dependencies — Not applicable: this repository's Scala imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
- AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this 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
- AX8 Test isolation — no test/production split to check
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB1 Runtime evidence locked — no reproducible boot — 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.
- C3 Audit Trail — No personal data detected in a persisted data model — no PII-named column (email, first_name, date_of_birth, phone_number, …) or stored credential on a Slick table or in a SQL migration's CREATE TABLE or ALTER TABLE — and no database client (Slick, Doobie, Quill, ScalikeJDBC, Anorm, Skunk, a MongoDB or Cassandra driver, JDBC) imported either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store configured outside this repository, for instance), the trail belongs to wherever that data is stored.
- C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Slick table or in a SQL migration's CREATE TABLE or ALTER TABLE — and no database or data-store client (Slick, Doobie, Quill, ScalikeJDBC, Anorm, Skunk, JDBC, MongoDB, Cassandra, …) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
- C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Slick table or in a SQL migration's CREATE TABLE or ALTER TABLE — and no database or data-store client (Slick, Doobie, Quill, ScalikeJDBC, Anorm, Skunk, JDBC, MongoDB, Cassandra, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
- D10 Test Quality — ~3296 lines of test source are present (.scala) 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 — D21 withholds its case and prefix conventions rows: 2 candidate(s) found and not reported.
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .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
- D26 Project Cohesion — D26 could not read how the parts of this repository's one build unit reference each other, so its cohesion was not measured. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- 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.
- D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) — 3 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- 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): 101 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
- M4 Documentation accuracy — Not applicable: the 21 current-state document(s) make no claim of a kind M4 checks.
- P12 CI test-gate honesty — 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.
- P2 Observability — This repository's JVM source (1 module(s), 94 file(s) read) declares no entry point and bootstraps no server, and nothing here deploys a service — it is a library, run inside whatever hosts it, so production observability (structured logging, tracing/metrics, health checks) is N/A. If it grows a binary or a service, the dimension reactivates.
- P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
- PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
- PF3 Async & latency hygiene — Not applicable: this repository declares no async functions, so there is no asynchronous code for a blocking call to stall.
- S1 Web-Security Posture — No web surface: 93 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.
- X1 Async correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X18 Disposal-pattern correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X2 Cancellation propagation — no C# was loaded; this repository's Scala was 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
- X20 Mistyped argument guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X24 Document value interpolated into markup unescaped — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X25 Inert configuration knob — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X26 Unsynchronised callback handoff — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X27 Collection changed while being enumerated — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X28 Index access outside its own emptiness guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X29 Per-element action decided by a fixed element — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X30 Support guard that admits what it rejects — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Scala was read, and it logs through none that an interpolated message defeats: scala-logging takes an `s"…"` message apart into SLF4J's pattern and arguments at compile time, and log4s, grizzled-slf4j, Play's Logger, Akka's LoggingAdapter, sbt's Logger and Spark's Logging take one finished message (as log4net does in C#). Calls made straight through SLF4J (`org.slf4j.Logger`) would be judged.
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 13 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 29 finding(s)
- Duplicated block (11 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala:131
- Duplicated block (11 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala:207
- Duplicated block (11 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala:280
- REDACTED
- REDACTED
- Duplicated block (14 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala:154
- Duplicated block (14 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala:230
- Duplicated block (5 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala:308
- Duplicated block (5 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/string.scala:183
- Duplicated block (6 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala:119
- Duplicated block (6 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala:152
- REDACTED
- REDACTED
- Members sharing a duplicated core (6 members, 50+ identical tokens) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala:85
- Members sharing a duplicated core (4 members, 50+ identical tokens) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala:187
- Edited copy of a member (17 corresponding lines) modules/cats/shared/src/main/scala/eu/timepit/refined/cats/unorderedFoldable.scala:22
- Edited copy of a member (8 corresponding lines) modules/cats/shared/src/main/scala/eu/timepit/refined/cats/package.scala:115
- Duplicated block (21 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala:99
- Duplicated block (20 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala:58
- Duplicated block (26 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala:85
- Duplicated block (17 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala:257
- Duplicated block (19 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/collection.scala:182
- Duplicated block (14 lines × 4) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala:130
- Duplicated block (8 lines × 6) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala:93
- Duplicated block (6 lines × 4) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala:196
- Duplicated block (10 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/api/RefinedTypeOps.scala:26
- Duplicated block (66 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/numeric.scala:94
- Duplicated block (94 lines × 2) modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/types/string.scala:35
- Duplicated block (72 lines × 2) modules/scalacheck/shared/src/main/scala-3.0+/eu/timepit/refined/scalacheck/string.scala:21
Minor — 10 finding(s)
- Off-boarding risk: anonymized user #1
- REDACTED
- REDACTED
- No ADRs
- No SAST REDACTED:11
- No release approval gate
- No changelog
- Benchmarks don't track allocations modules/benchmark/src/main/scala/eu/timepit/refined/benchmark/InferMacroBenchmark.scala
- Duplicated predicate modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/string.scala:100
- Scala's null is not held to the type system everywhere
Minor — 1 finding(s)
- Outdated: com.github.pureconfig:pureconfig-core_2.13
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-a1fe1b527d724c32b8678ff7029fae6b/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-a1fe1b527d724c32b8678ff7029fae6b/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt . | 13 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | osv-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-b41eac45104e47bd8d8f7a0cc9fdd133 | 0 | artifacts/raw/osv-scanner.json |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 3 file(s) — `modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/api/Refined.scala`, `modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala`, `modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/internal/WitnessAs.scala` — so the PII/GDPR sweep did not cover them at all. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-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 Confinement | runtime-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 Enforcement | runtime-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 Dependencies | osv-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-b41eac45104e47bd8d8f7a0cc9fdd133 | 0 | artifacts/raw/osv-scanner.json |