ZIO — A type-safe, composable library for async and concurrent programming in Scala
This report summarizes scanner evidence for zio/zio, a Scala project with 4,434 GitHub stars. SynthScan examined 293,502 lines of code across 1587 source files, recording 204 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 1.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 129 finding(s).
Are imports declared and package/API names verified? 21 finding(s).
Are wrappers, guards, and repeated structures necessary? 108 finding(s).
Which changes need focused human review? 204 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 204 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | specs/2026-07-17-homepage-code-showcase-plan.md | 51 | // ── Stubs standing in for "your code" in the homepage snippets ────────── | COMMENT |
| MEDIUM | specs/2026-07-17-homepage-code-showcase-plan.md | 90 | // ── Snippet 1: Concurrency ────────────────────────────────────────────── | COMMENT |
| MEDIUM | specs/2026-07-17-homepage-code-showcase-plan.md | 102 | // ── Snippet 2: Error handling ─────────────────────────────────────────── | COMMENT |
| MEDIUM | specs/2026-07-17-homepage-code-showcase-plan.md | 113 | // ── Snippet 3: Resource safety ────────────────────────────────────────── | COMMENT |
| MEDIUM | specs/2026-07-17-homepage-code-showcase-plan.md | 131 | // ── Snippet 4: Streaming ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | specs/2026-07-17-homepage-code-showcase-plan.md | 143 | // ── Snippet 5: Dependency Injection ───────────────────────────────────── | COMMENT |
| MEDIUM | specs/snippet-check/showcase.scala | 13 | // ── Stubs standing in for "your code" in the homepage snippets ────────── | COMMENT |
| MEDIUM | specs/snippet-check/showcase.scala | 57 | // ── Snippet 1: Concurrency ────────────────────────────────────────────── | COMMENT |
| MEDIUM | specs/snippet-check/showcase.scala | 68 | // ── Snippet 2: Error handling ─────────────────────────────────────────── | COMMENT |
| MEDIUM | specs/snippet-check/showcase.scala | 77 | // ── Snippet 3: Resource safety ────────────────────────────────────────── | COMMENT |
| MEDIUM | specs/snippet-check/showcase.scala | 92 | // ── Snippet 4: Streaming ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | specs/snippet-check/showcase.scala | 103 | // ── Snippet 5: Dependency Injection ───────────────────────────────────── | COMMENT |
| MEDIUM | …n/scala/reloadableservices/ReloadableFullExample.scala | 36 | // ── Service definition ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …n/scala/reloadableservices/ReloadableFullExample.scala | 43 | // ── Implementation with visible lifecycle ───────────────────────────────── | COMMENT |
| MEDIUM | …n/scala/reloadableservices/ReloadableFullExample.scala | 57 | // ── Main program ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/src/main/scala/migratefrommonix/CompleteExample.scala | 21 | // ── Domain types ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/src/main/scala/migratefrommonix/CompleteExample.scala | 33 | // ── Resource ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/src/main/scala/migratefrommonix/CompleteExample.scala | 39 | // ── Worker: resource + typed errors + Ref + Promise ─────────────── | COMMENT |
| MEDIUM | …/src/main/scala/migratefrommonix/CompleteExample.scala | 57 | // ── Application ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …src/main/scala/migratecatseffect/CompleteExample.scala | 18 | // ── Domain types ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …src/main/scala/migratecatseffect/CompleteExample.scala | 30 | // ── Resource ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …src/main/scala/migratecatseffect/CompleteExample.scala | 36 | // ── Worker: resource + typed errors + Ref + Promise ────────────── | COMMENT |
| MEDIUM | …src/main/scala/migratecatseffect/CompleteExample.scala | 54 | // ── Application ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/guides/tutorials/reloadable-services.md | 392 | // ── Service definition ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/guides/tutorials/reloadable-services.md | 398 | // ── Service implementation with visible lifecycle ──────────────────────────── | COMMENT |
| MEDIUM | docs/guides/tutorials/reloadable-services.md | 411 | // ── Main program ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/di/automatic-layer-construction.md | 88 | // ──── ZLAYER ERROR ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/di/automatic-layer-construction.md | 96 | // ────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/di/automatic-layer-construction.md | 129 | // ──── ZLAYER ERROR ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/di/automatic-layer-construction.md | 139 | // ────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/sync/CyclicBarrierDiagram.jsx | 3 | // ── Theme System ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/sync/CyclicBarrierDiagram.jsx | 137 | // ── Utilities ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/sync/CyclicBarrierDiagram.jsx | 143 | // ── State ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/sync/CyclicBarrierDiagram.jsx | 167 | // ── Theme Toggle ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/sync/CyclicBarrierDiagram.jsx | 171 | // ── Button ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/sync/CyclicBarrierDiagram.jsx | 221 | // ── SVG Components ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/sync/CyclicBarrierDiagram.jsx | 312 | // ── Main Component ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/sync/CyclicBarrierDiagram.jsx | 418 | // ── Animation loop ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | docs/reference/sync/CyclicBarrierDiagram.jsx | 550 | // ── SVG layout ──────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scalafix/input/src/main/scala/fix/ZIOSpec.scala | 0 | zio .fail(new runtimeexception("boo!")) .refinetoordie[error] | STRING |
| HIGH | scalafix/input/src/main/scala/fix/ZManagedSpec.scala | 0 | zio .fail(new runtimeexception("boo!")) .refinetoordie[error] | STRING |
| HIGH | scalafix/input/src/main/scala/fix/ZStreamSpec.scala | 0 | zio .fail(new runtimeexception("boo!")) .refinetoordie[error] | STRING |
| HIGH | scalafix/output/src/main/scala/fix/ZIOSpec.scala | 0 | zio .fail(new runtimeexception("boo!")) .refinetoordie[error] | STRING |
| HIGH | scalafix/output/src/main/scala/fix/ZManagedSpec.scala | 0 | zio .fail(new runtimeexception("boo!")) .refinetoordie[error] | STRING |
| HIGH | scalafix/output/src/main/scala/fix/ZStreamSpec.scala | 0 | zio .fail(new runtimeexception("boo!")) .refinetoordie[error] | STRING |
| HIGH | …sts/shared/src/test/scala/zio/stream/ZStreamSpec.scala | 0 | zio .fail(new runtimeexception("boo!")) .refinetoordie[error] | STRING |
| HIGH | core-tests/shared/src/test/scala/zio/ZIOSpec.scala | 0 | zio .fail(new runtimeexception("boo!")) .refinetoordie[error] | STRING |
| HIGH | …s/shared/src/test/scala/zio/managed/ZManagedSpec.scala | 0 | zio .fail(new runtimeexception("boo!")) .refinetoordie[error] | STRING |
| HIGH | docs/guides/tutorials/reloadable-services.md | 0 | librarydependencies += "dev.zio" %% "zio" % "${zio.buildinfo.version.split('+').head} | STRING |
| HIGH | docs/overview/modules.md | 0 | librarydependencies += "dev.zio" %% "zio" % "${zio.buildinfo.version.split('+').head} | STRING |
| HIGH | docs/overview/index.md | 0 | librarydependencies += "dev.zio" %% "zio" % "${zio.buildinfo.version.split('+').head} | STRING |
| HIGH | …ests/src/test/scala-2/zio/macros/AccessibleMSpec.scala | 0 | trait foo trait bar @accessible object module { trait service[t <: foo, u >: bar] { val v: task[t] def f1: uio[u] def f2 | STRING |
| HIGH | …s/src/test/scala-2/zio/macros/AccessibleSpecFlat.scala | 0 | trait foo trait bar @accessible object module { trait service[t <: foo, u >: bar] { val v: task[t] def f1: uio[u] def f2 | STRING |
| HIGH | …tests/src/test/scala-2/zio/macros/AccessibleSpec.scala | 0 | trait foo trait bar @accessible object module { trait service[t <: foo, u >: bar] { val v: task[t] def f1: uio[u] def f2 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/shared/src/main/scala/zio/FiberRef.scala | 125 | final def getAndSet(newValue: A)(implicit trace: Trace): UIO[A] = | CODE |
| LOW | core/shared/src/main/scala/zio/FiberRef.scala | 134 | final def getAndUpdate(f: A => A)(implicit trace: Trace): UIO[A] = | CODE |
| LOW | core/shared/src/main/scala/zio/FiberRef.scala | 145 | final def getAndUpdateSome(pf: PartialFunction[A, A])(implicit trace: Trace): UIO[A] = | CODE |
| LOW | core/shared/src/main/scala/zio/FiberRef.scala | 560 | private def setAndRestoreRefs[R, E, A]( | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 72 | def getAndSet(a: A)(implicit trace: Trace): UIO[A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 79 | def getAndUpdate(f: A => A)(implicit trace: Trace): UIO[A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 87 | def getAndUpdateSome(pf: PartialFunction[A, A])(implicit trace: Trace): UIO[A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 143 | final def getAndIncrement(implicit num: math.Numeric[A], trace: Trace): UIO[A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 150 | final def getAndDecrement(implicit num: math.Numeric[A], trace: Trace): UIO[A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 157 | final def getAndAdd(delta: A)(implicit num: math.Numeric[A], trace: Trace): UIO[A] = | CODE |
| LOW | core/shared/src/main/scala/zio/Ref.scala | 236 | def getAndUpdateZIO[R, E](f: A => ZIO[R, E, A])(implicit trace: Trace): ZIO[R, E, A] = | CODE |
| LOW | core/shared/src/main/scala/zio/Ref.scala | 244 | def getAndUpdateSomeZIO[R, E](pf: PartialFunction[A, ZIO[R, E, A]])(implicit | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 330 | override def getAndSet(a: A)(implicit trace: Trace): UIO[A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 333 | override def getAndUpdate(f: A => A)(implicit trace: Trace): UIO[A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 336 | override def getAndUpdateSome(pf: PartialFunction[A, A])(implicit trace: Trace): UIO[A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 365 | def getAndSet(a: A)(implicit unsafe: Unsafe): A | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 366 | def getAndUpdate(f: A => A)(implicit unsafe: Unsafe): A | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 367 | def getAndUpdateSome(pf: PartialFunction[A, A])(implicit unsafe: Unsafe): A | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 385 | def getAndSet(a: A)(implicit unsafe: Unsafe): A = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 388 | def getAndUpdate(f: A => A)(implicit unsafe: Unsafe): A = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/Ref.scala | 391 | def getAndUpdateSome(pf: PartialFunction[A, A])(implicit unsafe: Unsafe): A = | CODE |
| LOW | core/shared/src/main/scala/zio/FiberRefs.scala | 148 | def getOrDefault[@specialized(SpecializeInt) A](fiberRef: FiberRef[A]): A = { | CODE |
| LOW | core/shared/src/main/scala/zio/FiberRefs.scala | 171 | private[zio] def getOrNull[A](fiberRef: FiberRef[A]): A = { | CODE |
| LOW | core/shared/src/main/scala/zio/ZPool.scala | 282 | private def getAndShutdown(implicit trace: Trace): UIO[Unit] = | CODE |
| LOW | core/shared/src/main/scala/zio/ZEnvironment.scala | 315 | private[ZEnvironment] def getOrElse[A](tag: LightTypeTag, default: => A)(implicit unsafe: Unsafe): A | CODE |
| LOW | core/shared/src/main/scala/zio/ZEnvironment.scala | 352 | private[ZEnvironment] def getOrElse[A](tag: LightTypeTag, default: => A)(implicit unsafe: Unsafe): A = { | CODE |
| LOW | core/shared/src/main/scala/zio/ZLayer.scala | 2375 | def getOrElseMemoize[E, A, B](scope: Scope)(layer: ZLayer[A, E, B]): ZIO[A, E, ZEnvironment[B]] = | CODE |
| LOW | core/shared/src/main/scala/zio/FiberId.scala | 51 | final def getOrElse(that: => FiberId): FiberId = if (isNone) that else self | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/ZIO.scala | 3911 | final def getOrFail[A](v: => Option[A])(implicit trace: Trace): Task[A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/ZIO.scala | 3917 | final def getOrFailUnit[A](v: => Option[A])(implicit trace: Trace): IO[Unit, A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/ZIO.scala | 3924 | final def getOrFailWith[E, A](e: => E)(v: => Option[A])(implicit trace: Trace): IO[E, A] = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/ZIO.scala | 6613 | final def getOrElse[A1 >: A](orElse: Cause[E] => A1): A1 = self match { | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/ZIO.scala | 6618 | final def getOrThrow()(implicit ev: E <:< Throwable, unsafe: Unsafe): A = | CODE |
| LOW⚡ | core/shared/src/main/scala/zio/ZIO.scala | 6621 | final def getOrThrowFiberFailure()(implicit unsafe: Unsafe): A = | CODE |
| LOW | core/shared/src/main/scala/zio/stm/TMap.scala | 185 | def getOrElse(k: K, default: => V): USTM[V] = | CODE |
| LOW | core/shared/src/main/scala/zio/stm/TMap.scala | 192 | def getOrElseSTM[R, E](k: K, default: => ZSTM[R, E, V]): ZSTM[R, E, V] = | CODE |
| LOW | core/shared/src/main/scala/zio/stm/ZSTM.scala | 1689 | def getOrElseUpdate(key: TRef[?], entry: => Entry): Entry = | CODE |
| LOW | core/shared/src/main/scala/zio/stm/TRef.scala | 63 | def getAndSet(a: A): USTM[A] = | CODE |
| LOW | core/shared/src/main/scala/zio/stm/TRef.scala | 74 | def getAndUpdate(f: A => A): USTM[A] = | CODE |
| LOW | core/shared/src/main/scala/zio/stm/TRef.scala | 86 | def getAndUpdateSome(f: PartialFunction[A, A]): USTM[A] = | CODE |
| LOW | core/shared/src/main/scala/zio/stm/TRef.scala | 155 | private[stm] def getOrMakeEntry(journal: Journal): Entry = | CODE |
| LOW | test/shared/src/main/scala/zio/test/TestOutput.scala | 47 | private def getAndRemoveSectionOutput(id: SuiteId) = | CODE |
| LOW | test/shared/src/main/scala/zio/test/TestRandom.scala | 449 | private def getOrElse[A](buffer: Buffer => (Option[A], Buffer))(random: => A)(implicit unsafe: Unsafe): A = | CODE |
| LOW | test/shared/src/main/scala/zio/test/TestRandom.scala | 452 | private def getOrElseChunk[A]( | CODE |
| LOW | …shared/src/main/scala/zio/test/ConcurrentHashMap.scala | 33 | def getOrElseUpdate(key: K, op: => V): V = | CODE |
| LOW | website/plugins/zio-ecosystem-docusaurus/index.js | 174 | function isSidebarItemCategoryConfig(item) { | CODE |
| LOW | website/plugins/zio-ecosystem-docusaurus/index.ts | 186 | function isSidebarItemCategoryConfig(item: SidebarItemConfig): item is SidebarItemCategoryConfig { | CODE |
| LOW | website/src/components/visual-effects/VisualEffect.js | 352 | export function useVisualEffectNotification(effect) { | CODE |
| LOW | website/src/components/visual-effects/VisualEffect.js | 360 | export function useVisualEffectSubscription(effect) { | CODE |
| LOW | …visual-effects/scenarios/DependencyInjectionVisual.jsx | 162 | export default function DependencyInjectionVisual() { | CODE |
| LOW | website/src/theme/DocVersionBanner/index.js | 54 | function LatestVersionSuggestionLabel({versionLabel, to, onClick}) { | CODE |
| LOW | docs/guides/migrate/from-monix.md | 564 | | `atomic.getAndSet(v)` | `ref.getAndSet(v)` | `def getAndSet(a: A): UIO[A]` | CODE |
| LOW | core-tests/shared/src/test/scala/zio/ZLayerSpec.scala | 568 | def getAndIncrement: UIO[Int] = ZIO.succeed(ref.getAndIncrement()) | CODE |
| LOW | core-tests/shared/src/test/scala/zio/ZLayerSpec.scala | 571 | def getAndIncrement: ZIO[Counter, Nothing, Int] = | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/jvm/src/main/scala/zio/internal/RingBuffer.scala | 221 | // or this thread got delayed. We need to resynchronize with | COMMENT |
| LOW | core/jvm/src/main/scala/zio/internal/RingBuffer.scala | 361 | // There may be two distinct cases: | COMMENT |
| LOW | …reams/shared/src/main/scala/zio/stream/ZPipeline.scala | 2621 | encodeStringWith(StandardCharsets.US_ASCII) | COMMENT |
| LOW | …d_docs/version-1.0.18/resources/ecosystem/officials.md | 561 | List(Apple(false), Banana(0.4)).toJsonPretty | COMMENT |
| LOW | …d_docs/version-1.0.18/resources/ecosystem/officials.md | 1461 | // field1 = Field( | COMMENT |
| LOW | …d_docs/version-1.0.18/resources/ecosystem/officials.md | 1481 | // ), | COMMENT |
| LOW | …oned_docs/version-1.0.18/guides/use-test-assertions.md | 61 | } | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 41 | // caseValue = TestCase( | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 61 | COMMENT | |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 81 | // ) | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 101 | // ) | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 121 | // Spec( | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 141 | // caseValue = MultipleCase( | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 181 | What's more, assertions also compose with each other allowing for doing rich diffs not only simple value to value compar | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 221 | ) | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 281 | val suite1 = suite("suite1") ( | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 301 | // ), | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 321 | testM("s2.t3") {assertM(nanoTime)(isGreaterThanEqualTo(0L))} | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 341 | // caseValue = LabeledCase( | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 361 | // ) | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 381 | // test = <function1>, | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 481 | ))) | COMMENT |
| LOW | …e/versioned_docs/version-1.0.18/guides/test_effects.md | 741 | // label = "ConsoleTest", | COMMENT |
| LOW | …/versioned_docs/version-1.0.18/reference/misc/chunk.md | 81 | // 1.5, | COMMENT |
| LOW | …sioned_docs/version-1.0.18/reference/stream/zstream.md | 1181 | // Input: | COMMENT |
| LOW | website/src/components/visual-effects/LayerGraph.js | 1 | // website/src/components/visual-effects/LayerGraph.js | COMMENT |
| LOW | website/src/components/visual-effects/StreamPipeline.js | 1 | // website/src/components/visual-effects/StreamPipeline.js | COMMENT |
| LOW | website/src/components/visual-effects/diParams.js | 1 | // website/src/components/visual-effects/diParams.js | COMMENT |
| LOW | …bsite/src/components/visual-effects/streamingParams.js | 1 | // website/src/components/visual-effects/streamingParams.js | COMMENT |
| LOW | …/components/visual-effects/pipeline/PipelineStages.jsx | 1 | // website/src/components/visual-effects/pipeline/PipelineStages.jsx | COMMENT |
| LOW | …rc/components/visual-effects/layers/LayerGraphView.jsx | 1 | // website/src/components/visual-effects/layers/LayerGraphView.jsx | COMMENT |
| LOW | …ite/src/components/visual-effects/sounds/taskSounds.js | 1 | import * as Tone from 'tone'; | COMMENT |
| LOW | …omponents/visual-effects/scenarios/StreamingVisual.jsx | 21 | // ZStream snippet shown in the Code toggle line for line, exactly like | COMMENT |
| LOW | docs/reference/di/automatic-layer-construction.md | 81 | object MainApp extends ZIOAppDefault { | COMMENT |
| LOW | docs/reference/di/automatic-layer-construction.md | 121 | Cake.live, | COMMENT |
| LOW | docs/reference/stream/zstream/operations.md | 521 | // What is the classroom of Jennifer? A | COMMENT |
| LOW | docs/reference/stream/zchannel/channel-interruption.md | 41 | // 52 | COMMENT |
| LOW | …ervice-pattern/defining-polymorphic-services-in-zio.md | 41 | } | COMMENT |
| LOW | …tests/shared/src/test/scala/zio/stream/ZSinkSpec.scala | 781 | .fail(new Throwable("Sink failed")) | COMMENT |
| LOW | …sts/shared/src/test/scala/zio/stream/ZStreamSpec.scala | 401 | // val test = | COMMENT |
| LOW | …sts/shared/src/test/scala/zio/stream/ZStreamSpec.scala | 421 | // } | COMMENT |
| LOW | …/scala/zio/examples/test/ZLayerInjectExampleSpec.scala | 1 | //package zio.examples.test | COMMENT |
| LOW | …/scala/zio/examples/test/ZLayerInjectExampleSpec.scala | 21 | // assertZIO(exampleZio)(anything) | COMMENT |
| LOW | …ks/src/main/scala/zio/QueueBackPressureBenchmark.scala | 101 | COMMENT | |
| LOW | …arks/src/main/scala/zio/QueueSequentialBenchmark.scala | 81 | } | COMMENT |
| LOW | …/shared/src/test/scala/zio/RuntimeBootstrapTests.scala | 641 | interruptibleAfterRace() | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nfigurable/docs/make-a-zio-application-configurable.md | 37 | ## Step 1: Define the Configuration Data Types (ADTs) | COMMENT |
| LOW | …nfigurable/docs/make-a-zio-application-configurable.md | 45 | ## Step 2: Define the Configuration Descriptor | COMMENT |
| LOW | …nfigurable/docs/make-a-zio-application-configurable.md | 60 | ## Step 3: Accessing Configuration Data using `ZIO.config` | COMMENT |
| LOW | …nfigurable/docs/make-a-zio-application-configurable.md | 210 | ## Step 3: Reading Configuration Data From HOCON Files | COMMENT |
| LOW | …nfigurable/docs/make-a-zio-application-configurable.md | 273 | ## Step 4: Running The Application | COMMENT |
| LOW⚡ | …guides/tutorials/getting-started-threadlocal-bridge.md | 269 | // Step 1: Create a ThreadLocal to store the request ID | COMMENT |
| LOW⚡ | …guides/tutorials/getting-started-threadlocal-bridge.md | 274 | // Step 2: A helper function that reads from the ThreadLocal | COMMENT |
| LOW⚡ | …guides/tutorials/getting-started-threadlocal-bridge.md | 279 | // Step 3: The main example | COMMENT |
| LOW | docs/reference/schedule.md | 62 | #### Step 1: Just a Count | COMMENT |
| LOW | docs/reference/schedule.md | 72 | #### Step 2: Add Timing | COMMENT |
| LOW | docs/reference/schedule.md | 84 | #### Step 3: Generalize the Counter into State, and Add Input | COMMENT |
| LOW | docs/reference/schedule.md | 97 | #### Step 4: Report Something Back | COMMENT |
| LOW | docs/reference/schedule.md | 110 | #### Step 5: Make It Effectful, and Make Time Explicit | COMMENT |
| LOW | docs/reference/schedule.md | 123 | #### Step 6: Refine "a Delay" into "a Set of Valid Windows" | COMMENT |
| LOW | docs/reference/di/motivation.md | 48 | ## Step 1: Inversion of Control | COMMENT |
| LOW | docs/reference/di/motivation.md | 71 | ## Step 2: Decoupling from Implementations | COMMENT |
| LOW | docs/reference/di/motivation.md | 135 | ## Step 3: Binding Interfaces to their Implementations | COMMENT |
| LOW | docs/reference/di/motivation.md | 177 | ## Step 4: Effectful Constructors | COMMENT |
| LOW | docs/reference/di/motivation.md | 308 | ## Step 5: Using ZIO Environment To Declare Dependencies | COMMENT |
| LOW | docs/reference/di/motivation.md | 342 | ## Step 6: Automatic Dependency Graph Generation | COMMENT |
| LOW | docs/reference/di/dependency-injection-in-zio.md | 30 | ### Step 1: Accessing Services From The ZIO Environment | COMMENT |
| LOW | docs/reference/di/dependency-injection-in-zio.md | 72 | ### Step 2: Writing Application Logic Using Services | COMMENT |
| LOW | docs/reference/di/dependency-injection-in-zio.md | 94 | ### Step 3: Building The Dependency Graph (Optional) | COMMENT |
| LOW | docs/reference/di/dependency-injection-in-zio.md | 136 | ### Step 4: Providing Dependencies to the ZIO Environment | COMMENT |
| LOW⚡ | docs/reference/state-management/threadlocal-bridge.md | 124 | // Step 1: Create a Java ThreadLocal to hold the request ID | COMMENT |
| LOW⚡ | docs/reference/state-management/threadlocal-bridge.md | 129 | // Step 2: Define a logging function that reads from the ThreadLocal | COMMENT |
| LOW⚡ | docs/reference/state-management/threadlocal-bridge.md | 136 | // Step 3: Set up the bridge in a scoped context | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …hared/src/test/scala/zio/test/SmartAssertionSpec.scala | 74 | assertTrue(company.users.head.posts.head.publishDate.contains(LocalDateTime.MAX)) | CODE |
| CRITICAL | …hared/src/test/scala/zio/test/SmartAssertionSpec.scala | 115 | assertTrue(company.users.head.posts.head.publishDate.contains(LocalDateTime.MAX)) | CODE |
| CRITICAL | docs/guides/migrate/from-akka.md | 1127 | com.devsisters.shardcake.Server.run.provide( | CODE |
| CRITICAL | benchmarks/src/main/scala/zio/GenBenchmarks.scala | 97 | nyaya.gen.Gen.double.list.sample() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …sts/shared/src/test/scala/zio/test/AssertionSpec.scala | 117 | val probe: Person = Person("John", 30, Address("New York", "123 Main St")) | CODE |
| LOW | …sts/shared/src/test/scala/zio/test/AssertionSpec.scala | 124 | errorString == "Person.address.city : expected 'San Francisco' got 'New York'\nPerson.address.street : expecte | CODE |
| LOW | scalafix/input/src/main/scala/fix/ZStreamSpec.scala | 3190 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | scalafix/input/src/main/scala/fix/ZStreamSpec.scala | 3203 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | scalafix/input/src/main/scala/fix/ZStreamSpec.scala | 3216 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | scalafix/input/src/main/scala/fix/ZStreamSpec.scala | 3224 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | scalafix/output/src/main/scala/fix/ZStreamSpec.scala | 3189 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | scalafix/output/src/main/scala/fix/ZStreamSpec.scala | 3202 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | scalafix/output/src/main/scala/fix/ZStreamSpec.scala | 3215 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | scalafix/output/src/main/scala/fix/ZStreamSpec.scala | 3223 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | docs/guides/tutorials/encode-and-decode-json-data.md | 76 | assertTrue(decoded == Right("John Doe")) | CODE |
| LOW | …sts/shared/src/test/scala/zio/stream/ZStreamSpec.scala | 4972 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | …sts/shared/src/test/scala/zio/stream/ZStreamSpec.scala | 4986 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | …sts/shared/src/test/scala/zio/stream/ZStreamSpec.scala | 5000 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | …sts/shared/src/test/scala/zio/stream/ZStreamSpec.scala | 5010 | .fromChunk(Chunk.fromArray("Lorem ipsum".toArray)) | CODE |
| LOW | core-tests/shared/src/test/scala/zio/ZLayerSpec.scala | 582 | person <- (ZLayer.succeed("Jane Doe") ++ ZLayer.succeed(42) >>> layer).build | CODE |
| LOW | core-tests/shared/src/test/scala/zio/ZLayerSpec.scala | 583 | } yield assertTrue(person == ZEnvironment(Person("Jane Doe", 42))) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …reference/test/property-testing/how-generators-work.md | 240 | To create more samples, we can use `Gen#runCollectN`, which repeatedly runs the generator as much as we need. In this ex | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …lia/src/main/scala-2/zio/test/magnolia/DeriveGen.scala | 29 | * types made up of standard types. For example, here is how you can | COMMENT |