From ae959e3108ae63d9ed80fa8986a8b261573e4374 Mon Sep 17 00:00:00 2001 From: Docusaurus bot Date: Tue, 30 Apr 2024 22:52:03 +0000 Subject: [PATCH] Deploy website Deploy website version based on 2f14f130a53bceb6a02fa7108063384b586b0630 --- docs/developers/setup.html | 2 +- docs/developers/symbol-information.html | 48 ++++++++++++------------- docs/users/installation.html | 12 +++---- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/docs/developers/setup.html b/docs/developers/setup.html index cd752b1e8..f1d1748f4 100644 --- a/docs/developers/setup.html +++ b/docs/developers/setup.html @@ -135,7 +135,7 @@

Symbol("scala/Some#")).take(5) // res29: Set[SymbolInformation] = HashSet( -// scala/Any#`==`(). => final method ==(that: Any): Boolean, -// scala/Product#productElementName(). => method productElementName(n: Int): String, -// scala/AnyRef#eq(). => final method eq(that: AnyRef): Boolean, -// scala/Any#`==`(). => final method ==(that: Any): Boolean, -// scala/Any#asInstanceOf(). => final method asInstanceOf[A](): A +// scala/Some#productElement(). => method productElement(x$1: Int): Any, +// scala/Any#isInstanceOf(). => final method isInstanceOf[A](): Boolean, +// scala/Option#isEmpty(). => final method isEmpty: Boolean, +// scala/Any#`##`(). => final method ##(): Int, +// scala/Some#productElementName(). => method productElementName(x$1: Int): String // ) getClassMethods(Symbol("java/lang/String#")).take(5) // res30: Set[SymbolInformation] = HashSet( -// java/lang/Object#equals(). => method equals(param0: Object): Boolean, -// java/lang/String#indexOf(+3). => method indexOf(param0: String, param1: Int): Int, -// java/lang/String#join(+1). => static method join(param0: CharSequence, param1: Iterable[local_wildcard]): String, -// java/lang/Object#wait(+1). => final method wait(param0: Long): Unit, -// java/lang/String#valueOf(). => static method valueOf(param0: Object): String +// java/lang/String#replace(). => method replace(param0: Char, param1: Char): String, +// java/lang/String#toString(). => method toString(): String, +// java/lang/String#length(). => method length(): Int, +// java/lang/String#replaceFirst(). => method replaceFirst(param0: String, param1: String): String, +// java/lang/String#valueOfCodePoint(). => private[lang] static method valueOfCodePoint(param0: Int): String // ) getClassMethods(Symbol("scala/collection/immutable/List#")).take(5) // res31: Set[SymbolInformation] = HashSet( -// scala/Any#asInstanceOf(). => final method asInstanceOf[A](): A, -// scala/collection/IterableOnceOps#nonEmpty(). => @deprecatedOverriding method nonEmpty: Boolean, -// scala/collection/IterableOps#zipAll(). => method zipAll[A1 >: A, B](that: Iterable[B], thisElem: A1, thatElem: B): CC[Tuple2[A1, B]], -// scala/collection/IterableOps#unzip(). => method unzip[A1, A2](implicit asPair: Function1[A, Tuple2[A1, A2]]): Tuple2[CC[A1], CC[A2]], -// scala/collection/IterableOps#inits(). => method inits: Iterator[C] +// scala/collection/IterableOnceOps#mkString(). => final method mkString(start: String, sep: String, end: String): String, +// scala/collection/IterableOnceOps#reduceLeftOptionIterator(). => private final method reduceLeftOptionIterator[B >: A](op: Function2[B, A, B]): Option[B], +// scala/AnyRef#ne(). => final method ne(that: AnyRef): Boolean, +// scala/collection/SeqOps#reverse(). => method reverse: C, +// scala/collection/IterableOps#groupMapReduce(). => method groupMapReduce[K, B](key: Function1[A, K])(f: Function1[A, B])(reduce: Function2[B, B, B]): Map[K, B] // )

For Java methods, use SymbolInformation.isStatic to separate static methods from non-static methods.

getClassMethods(Symbol("java/lang/String#")).filter(_.isStatic).take(3)
 // res32: Set[SymbolInformation] = HashSet(
-//   java/lang/String#checkOffset(). => private[lang] static method checkOffset(param0: Int, param1: Int): Unit,
-//   java/lang/Object#registerNatives(). => private static method registerNatives(): Unit,
-//   java/lang/String#checkBoundsOffCount(). => private[lang] static method checkBoundsOffCount(param0: Int, param1: Int, param2: Int): Unit
+//   java/lang/String#valueOf(+1). => static method valueOf(param0: Array[Char]): String,
+//   java/lang/String#checkBoundsOffCount(). => private[lang] static method checkBoundsOffCount(param0: Int, param1: Int, param2: Int): Unit,
+//   java/lang/Object#registerNatives(). => private static method registerNatives(): Unit
 // )
 getClassMethods(Symbol("java/lang/String#")).filter(!_.isStatic).take(3)
 // res33: Set[SymbolInformation] = HashSet(
-//   java/lang/String#replaceAll(). => method replaceAll(param0: String, param1: String): String,
-//   java/lang/String#lastIndexOf(+1). => method lastIndexOf(param0: Int, param1: Int): Int,
-//   java/lang/Object#equals(). => method equals(param0: Object): Boolean
+//   java/lang/String#isEmpty(). => method isEmpty(): Boolean,
+//   java/lang/String#split(+1). => method split(param0: String): Array[String],
+//   java/lang/Object#finalize(). => protected method finalize(): Unit
 // )
 

Lookup class primary constructor

@@ -482,9 +482,9 @@

// ) getMethodOverloads(Symbol("java/io/PrintStream#"), "print").take(3) // res47: Set[SymbolInformation] = HashSet( -// java/io/PrintStream#print(+4). => method print(param0: Float): Unit, -// java/io/PrintStream#print(+1). => method print(param0: Char): Unit, -// java/io/PrintStream#print(+2). => method print(param0: Int): Unit +// java/io/PrintStream#print(+8). => method print(param0: Object): Unit, +// java/io/PrintStream#print(+6). => method print(param0: Array[Char]): Unit, +// java/io/PrintStream#print(+5). => method print(param0: Double): Unit // )

Overloaded methods can be inherited from supertypes.

diff --git a/docs/users/installation.html b/docs/users/installation.html index fc74d6031..d950e060a 100644 --- a/docs/users/installation.html +++ b/docs/users/installation.html @@ -111,7 +111,7 @@

+ semanticdbEnabled := true, // enable SemanticDB + semanticdbVersion := scalafixSemanticdb.revision // only required for Scala 2.x ) @@ -127,7 +127,7 @@

+ semanticdbEnabled := true, // enable SemanticDB + semanticdbVersion := scalafixSemanticdb.revision, // only required for Scala 2.x + scalacOptions += "-Ywarn-unused-import" // Scala 2.x only, required by `RemoveUnused` @@ -367,7 +367,7 @@

# Should say 0.12.0

Help

-
Scalafix 0.12.0+46-0ff44414-SNAPSHOT
+
Scalafix 0.12.0+49-2f14f130-SNAPSHOT
 Usage: scalafix [options] [<path> ...]
 
 Scalafix is a refactoring and linting tool. Scalafix
@@ -458,7 +458,7 @@ 

to compile this --classpath, for example -Ywarn-unused-import - --scala-version ScalaVersion (default: "2.13.13") + --scala-version ScalaVersion (default: "2.13.14") The major or binary Scala version that the provided files are targeting, or the full version that was used to compile them when a classpath is provided. @@ -539,10 +539,10 @@

// project/plugins.sbt addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.0") +resolvers += Resolver.sonatypeRepo("snapshots") -+dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.12.0+46-0ff44414-SNAPSHOT" ++dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.12.0+49-2f14f130-SNAPSHOT"

If using the command-line interface

-
cs launch ch.epfl.scala:scalafix-cli_2.12.19:0.12.0+46-0ff44414-SNAPSHOT -r sonatype:snapshots --main scalafix.cli.Cli -- --help
+
cs launch ch.epfl.scala:scalafix-cli_2.12.19:0.12.0+49-2f14f130-SNAPSHOT -r sonatype:snapshots --main scalafix.cli.Cli -- --help