This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| all 152731.644728 | |
| org.wartremover.warts.Null 16067.238004 10.519914 | |
| org.wartremover.warts.IterableOps 11728.525706 7.679172 | |
| org.wartremover.warts.Nothing 11095.056086 7.264412 | |
| org.wartremover.warts.OptionPartial 5925.057811 3.879391 | |
| org.wartremover.warts.Any 4936.884109 3.232391 | |
| org.wartremover.warts.SeqApply 3837.783285 2.512762 | |
| org.wartremover.warts.Equals 3718.214622 2.434476 | |
| org.wartremover.warts.GlobalExecutionContext 3635.088292 2.380049 | |
| org.wartremover.warts.Overloading 3445.783082 2.256103 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GlobalExecutionContext 0.221 | |
| Null 0.227 | |
| MutableDataStructures 0.242 | |
| Overloading 0.242 | |
| Serializable 0.242 | |
| TripleQuestionMark 0.243 | |
| AutoUnboxing 0.245 | |
| Enumeration 0.245 | |
| ImplicitConversion 0.246 | |
| PlatformDefault 0.246 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FilterEmpty 0.392 | |
| ListAppend 0.385 | |
| IterableOps 0.385 | |
| SortedMaxMinOption 0.383 | |
| CollectHeadOption 0.383 | |
| SortedMaxMin 0.382 | |
| NonUnitStatements 0.382 | |
| ForeachEntry 0.382 | |
| FilterSize 0.382 | |
| ReverseTakeReverse 0.381 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 17a18,19 | |
| > import language.experimental.captureChecking | |
| > | |
| 25a28 | |
| > import caps.unsafe.untrackedCaptures | |
| 250c253 | |
| < * @see [[https://docs.scala-lang.org/overviews/collections-2.13/concrete-immutable-collection-classes.html#lazylists "Scala's Collection Library overview"]] | |
| --- | |
| > * @see [[https://docs.scala-lang.org/overviews/collections-2.13/concrete-immutable-collection-classes.html#lazylistsIterable "Scala's Collection Library overview"]] | |
| 265,267d267 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // a2/src/main/scala/Bench.scala | |
| package example | |
| import org.openjdk.jmh.annotations.Benchmark | |
| class Bench { | |
| inline final def limit: Int = 100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package example | |
| import shapeless.:: | |
| import shapeless.HList | |
| import shapeless.HNil | |
| import shapeless.Generic | |
| class MyTypeClass[T](value: T) { | |
| def map[S](f: T => S): MyTypeClass[S] = | |
| new MyTypeClass[S](f(value)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sbt.* | |
| import sbt.Keys.* | |
| import sjsonnew.BasicJsonProtocol | |
| import sjsonnew.BasicJsonProtocol.* | |
| import sjsonnew.Builder | |
| import sjsonnew.JsonFormat | |
| import sjsonnew.JsonWriter | |
| import sjsonnew.support.scalajson.unsafe.CompactPrinter | |
| object ExternalDependencyModuleIds extends AutoPlugin { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scala.meta.* | |
| import scala.meta.tokens.Token | |
| import scalafix.v1.* | |
| class ScalikejdbcContextFunction extends SyntacticRule("ScalikejdbcContextFunction") { | |
| override def fix(implicit doc: SyntacticDocument): Patch = { | |
| doc.tree.collect { | |
| case Term.ApplyInfix.After_4_6_0( | |
| Term.Name("DB"), | |
| readOnly @ Term.Name("localTx"), |
NewerOlder