Skip to content

Commit

Permalink
Deploy website
Browse files Browse the repository at this point in the history
Deploy website version based on 2f14f13
  • Loading branch information
Docusaurus bot committed Apr 30, 2024
1 parent b371eaf commit ae959e3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion docs/developers/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h3><a class="anchor" aria-hidden="true" id="customizing-input-and-output-projec
plugin or built-in in the compiler. Supported Scala compiler versions include:</p>
<ul>
<li>Scala 2.12.19</li>
<li>Scala 2.13.13</li>
<li>Scala 2.13.14</li>
<li>Scala 3.x</li>
</ul>
<p>The output project can use any Scala compiler version.</p>
Expand Down
48 changes: 24 additions & 24 deletions docs/developers/symbol-information.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,42 +334,42 @@ <h3><a class="anchor" aria-hidden="true" id="lookup-class-methods"></a><a href="
}
getClassMethods(<span class="hljs-type">Symbol</span>(<span class="hljs-string">"scala/Some#"</span>)).take(<span class="hljs-number">5</span>)
<span class="hljs-comment">// res29: Set[SymbolInformation] = HashSet(</span>
<span class="hljs-comment">// scala/Any#`==`(). =&gt; final method ==(that: Any): Boolean,</span>
<span class="hljs-comment">// scala/Product#productElementName(). =&gt; method productElementName(n: Int): String,</span>
<span class="hljs-comment">// scala/AnyRef#eq(). =&gt; final method eq(that: AnyRef): Boolean,</span>
<span class="hljs-comment">// scala/Any#`==`(). =&gt; final method ==(that: Any): Boolean,</span>
<span class="hljs-comment">// scala/Any#asInstanceOf(). =&gt; final method asInstanceOf[A](): A</span>
<span class="hljs-comment">// scala/Some#productElement(). =&gt; method productElement(x$1: Int): Any,</span>
<span class="hljs-comment">// scala/Any#isInstanceOf(). =&gt; final method isInstanceOf[A](): Boolean,</span>
<span class="hljs-comment">// scala/Option#isEmpty(). =&gt; final method isEmpty: Boolean,</span>
<span class="hljs-comment">// scala/Any#`##`(). =&gt; final method ##(): Int,</span>
<span class="hljs-comment">// scala/Some#productElementName(). =&gt; method productElementName(x$1: Int): String</span>
<span class="hljs-comment">// )</span>
getClassMethods(<span class="hljs-type">Symbol</span>(<span class="hljs-string">"java/lang/String#"</span>)).take(<span class="hljs-number">5</span>)
<span class="hljs-comment">// res30: Set[SymbolInformation] = HashSet(</span>
<span class="hljs-comment">// java/lang/Object#equals(). =&gt; method equals(param0: Object): Boolean,</span>
<span class="hljs-comment">// java/lang/String#indexOf(+3). =&gt; method indexOf(param0: String, param1: Int): Int,</span>
<span class="hljs-comment">// java/lang/String#join(+1). =&gt; static method join(param0: CharSequence, param1: Iterable[local_wildcard]): String,</span>
<span class="hljs-comment">// java/lang/Object#wait(+1). =&gt; final method wait(param0: Long): Unit,</span>
<span class="hljs-comment">// java/lang/String#valueOf(). =&gt; static method valueOf(param0: Object): String</span>
<span class="hljs-comment">// java/lang/String#replace(). =&gt; method replace(param0: Char, param1: Char): String,</span>
<span class="hljs-comment">// java/lang/String#toString(). =&gt; method toString(): String,</span>
<span class="hljs-comment">// java/lang/String#length(). =&gt; method length(): Int,</span>
<span class="hljs-comment">// java/lang/String#replaceFirst(). =&gt; method replaceFirst(param0: String, param1: String): String,</span>
<span class="hljs-comment">// java/lang/String#valueOfCodePoint(). =&gt; private[lang] static method valueOfCodePoint(param0: Int): String</span>
<span class="hljs-comment">// )</span>
getClassMethods(<span class="hljs-type">Symbol</span>(<span class="hljs-string">"scala/collection/immutable/List#"</span>)).take(<span class="hljs-number">5</span>)
<span class="hljs-comment">// res31: Set[SymbolInformation] = HashSet(</span>
<span class="hljs-comment">// scala/Any#asInstanceOf(). =&gt; final method asInstanceOf[A](): A,</span>
<span class="hljs-comment">// scala/collection/IterableOnceOps#nonEmpty(). =&gt; @deprecatedOverriding method nonEmpty: Boolean,</span>
<span class="hljs-comment">// scala/collection/IterableOps#zipAll(). =&gt; method zipAll[A1 &gt;: A, B](that: Iterable[B], thisElem: A1, thatElem: B): CC[Tuple2[A1, B]],</span>
<span class="hljs-comment">// scala/collection/IterableOps#unzip(). =&gt; method unzip[A1, A2](implicit asPair: Function1[A, Tuple2[A1, A2]]): Tuple2[CC[A1], CC[A2]],</span>
<span class="hljs-comment">// scala/collection/IterableOps#inits(). =&gt; method inits: Iterator[C]</span>
<span class="hljs-comment">// scala/collection/IterableOnceOps#mkString(). =&gt; final method mkString(start: String, sep: String, end: String): String,</span>
<span class="hljs-comment">// scala/collection/IterableOnceOps#reduceLeftOptionIterator(). =&gt; private final method reduceLeftOptionIterator[B &gt;: A](op: Function2[B, A, B]): Option[B],</span>
<span class="hljs-comment">// scala/AnyRef#ne(). =&gt; final method ne(that: AnyRef): Boolean,</span>
<span class="hljs-comment">// scala/collection/SeqOps#reverse(). =&gt; method reverse: C,</span>
<span class="hljs-comment">// scala/collection/IterableOps#groupMapReduce(). =&gt; method groupMapReduce[K, B](key: Function1[A, K])(f: Function1[A, B])(reduce: Function2[B, B, B]): Map[K, B]</span>
<span class="hljs-comment">// )</span>
</code></pre>
<p>For Java methods, use <code>SymbolInformation.isStatic</code> to separate static methods
from non-static methods.</p>
<pre><code class="hljs css language-scala">getClassMethods(<span class="hljs-type">Symbol</span>(<span class="hljs-string">"java/lang/String#"</span>)).filter(_.isStatic).take(<span class="hljs-number">3</span>)
<span class="hljs-comment">// res32: Set[SymbolInformation] = HashSet(</span>
<span class="hljs-comment">// java/lang/String#checkOffset(). =&gt; private[lang] static method checkOffset(param0: Int, param1: Int): Unit,</span>
<span class="hljs-comment">// java/lang/Object#registerNatives(). =&gt; private static method registerNatives(): Unit,</span>
<span class="hljs-comment">// java/lang/String#checkBoundsOffCount(). =&gt; private[lang] static method checkBoundsOffCount(param0: Int, param1: Int, param2: Int): Unit</span>
<span class="hljs-comment">// java/lang/String#valueOf(+1). =&gt; static method valueOf(param0: Array[Char]): String,</span>
<span class="hljs-comment">// java/lang/String#checkBoundsOffCount(). =&gt; private[lang] static method checkBoundsOffCount(param0: Int, param1: Int, param2: Int): Unit,</span>
<span class="hljs-comment">// java/lang/Object#registerNatives(). =&gt; private static method registerNatives(): Unit</span>
<span class="hljs-comment">// )</span>
getClassMethods(<span class="hljs-type">Symbol</span>(<span class="hljs-string">"java/lang/String#"</span>)).filter(!_.isStatic).take(<span class="hljs-number">3</span>)
<span class="hljs-comment">// res33: Set[SymbolInformation] = HashSet(</span>
<span class="hljs-comment">// java/lang/String#replaceAll(). =&gt; method replaceAll(param0: String, param1: String): String,</span>
<span class="hljs-comment">// java/lang/String#lastIndexOf(+1). =&gt; method lastIndexOf(param0: Int, param1: Int): Int,</span>
<span class="hljs-comment">// java/lang/Object#equals(). =&gt; method equals(param0: Object): Boolean</span>
<span class="hljs-comment">// java/lang/String#isEmpty(). =&gt; method isEmpty(): Boolean,</span>
<span class="hljs-comment">// java/lang/String#split(+1). =&gt; method split(param0: String): Array[String],</span>
<span class="hljs-comment">// java/lang/Object#finalize(). =&gt; protected method finalize(): Unit</span>
<span class="hljs-comment">// )</span>
</code></pre>
<h3><a class="anchor" aria-hidden="true" id="lookup-class-primary-constructor"></a><a href="#lookup-class-primary-constructor" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Lookup class primary constructor</h3>
Expand Down Expand Up @@ -482,9 +482,9 @@ <h3><a class="anchor" aria-hidden="true" id="lookup-method-overloads"></a><a hre
<span class="hljs-comment">// )</span>
getMethodOverloads(<span class="hljs-type">Symbol</span>(<span class="hljs-string">"java/io/PrintStream#"</span>), <span class="hljs-string">"print"</span>).take(<span class="hljs-number">3</span>)
<span class="hljs-comment">// res47: Set[SymbolInformation] = HashSet(</span>
<span class="hljs-comment">// java/io/PrintStream#print(+4). =&gt; method print(param0: Float): Unit,</span>
<span class="hljs-comment">// java/io/PrintStream#print(+1). =&gt; method print(param0: Char): Unit,</span>
<span class="hljs-comment">// java/io/PrintStream#print(+2). =&gt; method print(param0: Int): Unit</span>
<span class="hljs-comment">// java/io/PrintStream#print(+8). =&gt; method print(param0: Object): Unit,</span>
<span class="hljs-comment">// java/io/PrintStream#print(+6). =&gt; method print(param0: Array[Char]): Unit,</span>
<span class="hljs-comment">// java/io/PrintStream#print(+5). =&gt; method print(param0: Double): Unit</span>
<span class="hljs-comment">// )</span>
</code></pre>
<p>Overloaded methods can be inherited from supertypes.</p>
Expand Down
12 changes: 6 additions & 6 deletions docs/users/installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h2><a class="anchor" aria-hidden="true" id="sbt"></a><a href="#sbt" aria-hidden
*/
inThisBuild(
List(
scalaVersion := "2.12.19", // 2.13.13, or 3.x
scalaVersion := "2.12.19", // 2.13.14, or 3.x
<span class="hljs-addition">+ semanticdbEnabled := true, // enable SemanticDB</span>
<span class="hljs-addition">+ semanticdbVersion := scalafixSemanticdb.revision // only required for Scala 2.x</span>
)
Expand All @@ -127,7 +127,7 @@ <h2><a class="anchor" aria-hidden="true" id="sbt"></a><a href="#sbt" aria-hidden
* https://www.scala-sbt.org/1.x/docs/sbt-1.3-Release-Notes.html#SemanticDB+support
*/
lazy val myproject = project.settings(
scalaVersion := "2.12.19", // 2.13.13, or 3.x
scalaVersion := "2.12.19", // 2.13.14, or 3.x
<span class="hljs-addition">+ semanticdbEnabled := true, // enable SemanticDB</span>
<span class="hljs-addition">+ semanticdbVersion := scalafixSemanticdb.revision, // only required for Scala 2.x</span>
<span class="hljs-addition">+ scalacOptions += "-Ywarn-unused-import" // Scala 2.x only, required by `RemoveUnused`</span>
Expand Down Expand Up @@ -367,7 +367,7 @@ <h2><a class="anchor" aria-hidden="true" id="command-line"></a><a href="#command
./scalafix --version <span class="hljs-comment"># Should say 0.12.0</span>
</code></pre>
<h3><a class="anchor" aria-hidden="true" id="help"></a><a href="#help" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Help</h3>
<pre><code class="hljs">Scalafix <span class="hljs-number">0.12</span>.<span class="hljs-number">0</span>+<span class="hljs-number">46</span>-<span class="hljs-number">0</span>ff44414-SNAPSHOT
<pre><code class="hljs">Scalafix <span class="hljs-number">0.12</span>.<span class="hljs-number">0</span>+<span class="hljs-number">49</span>-<span class="hljs-number">2</span>f14f130-SNAPSHOT
Usage: scalafix [options] [&lt;path&gt; ...]

Scalafix <span class="hljs-keyword">is</span> a refactoring <span class="hljs-keyword">and</span> linting tool. Scalafix
Expand Down Expand Up @@ -458,7 +458,7 @@ <h3><a class="anchor" aria-hidden="true" id="help"></a><a href="#help" aria-hidd
The scala compiler options used <span class="hljs-keyword">to</span> compile this <span class="hljs-comment">--classpath,</span>
<span class="hljs-keyword">for</span> example -Ywarn-unused-import

<span class="hljs-comment">--scala-version ScalaVersion (default: "2.13.13")</span>
<span class="hljs-comment">--scala-version ScalaVersion (default: "2.13.14")</span>
The major <span class="hljs-keyword">or</span> binary Scala version that the provided files
are targeting, <span class="hljs-keyword">or</span> the full version that was used <span class="hljs-keyword">to</span>
compile them <span class="hljs-keyword">when</span> a classpath <span class="hljs-keyword">is</span> provided.
Expand Down Expand Up @@ -539,10 +539,10 @@ <h2><a class="anchor" aria-hidden="true" id="snapshot"></a><a href="#snapshot" a
<pre><code class="hljs css language-diff"> // project/plugins.sbt
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.0")
<span class="hljs-addition">+resolvers += Resolver.sonatypeRepo("snapshots")</span>
<span class="hljs-addition">+dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.12.0+46-0ff44414-SNAPSHOT"</span>
<span class="hljs-addition">+dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.12.0+49-2f14f130-SNAPSHOT"</span>
</code></pre>
<p>If using the command-line interface</p>
<pre><code class="hljs css language-sh">cs launch ch.epfl.scala:scalafix-cli_2.12.19:0.12.0+46-0ff44414-SNAPSHOT -r sonatype:snapshots --main scalafix.cli.Cli -- --<span class="hljs-built_in">help</span>
<pre><code class="hljs css language-sh">cs launch ch.epfl.scala:scalafix-cli_2.12.19:0.12.0+49-2f14f130-SNAPSHOT -r sonatype:snapshots --main scalafix.cli.Cli -- --<span class="hljs-built_in">help</span>
</code></pre>
</span></div></article></div><div class="docs-prevnext"><a class="docs-next button" href="/scalafix/docs/users/configuration.html"><span>Configuration</span><span class="arrow-next"></span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#support">Support</a></li><li><a href="#sbt">sbt</a><ul class="toc-headings"><li><a href="#settings-and-tasks">Settings and tasks</a></li><li><a href="#main-and-test-sources">Main and test sources</a></li><li><a href="#integration-tests">Integration tests</a></li><li><a href="#multi-module-builds">Multi-module builds</a></li><li><a href="#enforce-in-ci">Enforce in CI</a></li><li><a href="#cache-in-ci">Cache in CI</a></li><li><a href="#run-scalafix-automatically-on-compile">Run Scalafix automatically on compile</a></li><li><a href="#run-custom-rules">Run custom rules</a></li><li><a href="#exclude-files-from-semanticdb-scala-2x-only">Exclude files from SemanticDB (Scala 2.x only)</a></li><li><a href="#exclude-files-from-scalafix-scala-2x-only">Exclude files from Scalafix (Scala 2.x only)</a></li><li><a href="#customize-semanticdb-output-directory">Customize SemanticDB output directory</a></li><li><a href="#disable-scalafix-for-specific-project">Disable Scalafix for specific project</a></li><li><a href="#enable-semanticdb-for-current-shell-session">Enable SemanticDB for current shell session</a></li><li><a href="#verify-installation">Verify installation</a></li><li><a href="#example-project">Example project</a></li></ul></li><li><a href="#command-line">Command line</a><ul class="toc-headings"><li><a href="#help">Help</a></li></ul></li><li><a href="#plugins-for-other-build-tools">Plugins for other build tools</a></li><li><a href="#snapshot">SNAPSHOT</a></li></ul></nav></div><footer class="nav-footer" id="footer" style="background-color:#15242B"><section class="sitemap"><a href="/scalafix/" class="nav-home"><img src="/scalafix/img/scalafix-brand-small2x.png" alt="Scalafix" width="52" height="52"/></a><div><h5>Docs</h5><a href="
/scalafix/docs/users/installation.html">Get started</a><a href="
Expand Down

0 comments on commit ae959e3

Please sign in to comment.