Scala 2 compiler and standard library. Scala 2 bugs at https://github.com/scala/bug; Scala 3 at https://github.com/scala/scala3
This report summarizes scanner evidence for scala/scala, a Scala project with 14,533 GitHub stars. SynthScan examined 676,868 lines of code across 10144 source files, recording 667 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 2.0 (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? 570 finding(s).
Are imports declared and package/API names verified? 48 finding(s).
Are wrappers, guards, and repeated structures necessary? 126 finding(s).
Which changes need focused human review? 667 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 667 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 |
|---|---|---|---|---|
| CRITICAL | test/scaladoc/resources/simulacrum_1.scala | 8 | if (annottees.head.tree.getClass.getName.contains("DocDef")) c.abort(c.enclosingPosition, "annottee is a DocDef") | CODE |
| CRITICAL | test/scaladoc/run/t11424.scala | 22 | obj.comment.get.body.blocks.foreach({ | STRING |
| CRITICAL | test/scaladoc/run/implicits-var-exp.scala | 51 | assert(foo.comment.get.body.toString.contains("foo returns a collection"), "\"" + foo.comment.get.body.toString + "\ | STRING |
| CRITICAL | test/scaladoc/run/implicits-var-exp.scala | 54 | assert(bar.comment.get.body.toString.contains("bar returns a result"), "\"" + bar.comment.get.body.toString + "\".co | STRING |
| CRITICAL⚡ | test/junit/scala/tools/nsc/util/StackTraceTest.scala | 87 | at scala.tools.nsc.util.StackTraceTest.repressed(StackTraceTest.scala:56) | CODE |
| CRITICAL⚡ | test/junit/scala/tools/nsc/util/StackTraceTest.scala | 90 | at scala.tools.nsc.util.StackTraceTest.sample(StackTraceTest.scala:29) | CODE |
| CRITICAL⚡ | test/junit/scala/tools/nsc/util/StackTraceTest.scala | 91 | at scala.tools.nsc.util.StackTraceTest.repressed(StackTraceTest.scala:54) | CODE |
| CRITICAL | …/scala/tools/nsc/async/AnnotationDrivenAsyncTest.scala | 449 | |val awaitable$async: scala.tools.nsc.async.CustomFuture = scala.tools.nsc.async.CustomFuture._successful(sc | STRING |
| CRITICAL | …/scala/tools/nsc/async/AnnotationDrivenAsyncTest.scala | 459 | |val awaitable$async: scala.tools.nsc.async.CustomFuture = scala.tools.nsc.async.CustomFuture._successful(sc | STRING |
| CRITICAL | …cala/tools/nsc/backend/jvm/OptimizedBytecodeTest.scala | 187 | // at scala.tools.nsc.symtab.classfile.ClassfileParser.classNameToSymbol(ClassfileParser.scala:489) | COMMENT |
| CRITICAL | …unit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala | 26 | val inlineOnly = global.settings.optChoices.inlineFrom.expandsTo.map(c => s"-${c.name}").mkString("-opt:inline:** -opt | CODE |
| CRITICAL | …la/tools/nsc/backend/jvm/opt/UnreachableCodeTest.scala | 27 | dceCompiler.global.genBCode.postProcessor.localOpt.removeUnreachableCodeImpl(method, "C") | CODE |
| CRITICAL | …/tools/nsc/backend/jvm/opt/BoxUnboxAndInlineTest.scala | 85 | val changed = compiler.global.genBCode.postProcessor.localOpt.boxUnbox.boxUnboxElimination(method, "p1.Owner") | CODE |
| CRITICAL | test/files/pos/t6084.scala | 12 | // at scala.tools.nsc.ast.TreeGen.mkCast(TreeGen.scala:252) | COMMENT |
| CRITICAL | test/files/pos/t8855b.scala | 16 | at scala.tools.nsc.typechecker.Contexts.registerImport(Contexts.scala:93) | CODE |
| CRITICAL | test/files/run/mixin-signatures.scala | 83 | // scala.tools.nsc.symtab.Flags.flagsToString(flags) | COMMENT |
| CRITICAL | test/files/run/substSymRefinementOwner.scala | 17 | |g.tpe.resultType.typeSymbol.ownerChain.take(4) | STRING |
| CRITICAL | test/files/run/t12705.scala | 16 | at scala.reflect.internal.util.AbstractFileClassLoader.findClass(AbstractFileClassLoader.scala:77) | CODE |
| CRITICAL | test/files/run/t4415.scala | 6 | * at com.intellij.rt.execution.application.AppMain.main(AppMain.java)] | COMMENT |
| CRITICAL | test/files/run/reflection-implicit.scala | 12 | val decls = typeOf[C].typeSymbol.info.decls.sorted.toList.filter(sym => !sym.isTerm || (sym.isMethod && !sym.asMethod. | CODE |
| CRITICAL | …les/run/indy-via-macro-with-dynamic-args/macro_1.scala | 30 | q"_root_.java.util.regex.Pattern.compile($pat).matcher($text)" | CODE |
| CRITICAL | test/files/run/indy-via-macro/macro_1.scala | 29 | q"_root_.java.util.regex.Pattern.compile($s)" | CODE |
| CRITICAL | test/files/run/t10454-1/Macros_1.scala | 15 | tT.tpe.typeSymbol.asClass.knownDirectSubclasses.map(_.toString).toList | CODE |
| CRITICAL | test/files/run/t10454-2/Macros_1.scala | 15 | tT.tpe.typeSymbol.asClass.knownDirectSubclasses.map(_.toString).toList | CODE |
| CRITICAL | src/partest/scala/tools/partest/package.scala | 76 | def withEnclosing: String = f.toPath.iterator.asScala.toList.takeRight(2).mkString("/") | CODE |
| CRITICAL | …scala/tools/partest/async/CompletableFutureAwait.scala | 35 | final class $name extends _root_.scala.tools.partest.async.CompletableFutureStateMachine($executor) { | CODE |
| CRITICAL | …flect/scala/reflect/internal/pickling/ByteCodecs.scala | 226 | * scala> val enc = scala.reflect.internal.pickling.ByteCodecs.encode(Array(1,2,3)) | COMMENT |
| CRITICAL | …flect/scala/reflect/internal/pickling/ByteCodecs.scala | 229 | * scala> scala.reflect.internal.pickling.ByteCodecs.decode(enc) | COMMENT |
| CRITICAL | src/reflect/scala/reflect/internal/util/Origins.scala | 39 | 6860 scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:304) | CODE |
| CRITICAL | src/library/scala/collection/BitSet.scala | 133 | val st = scala.collection.convert.impl.BitSetStepper.from(this) | CODE |
| CRITICAL | src/library/scala/collection/concurrent/TrieMap.scala | 547 | java.util.concurrent.ThreadLocalRandom.current.nextInt(0, array.length) | CODE |
| CRITICAL | src/testkit/scala/tools/testkit/BytecodeTesting.scala | 65 | def compiledClassesFromCache = global.genBCode.postProcessor.byteCodeRepository.compilingClasses.valuesIterator.map(_. | CODE |
| CRITICAL | src/testkit/scala/tools/testkit/async/Async.scala | 36 | final class $name extends _root_.scala.tools.testkit.async.AsyncAsMacroStateMachine($executionContext) { | CODE |
| CRITICAL | …ols/scalap/scalax/rules/scalasig/ScalaSigPrinter.scala | 125 | if (c.name == "<local child>" /*scala.tools.nsc.symtab.StdNames.LOCAL_CHILD.toString()*/ ) { | CODE |
| CRITICAL | src/compiler/scala/tools/reflect/ToolBoxFactory.scala | 66 | newTermName("__wrapper$" + wrapCount + "$" + java.util.UUID.randomUUID.toString.replace("-", "")) | CODE |
| CRITICAL | src/compiler/scala/tools/nsc/PipelineMain.scala | 365 | def outputDir: Path = command.settings.outputDirs.getSingleOutput.get.file.toPath.toAbsolutePath.normalize() | CODE |
| CRITICAL | src/compiler/scala/tools/nsc/PipelineMain.scala | 410 | command.settings.outputDirs.getSingleOutput.get.file.mkdirs() | CODE |
| CRITICAL | …piler/scala/tools/nsc/classpath/ClassPathFactory.scala | 53 | if (useManifestClassPath) scala.tools.nsc.util.ClassPath.manifests.map(url => newClassPath(AbstractFile getResources | CODE |
| CRITICAL | src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala | 671 | if (isNested) info.get.nestedInfo.force.get.enclosingClass.enclosingNestedClassesChain.map(this :: _) | CODE |
| CRITICAL | …ler/scala/tools/nsc/backend/jvm/BCodeSkelBuilder.scala | 670 | if (settings.isDebug) "(found: " + methSymbol.owner.info.decls.toList.mkString(", ") + ")" | CODE |
| CRITICAL | …cala/tools/nsc/backend/jvm/opt/InlinerHeuristics.scala | 294 | val cp = com.google.common.reflect.ClassPath.from(l) | CODE |
| CRITICAL | …mpiler/scala/tools/nsc/backend/jvm/opt/CallGraph.scala | 320 | calleeDeclarationClassBType.info.orThrow.inlineInfo.methodInfos.get(methodSignature) match { | CODE |
| CRITICAL | …mpiler/scala/tools/nsc/backend/jvm/opt/CallGraph.scala | 351 | val warning = calleeDeclarationClassBType.info.orThrow.inlineInfo.warning.map( | CODE |
| CRITICAL | …compiler/scala/tools/nsc/backend/jvm/opt/Inliner.scala | 652 | methodNode.instructions.iterator.asScala.toList.foreach(methodNode.instructions.remove) | CODE |
| CRITICAL | src/compiler/scala/tools/nsc/transform/UnCurry.scala | 843 | val isRepeated = enteringUncurry(dd.symbol.info.paramss.flatten.map(sym => definitions.isRepeatedParamType(sym.tpe | CODE |
| CRITICAL | …c/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 1769 | !sym.tpe.finalResultType.typeSymbol.primaryConstructor.isLessAccessibleThan(sym) | CODE |
| CRITICAL | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2398 | i.symbol.primaryConstructor.paramss.headOption.getOrElse(Nil).zip(i.args).foreach { | CODE |
| CRITICAL | …rontend/scala/tools/nsc/interpreter/jline/Reader.scala | 181 | try scala.reflect.internal.util.OwnerOnlyChmod.chmodFileOrCreateEmpty(p) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/macro-annot/pos/companion-symbol-of/A.scala | 1 | // upd. oops, this is was a neg test in scala/scala, so we can't put it here :) | COMMENT |
| LOW | test/macro-annot/pos/companion-symbol-of/A.scala | 21 | // // field before it is set. | COMMENT |
| LOW | test/macro-annot/pos/companion-symbol-of/A.scala | 41 | // F.hof(() => x) | COMMENT |
| LOW | test/macro-annot/pos/companion-symbol-of/A.scala | 61 | // def x = "".toString | COMMENT |
| LOW | test/macro-annot/pos/companion-symbol-of/A.scala | 81 | // }) | COMMENT |
| LOW | test/macro-annot/pos/companion-symbol-of/A.scala | 101 | // } | COMMENT |
| LOW | test/macro-annot/pos/companion-symbol-of/A.scala | 121 | // val early = {def x = "".toString | COMMENT |
| LOW | test/macro-annot/run/kase/KasePlaceboObject_2.scala | 21 | COMMENT | |
| LOW | test/macro-annot/run/kase/KaseIdentityObject_2.scala | 21 | COMMENT | |
| LOW | test/macro-annot/run/kase/KaseObject_2.scala | 21 | // @kase object KaseObjectPreMemberPrecomp | COMMENT |
| LOW | test/macro-annot/run/repl/repl_2.scala | 21 | // assertEquals(repl(""" | COMMENT |
| LOW | test/macro-annot/run/repl/repl_2.scala | 41 | // val printout = repl(""" | COMMENT |
| LOW | test/macro-annot/run/repl/repl_2.scala | 61 | // | } | COMMENT |
| LOW | test/junit/scala/collection/BuildFromTest.scala | 201 | // Check that we don't get an implicit divergence in a futile part of the search tree: | COMMENT |
| LOW | test/junit/scala/collection/BuildFromTest.scala | 221 | // | COMMENT |
| LOW | test/junit/scala/collection/NewBuilderTest.scala | 101 | // points to an inherited `GenericCompanion`, not the actual companion object). Therefore, the | COMMENT |
| LOW | test/junit/scala/collection/NewBuilderTest.scala | 121 | //test[scm.BitSet ]((scm.BitSet(1): sc.GenTraversable[Int]).map(x => x)) | COMMENT |
| LOW | test/junit/scala/collection/NewBuilderTest.scala | 141 | //test[scm.SortedMap[_, _] ]((scm.SortedMap(1 -> 1): sc.GenMap[Int, Int]).map(x => x)) | COMMENT |
| LOW | …/junit/scala/tools/nsc/backend/jvm/IndySammyTest.scala | 61 | // val cls = compileClasses("trait Special[@specialized A] { def apply(a: A): A}" ) | COMMENT |
| LOW | …/junit/scala/tools/nsc/backend/jvm/IndySammyTest.scala | 121 | // def lam = (x => new VC(x.asInstanceOf[Int])): FunAny_VC | COMMENT |
| LOW | …unit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala | 241 | val List(fIns, gIns, hIns) = methods.map(instructionsFromMethod(_).dropNonOp) | COMMENT |
| LOW | …unit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala | 561 | // def g = f // resolved to T2a.f | COMMENT |
| LOW | …unit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala | 1981 | // - withFilter: probably nothing can be done here | COMMENT |
| LOW | …la/tools/nsc/backend/jvm/opt/UnreachableCodeTest.scala | 121 | // GenBCode puts the last IRETURN into a new basic block: it emits a label before the second | COMMENT |
| LOW | …ools/nsc/backend/jvm/opt/BTypesFromClassfileTest.scala | 61 | // are actually created by looking at the classfile members, not the symbol's. InlineInfos are only | COMMENT |
| LOW | test/async/jvm/toughtype.scala | 141 | // | COMMENT |
| LOW | test/async/jvm/anf.scala | 401 | // | import language.implicitConversions | COMMENT |
| LOW | …lacheck/scala/tools/nsc/scaladoc/HtmlFactoryTest.scala | 201 | // property("Trac #484 - refinements and existentials") = { | COMMENT |
| LOW | test/files/neg/t5189b.scala | 41 | class Wrapped[W](var cell: W) // must be invariant (to trigger the bug) | COMMENT |
| LOW | test/files/neg/t5189b.scala | 61 | // case class Span[K <: Ordered[K]](low: Option[K], high: Option[K]) extends Function1[K, Boolean] { | COMMENT |
| LOW | test/files/neg/equiv-migration.scala | 1 | //> using options -Werror -Xmigration | COMMENT |
| LOW | test/files/neg/t8372.scala | 1 | class t8372 { | COMMENT |
| LOW | test/files/neg/predef-masking.scala | 1 | // Testing predef masking | COMMENT |
| LOW | test/files/neg/t10545.scala | 21 | COMMENT | |
| LOW | test/files/neg/t11952.scala | 1 | //> using options -Werror -Xlint -Xmaxwarns 0 | COMMENT |
| LOW | test/files/neg/t5762.scala | 1 | //> using options -Xfatal-warnings | COMMENT |
| LOW | test/files/neg/tcpoly_ticket2101.scala | 1 | class T[A[Y] <: T[A, B], B] | COMMENT |
| LOW | test/files/neg/tcpoly_ticket2101.scala | 21 | // case (PolyType(tparams1, res1), PolyType(tparams2, res2)) => println("<:<PT: "+((tparams1, res1), (tparams2, res2))) | COMMENT |
| LOW | test/files/neg/sip23-widen.scala | 61 | //f13: 4 | COMMENT |
| LOW | test/files/neg/t6771b.scala | 1 | // Currently, the pattern matcher widens the type of the | COMMENT |
| LOW | test/files/neg/t7214neg.scala | 1 | // pattern matcher crashes here trying to synthesize an unneeded outer test. | COMMENT |
| LOW | test/files/neg/early-type-defs.scala | 1 | // | COMMENT |
| LOW | test/files/neg/t0764b.scala | 1 | // see neg/t0764 why this should probably be a pos/ test -- alas something's wrong with existential subtyping (?) | COMMENT |
| LOW | test/files/neg/t3346c.scala | 61 | // https://github.com/scala/bug/issues/3346 | COMMENT |
| LOW | test/files/neg/t2509-7b.scala | 21 | COMMENT | |
| LOW | test/files/neg/t7622-missing-required.scala | 1 | //> using options -Xplugin-require:special-plugin | COMMENT |
| LOW | test/files/neg/literate_existentials.scala | 1 | COMMENT | |
| LOW | test/files/neg/literate_existentials.scala | 21 | // Since we are not a formal substitution system, we will actually be using | COMMENT |
| LOW | test/files/neg/literate_existentials.scala | 41 | // | COMMENT |
| LOW | test/files/neg/literate_existentials.scala | 61 | // which means (under our mappings): | COMMENT |
| LOW | test/files/neg/literate_existentials.scala | 81 | // | COMMENT |
| LOW | test/files/neg/literate_existentials.scala | 101 | // Now, let's do a more complicated one: | COMMENT |
| LOW | test/files/neg/literate_existentials.scala | 121 | // V2 <: List[V1] | COMMENT |
| LOW | test/files/neg/literate_existentials.scala | 141 | // Which simplify to: | COMMENT |
| LOW | test/files/neg/literate_existentials.scala | 161 | ] | COMMENT |
| LOW | test/files/neg/literate_existentials.scala | 181 | // | COMMENT |
| LOW | test/files/neg/literate_existentials.scala | 201 | // L1 := Nothing | COMMENT |
| LOW | test/files/neg/t8430.scala | 21 | val f4 = (tree: Tree) => tree match {case LetL(CharLit) => ??? } | COMMENT |
| LOW | test/files/neg/deprecated-options.scala | 1 | // | COMMENT |
| LOW | test/files/neg/t12134/sample_2.scala | 1 | //> using options -Xplugin:. -Xplugin-require:unplugged -d testy.jar | COMMENT |
| 402 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/junit/scala/tools/nsc/DeterminismTest.scala | 0 | )} } new $name().start().asinstanceof[${c.macroapplication.tpe}] | STRING |
| HIGH | …scala/tools/partest/async/CompletableFutureAwait.scala | 0 | )} } new $name().start().asinstanceof[${c.macroapplication.tpe}] | STRING |
| HIGH | src/partest/scala/tools/partest/async/OutputAwait.scala | 0 | )} } new $name().start().asinstanceof[${c.macroapplication.tpe}] | STRING |
| HIGH | src/partest/scala/tools/partest/async/OptionDsl.scala | 0 | )} } new $name().start().asinstanceof[${c.macroapplication.tpe}] | STRING |
| HIGH | src/testkit/scala/tools/testkit/async/Async.scala | 0 | )} } new $name().start().asinstanceof[${c.macroapplication.tpe}] | STRING |
| HIGH | …unit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala | 0 | |public class a { | public static final int bar() { return 100; } | public final int baz() { return 100; } |} | STRING |
| HIGH | …t/scala/tools/nsc/backend/jvm/opt/InlineInfoTest.scala | 0 | |public class a { | public static final int bar() { return 100; } | public final int baz() { return 100; } |} | STRING |
| HIGH | …cala/tools/nsc/backend/jvm/opt/InlineWarningTest.scala | 0 | |public class a { | public static final int bar() { return 100; } | public final int baz() { return 100; } |} | STRING |
| HIGH | …s/neg/macro-bundle-whitebox-use-refined/Macros_1.scala | 0 | class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x) | STRING |
| HIGH | …files/neg/macro-bundle-whitebox-use-raw/Macros_1.scala | 0 | class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x) | STRING |
| HIGH | test/files/neg/macro-blackbox-extractor/Macros_1.scala | 0 | class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x) | STRING |
| HIGH | …s/run/macro-bundle-whitebox-use-refined/Macros_1.scala | 0 | class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x) | STRING |
| HIGH | …files/run/macro-bundle-whitebox-use-raw/Macros_1.scala | 0 | class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x) | STRING |
| HIGH | test/files/run/macro-whitebox-extractor/Macros_1.scala | 0 | class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x) | STRING |
| HIGH | test/files/run/t5903d/Macros_1.scala | 0 | class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x) | STRING |
| HIGH | test/files/neg/t5903e/Macros_1.scala | 0 | class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x) | STRING |
| HIGH | test/files/neg/t5903d/Macros_1.scala | 0 | class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x) | STRING |
| HIGH | test/files/neg/macro-annot-unused-param/Macros_1.scala | 0 | object x { def f: int => string = { x => "hello" } } | STRING |
| HIGH | test/files/pos/macro-annot-unused-param/Macros_1.scala | 0 | object x { def f: int => string = { x => "hello" } } | STRING |
| HIGH | …st/files/pos/macro-annot-unused-param-b/Macros_1.scala | 0 | object x { def f: int => string = { x => "hello" } } | STRING |
| HIGH | test/files/neg/t12647/Macro_1.scala | 0 | new result { def value = "was this the answer you sought?" } | STRING |
| HIGH | test/files/pos/t12647/Macro_1.scala | 0 | new result { def value = "was this the answer you sought?" } | STRING |
| HIGH | test/files/pos/t12647b/Macro_1.scala | 0 | new result { def value = "was this the answer you sought?" } | STRING |
| HIGH | test/files/run/StubErrorReturnTypeFunction.scala | 0 | package stuberrors abstract class c extends app { val b = new b // use other symbols in the meanwhile val aa = new aa va | STRING |
| HIGH | test/files/run/StubErrorReturnTypeFunction2.scala | 0 | package stuberrors abstract class c extends app { val b = new b // use other symbols in the meanwhile val aa = new aa va | STRING |
| HIGH | test/files/run/StubErrorReturnTypePolyFunction.scala | 0 | package stuberrors abstract class c extends app { val b = new b // use other symbols in the meanwhile val aa = new aa va | STRING |
| HIGH | src/library/scala/collection/SortedMap.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/View.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/LinearSeq.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/SortedSet.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/SeqMap.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/SeqView.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/MapView.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/Seq.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/IndexedSeqView.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/BitSet.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/Map.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/IndexedSeq.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/Set.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/mutable/Buffer.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/mutable/Stack.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/mutable/WeakHashMap.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/mutable/HashMap.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | …c/library/scala/collection/mutable/LinkedHashSet.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/mutable/ListBuffer.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | …c/library/scala/collection/mutable/LinkedHashMap.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/mutable/ArrayBuffer.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/mutable/Queue.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| HIGH | src/library/scala/collection/mutable/ArrayDeque.scala | 0 | cat=deprecation&origin=scala\.collection\.iterable\.stringprefix | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/files/run/stream-stack-overflow-filter-map.scala | 35 | //Complete test case for withFilter + map/flatMap, as requested by @axel22. | COMMENT |
| HIGH | project/GenerateAnyVals.scala | 293 | // This auto-generated code can be modified in "project/GenerateAnyVals.scala". | COMMENT |
| HIGH | src/library/scala/Long.scala | 14 | // This auto-generated code can be modified in "project/GenerateAnyVals.scala". | COMMENT |
| HIGH | src/library/scala/Char.scala | 14 | // This auto-generated code can be modified in "project/GenerateAnyVals.scala". | COMMENT |
| HIGH | src/library/scala/Unit.scala | 14 | // This auto-generated code can be modified in "project/GenerateAnyVals.scala". | COMMENT |
| HIGH | src/library/scala/Int.scala | 14 | // This auto-generated code can be modified in "project/GenerateAnyVals.scala". | COMMENT |
| HIGH | src/library/scala/Byte.scala | 14 | // This auto-generated code can be modified in "project/GenerateAnyVals.scala". | COMMENT |
| HIGH | src/library/scala/Double.scala | 14 | // This auto-generated code can be modified in "project/GenerateAnyVals.scala". | COMMENT |
| HIGH | src/library/scala/Short.scala | 14 | // This auto-generated code can be modified in "project/GenerateAnyVals.scala". | COMMENT |
| HIGH | src/library/scala/Boolean.scala | 14 | // This auto-generated code can be modified in "project/GenerateAnyVals.scala". | COMMENT |
| HIGH | src/library/scala/Float.scala | 14 | // This auto-generated code can be modified in "project/GenerateAnyVals.scala". | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/junit/scala/collection/IteratorTest.scala | 854 | def getOrBail: C = seq1.get match { | CODE |
| LOW | test/junit/scala/collection/mutable/HashMapTest.scala | 13 | def getOrElseUpdate_mutationInCallback(): Unit = { | CODE |
| LOW⚡ | test/junit/scala/collection/mutable/HashMapTest.scala | 25 | def getOrElseUpdate_evalOnce(): Unit = { | CODE |
| LOW⚡ | test/junit/scala/collection/mutable/HashMapTest.scala | 33 | def getOrElseUpdate_noEval(): Unit = { | CODE |
| LOW⚡ | test/junit/scala/collection/mutable/HashMapTest.scala | 39 | def getOrElseUpdate_keyIdempotence(): Unit = { | CODE |
| LOW | …ala/collection/mutable/CollisionProofHashMapTest.scala | 13 | def getOrElseUpdate_mutationInCallback(): Unit = { | CODE |
| LOW⚡ | …ala/collection/mutable/CollisionProofHashMapTest.scala | 25 | def getOrElseUpdate_evalOnce(): Unit = { | CODE |
| LOW⚡ | …ala/collection/mutable/CollisionProofHashMapTest.scala | 33 | def getOrElseUpdate_noEval(): Unit = { | CODE |
| LOW⚡ | …ala/collection/mutable/CollisionProofHashMapTest.scala | 39 | def getOrElseUpdate_keyIdempotence(): Unit = { | CODE |
| LOW | test/junit/scala/collection/immutable/StreamTest.scala | 110 | def filter_map_properly_lazy_in_tail(): Unit = { | CODE |
| LOW | …a/tools/nsc/backend/jvm/opt/ClosureOptimizerTest.scala | 24 | | @inline final def getOrElse[T >: C](f: => T) = if (isEmpty) f else this | STRING |
| LOW | …a/tools/nsc/backend/jvm/opt/ClosureOptimizerTest.scala | 38 | | @inline final def getOrElse[T >: C](f: => T) = if (isEmpty) f else this | STRING |
| LOW | test/junit/scala/util/TryTest.scala | 45 | @Test def getOrElse(): Unit = { | CODE |
| LOW | …cala/scala/collection/mutable/AnyRefMapBenchmark.scala | 54 | @Benchmark def getOrElse(bh: Blackhole): Unit = { | CODE |
| LOW | …cala/scala/collection/mutable/AnyRefMapBenchmark.scala | 65 | @Benchmark def getOrElseUpdate(bh: Blackhole): Unit = { | CODE |
| LOW | …/scala/scala/collection/mutable/HashMapBenchmark.scala | 66 | @Benchmark def getOrElse(bh: Blackhole): Unit = { | CODE |
| LOW | …/scala/scala/collection/mutable/HashMapBenchmark.scala | 77 | @Benchmark def getOrElseUpdate(bh: Blackhole): Unit = { | CODE |
| LOW | …cala/scala/collection/immutable/HashMapBenchmark.scala | 73 | @Benchmark def getOrElse(bh: Blackhole): Unit = { | CODE |
| LOW | …un/macro-typecheck-macrosdisabled/Impls_Macros_1.scala | 16 | def impl_with_macros_disabled(c: Context) = { | CODE |
| LOW | …n/macro-typecheck-macrosdisabled2/Impls_Macros_1.scala | 16 | def impl_with_macros_disabled(c: Context) = { | CODE |
| LOW | …macro-typecheck-implicitsdisabled/Impls_Macros_1.scala | 5 | def impl_with_implicits_enabled(c: Context) = { | CODE |
| LOW | …macro-typecheck-implicitsdisabled/Impls_Macros_1.scala | 15 | def impl_with_implicits_disabled(c: Context) = { | CODE |
| LOW | test/files/presentation/t9238.scala | 15 | def getOrThrow[T](resp: Response[T]) = resp.get match { | CODE |
| LOW | src/partest/scala/tools/partest/nest/CommandLine.scala | 100 | def getOrElse(arg: String, orElse: => String) = if (isSet(arg)) apply(arg) else orElse | CODE |
| LOW | src/sbt-bridge/scala/tools/xsbt/ExtractAPI.scala | 242 | private def getAndResetBuffer(): String = { | CODE |
| LOW | src/reflect/scala/reflect/internal/StdAttachments.scala | 29 | def getAndRemoveAttachment[T: ClassTag]: Option[T] = { | CODE |
| LOW | src/library/scala/Option.scala | 200 | @inline final def getOrElse[B >: A](default: => B): B = | CODE |
| LOW | src/library/scala/collection/Map.scala | 160 | def getOrElse[V1 >: V](key: K, default: => V1): V1 = get(key) match { | CODE |
| LOW | src/library/scala/collection/mutable/LongMap.scala | 160 | override def getOrElse[V1 >: V](key: Long, default: => V1): V1 = { | CODE |
| LOW | src/library/scala/collection/mutable/LongMap.scala | 172 | override def getOrElseUpdate(key: Long, defaultValue: => V): V = { | CODE |
| LOW | src/library/scala/collection/mutable/LongMap.scala | 223 | def getOrNull(key: Long): V = { | CODE |
| LOW | src/library/scala/collection/mutable/HashMap.scala | 444 | override def getOrElse[V1 >: V](key: K, default: => V1): V1 = { | CODE |
| LOW | src/library/scala/collection/mutable/HashMap.scala | 455 | override def getOrElseUpdate(key: K, defaultValue: => V): V = { | CODE |
| LOW | …c/library/scala/collection/mutable/LinkedHashMap.scala | 118 | override def getOrElse[V1 >: V](key: K, default: => V1): V1 = { | CODE |
| LOW | …c/library/scala/collection/mutable/LinkedHashMap.scala | 129 | override def getOrElseUpdate(key: K, defaultValue: => V): V = { | CODE |
| LOW | …y/scala/collection/mutable/CollisionProofHashMap.scala | 90 | override def getOrElse[V1 >: V](key: K, default: => V1): V1 = { | CODE |
| LOW | …y/scala/collection/mutable/CollisionProofHashMap.scala | 388 | override def getOrElseUpdate(key: K, defaultValue: => V): V = { | CODE |
| LOW | src/library/scala/collection/mutable/AnyRefMap.scala | 156 | override def getOrElse[V1 >: V](key: K, default: => V1): V1 = { | CODE |
| LOW | src/library/scala/collection/mutable/AnyRefMap.scala | 161 | override def getOrElseUpdate(key: K, defaultValue: => V): V = { | CODE |
| LOW | src/library/scala/collection/mutable/AnyRefMap.scala | 200 | def getOrNull(key: K): V = { | CODE |
| LOW | src/library/scala/collection/mutable/Map.scala | 143 | def getOrElseUpdate(key: K, @deprecatedName("op", since="2.13.13") defaultValue: => V): V = | CODE |
| LOW | src/library/scala/collection/immutable/LongMap.scala | 294 | final override def getOrElse[S >: T](key: Long, default: => S): S = this match { | CODE |
| LOW | src/library/scala/collection/immutable/SeqMap.scala | 70 | override def getOrElse [V1](key: Any, default: => V1): V1 = default | CODE |
| LOW | src/library/scala/collection/immutable/SeqMap.scala | 84 | override def getOrElse [V1 >: V](key: K, default: => V1): V1 = | CODE |
| LOW | src/library/scala/collection/immutable/SeqMap.scala | 113 | override def getOrElse [V1 >: V](key: K, default: => V1): V1 = | CODE |
| LOW | src/library/scala/collection/immutable/SeqMap.scala | 150 | override def getOrElse [V1 >: V](key: K, default: => V1): V1 = | CODE |
| LOW | src/library/scala/collection/immutable/SeqMap.scala | 193 | override def getOrElse [V1 >: V](key: K, default: => V1): V1 = | CODE |
| LOW | src/library/scala/collection/immutable/HashMap.scala | 141 | override def getOrElse[V1 >: V](key: K, default: => V1): V1 = { | CODE |
| LOW | src/library/scala/collection/immutable/HashMap.scala | 548 | def getOrElse[V1 >: V](key: K, originalHash: Int, hash: Int, shift: Int, f: => V1): V1 | CODE |
| LOW | src/library/scala/collection/immutable/HashMap.scala | 710 | def getOrElse[V1 >: V](key: K, originalHash: Int, keyHash: Int, shift: Int, f: => V1): V1 = { | CODE |
| LOW | src/library/scala/collection/immutable/HashMap.scala | 1890 | def getOrElse[V1 >: V](key: K, originalHash: Int, hash: Int, shift: Int, f: => V1): V1 = { | CODE |
| LOW | src/library/scala/collection/immutable/HashMap.scala | 2238 | private[immutable] def getOrElse[V0 >: V](key: K, value: V0): V0 = | CODE |
| LOW | …/library/scala/collection/immutable/LazyListBase.scala | 41 | def getAndSet(ll: LazyListBase[_], value: AnyRef): AnyRef = u.getAndSet(ll, value) | CODE |
| LOW | src/library/scala/collection/immutable/IntMap.scala | 299 | final override def getOrElse[S >: T](key: Int, default: => S): S = this match { | CODE |
| LOW | src/library/scala/collection/immutable/TreeMap.scala | 129 | override def getOrElse[V1 >: V](key: K, default: => V1): V1 = { | CODE |
| LOW | src/library/scala/collection/immutable/Map.scala | 246 | override def getOrElse [V1](key: Any, default: => V1): V1 = default | CODE |
| LOW | src/library/scala/collection/immutable/Map.scala | 267 | override def getOrElse [V1 >: V](key: K, default: => V1): V1 = | CODE |
| LOW | src/library/scala/collection/immutable/Map.scala | 322 | override def getOrElse [V1 >: V](key: K, default: => V1): V1 = | CODE |
| LOW | src/library/scala/collection/immutable/Map.scala | 424 | override def getOrElse [V1 >: V](key: K, default: => V1): V1 = | CODE |
| LOW | src/library/scala/collection/immutable/Map.scala | 543 | override def getOrElse [V1 >: V](key: K, default: => V1): V1 = | CODE |
| 17 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/reflect/scala/reflect/internal/StdNames.scala | 153 | // some types whose companions we utilize | COMMENT |
| MEDIUM | src/reflect/scala/reflect/internal/StdNames.scala | 165 | // some names whose name we utilize | COMMENT |
| MEDIUM | …scala/tools/nsc/symtab/classfile/ClassfileParser.scala | 1018 | // We want to be robust when annotations are unavailable, so the very least | COMMENT |
| MEDIUM | src/compiler/scala/tools/nsc/transform/Fields.scala | 571 | // could detect it's a bitmap field with something like `sym.name.startsWith(nme.BITMAP_PREFIX)` (or perhaps somethi | COMMENT |
| MEDIUM | …/compiler/scala/tools/nsc/transform/Constructors.scala | 743 | // though we probably first need more robust name mangling | COMMENT |
| MEDIUM | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 1615 | // was done in an overly brutal way akin to resetAllAttrs, but now we utilize a resetLocalAttrs-based app | COMMENT |
| MEDIUM | …cala/tools/nsc/typechecker/MacroAnnotationNamers.scala | 418 | // the most robust thing would be to destroy ourselves (us and our companion), but we can't do that at top | COMMENT |
| MEDIUM | …/compiler/scala/reflect/reify/utils/NodePrinters.scala | 32 | // Rolling a full-fledged, robust TreePrinter would be several times more code. | COMMENT |
| MEDIUM | src/compiler/scala/reflect/reify/codegen/GenUtils.scala | 30 | // reflection would be more robust, but, hey, this is a hot path | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/scaladoc/run/t5527.scala | 60 | * Don't forget to dedoc this comment if you refactor to a local. | COMMENT |
| LOW | test/files/run/Course-2002-06.scala | 247 | // Don't forget to close the canvas! | COMMENT |
| LOW | src/reflect/scala/reflect/internal/Symbols.scala | 1809 | // don't forget to modify the code over there if you modify this method | COMMENT |
| LOW | src/reflect/scala/reflect/internal/Symbols.scala | 1819 | // don't forget to modify the code over there if you modify this method | COMMENT |
| LOW | …c/interactive/scala/tools/nsc/interactive/Global.scala | 504 | // don't forget to service interrupt requests | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/reflect/scala/reflect/internal/tpe/GlbLubs.scala | 110 | // Step 1: run through the List with these variables: | COMMENT |
| LOW | …/compiler/scala/reflect/quasiquotes/Placeholders.scala | 29 | // Step 1: Transform Scala source with holes into vanilla Scala source | COMMENT |
| LOW | …/compiler/scala/reflect/quasiquotes/Placeholders.scala | 90 | // Step 2: Transform vanilla Scala AST into an AST with holes | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/reflect/scala/reflect/internal/tpe/GlbLubs.scala | 110 | // Step 1: run through the List with these variables: | COMMENT |
| LOW | …/compiler/scala/reflect/quasiquotes/Placeholders.scala | 29 | // Step 1: Transform Scala source with holes into vanilla Scala source | COMMENT |
| LOW | …/compiler/scala/reflect/quasiquotes/Placeholders.scala | 90 | // Step 2: Transform vanilla Scala AST into an AST with holes | COMMENT |