diff --git a/DEVELOPING.md b/DEVELOPING.md index a10454597..39a124702 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -8,7 +8,7 @@ Create a [fork](https://docs.github.com/en/github/getting-started-with-github/fo ### Branch to work against sbt uses two or three branches for development: -Use the **default** branch set on Github for bug fixes. +Use the **default** branch set on GitHub for bug fixes. - Next minor branch: `1.$MINOR.x`, where `$MINOR` is next minor version (e.g. `1.10.x` during 1.9.x series) - Development branch: `develop` @@ -162,8 +162,7 @@ suite with `sbt testOnly` Scripted integration tests reside in `sbt-app/src/sbt-test` and are written using the same testing infrastructure sbt plugin authors can -use to test their own plugins with sbt. You can read more about this -style of tests [here](https://www.scala-sbt.org/1.x/docs/Testing-sbt-plugins). +use to test their own plugins with sbt. You can read more about [Testing sbt plugins](https://www.scala-sbt.org/1.x/docs/Testing-sbt-plugins). You can run the integration tests with the `sbt scripted` sbt command. To run a single test, such as the test in diff --git a/PROFILING.md b/PROFILING.md index 2e8410937..1313c493c 100644 --- a/PROFILING.md +++ b/PROFILING.md @@ -75,7 +75,7 @@ See https://gist.github.com/eed3si9n/82d43acc95a002876d357bd8ad5f40d5 ### running sbt with standby One of the tricky things you come across while profiling is figuring out the process ID, -while wnating to profile the beginning of the application. +while wanting to profile the beginning of the application. For this purpose, we've added `sbt.launcher.standby` JVM flag. In the next version of sbt, you should be able to run: diff --git a/build.sbt b/build.sbt index d6b9eb62d..b7c812110 100644 --- a/build.sbt +++ b/build.sbt @@ -417,7 +417,7 @@ lazy val utilCache = project .in(file("util-cache")) .enablePlugins( ContrabandPlugin, - // we generate JsonCodec only for actionresult.conta + // we generate JsonCodec only for actionresult.contra JsonCodecPlugin, ) .dependsOn(utilLogging) diff --git a/buildfile/src/main/scala/sbt/internal/EvaluateConfigurations.scala b/buildfile/src/main/scala/sbt/internal/EvaluateConfigurations.scala index fe94d7e8f..5c2b7109c 100644 --- a/buildfile/src/main/scala/sbt/internal/EvaluateConfigurations.scala +++ b/buildfile/src/main/scala/sbt/internal/EvaluateConfigurations.scala @@ -144,7 +144,7 @@ private[sbt] object EvaluateConfigurations { offset: Int ): LazyClassLoaded[LoadedSbtFile] = { // TODO - Store the file on the LoadedSbtFile (or the parent dir) so we can accurately do - // detection for which project project manipulations should be applied. + // detection for which project manipulations should be applied. val name = file match case file: PathBasedFile => file.toPath.toString case file => file.id diff --git a/core-macros/src/main/scala/sbt/internal/util/appmacro/Cont.scala b/core-macros/src/main/scala/sbt/internal/util/appmacro/Cont.scala index 5c9ddbbdb..87c21204d 100644 --- a/core-macros/src/main/scala/sbt/internal/util/appmacro/Cont.scala +++ b/core-macros/src/main/scala/sbt/internal/util/appmacro/Cont.scala @@ -116,7 +116,7 @@ trait Cont: /** * Implementation of a macro that provides a direct syntax for applicative functors and monads. - * It is intended to bcke used in conjunction with another macro that conditions the inputs. + * It is intended to be used in conjunction with another macro that conditions the inputs. * * This method processes the Term `t` to find inputs of the form `wrap[A]( input )` This form is * typically constructed by another macro that pretends to be able to get a value of type `A` diff --git a/internal/util-complete/src/main/scala/sbt/internal/util/LineReader.scala b/internal/util-complete/src/main/scala/sbt/internal/util/LineReader.scala index 7f3b0e01b..8075faa24 100644 --- a/internal/util-complete/src/main/scala/sbt/internal/util/LineReader.scala +++ b/internal/util-complete/src/main/scala/sbt/internal/util/LineReader.scala @@ -102,7 +102,7 @@ object LineReader { parser: Parser[?], terminal: Terminal, ): LineReader = { - // We may want to consider insourcing LineReader.java from jline. We don't otherwise + // We may want to consider in-sourcing LineReader.java from jline. We don't otherwise // directly need jline3 for sbt. new LineReader { override def readLine(prompt: String, mask: Option[Char]): Option[String] = { @@ -243,7 +243,7 @@ private[sbt] object JLine { // When calling this, ensure that enableEcho has been or will be called. // TerminalFactory.get will initialize the terminal to disable echo. @deprecated("Don't use jline.Terminal directly", "1.4.0") - private[sbt] def terminal: jline.Terminal = Terminal.deprecatedTeminal + private[sbt] def terminal: jline.Terminal = Terminal.deprecatedTerminal /** * For accessing the JLine Terminal object. This ensures synchronized access as well as diff --git a/internal/util-complete/src/main/scala/sbt/internal/util/complete/Parsers.scala b/internal/util-complete/src/main/scala/sbt/internal/util/complete/Parsers.scala index 2379da075..50b103b29 100644 --- a/internal/util-complete/src/main/scala/sbt/internal/util/complete/Parsers.scala +++ b/internal/util-complete/src/main/scala/sbt/internal/util/complete/Parsers.scala @@ -274,7 +274,7 @@ trait Parsers { * @param close * the closing character, e.g. '}' * @return - * a parser for the brace encloosed string. + * a parser for the brace enclosed string. */ private[sbt] def braces(open: Char, close: Char): Parser[String] = { val notDelim = charClass(c => c != open && c != close).*.string diff --git a/internal/util-complete/src/test/scala/sbt/complete/ParserWithExamplesTest.scala b/internal/util-complete/src/test/scala/sbt/complete/ParserWithExamplesTest.scala index 2cfe5dbdf..d2b4a2aec 100644 --- a/internal/util-complete/src/test/scala/sbt/complete/ParserWithExamplesTest.scala +++ b/internal/util-complete/src/test/scala/sbt/complete/ParserWithExamplesTest.scala @@ -79,7 +79,7 @@ class ParserWithExamplesTest extends UnitSpec { class parserWithAllExamples extends ParserExample(removeInvalidExamples = false) case class ParserExample( - examples: Iterable[String] = Set("blue", "yellow", "greeen", "block", "red"), + examples: Iterable[String] = Set("blue", "yellow", "green_", "block", "red"), maxNumberOfExamples: Int = 25, removeInvalidExamples: Boolean ) { diff --git a/internal/util-interface/src/main/java/xsbti/Problem.java b/internal/util-interface/src/main/java/xsbti/Problem.java index 50efefc8b..5890870b9 100644 --- a/internal/util-interface/src/main/java/xsbti/Problem.java +++ b/internal/util-interface/src/main/java/xsbti/Problem.java @@ -49,7 +49,7 @@ public interface Problem { } /** - * The possible releated information for the diagnostic being reported. + * The possible related information for the diagnostic being reported. * *
NOTE: To avoid breaking compatibility we provide a default to account for older Scala * versions that do not have the concept of "related information". diff --git a/internal/util-interface/src/main/java/xsbti/WorkspaceEdit.java b/internal/util-interface/src/main/java/xsbti/WorkspaceEdit.java index 9de31fb31..ab602949c 100644 --- a/internal/util-interface/src/main/java/xsbti/WorkspaceEdit.java +++ b/internal/util-interface/src/main/java/xsbti/WorkspaceEdit.java @@ -11,7 +11,7 @@ package xsbti; import java.util.List; /** - * A minimal representatin of the `WorkspaceEdit` found in the LSP protocol. + * A minimal representation of the `WorkspaceEdit` found in the LSP protocol. * *
However it only supports the minimal `changes` to ensure the fixes will work with all clients.
*
diff --git a/internal/util-logging/src/main/scala/sbt/internal/util/EscHelpers.scala b/internal/util-logging/src/main/scala/sbt/internal/util/EscHelpers.scala
index baf06467e..512f5ca1b 100644
--- a/internal/util-logging/src/main/scala/sbt/internal/util/EscHelpers.scala
+++ b/internal/util-logging/src/main/scala/sbt/internal/util/EscHelpers.scala
@@ -33,7 +33,7 @@ object EscHelpers {
* The CSI (control sequence instruction) codes start with ESC + '['. This is for testing the
* second character.
*
- * There is an additional CSI (one character) that we could test for, but is not frequnetly used,
+ * There is an additional CSI (one character) that we could test for, but is not frequently used,
* and we don't check for it.
*
* cf. http://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes
@@ -193,7 +193,7 @@ object EscHelpers {
* Removes the ansi escape sequences from a string and makes a best attempt at calculating any
* ansi moves by hand. For example, if the string contains a backspace character followed by a
* character, the output string would replace the character preceding the backspaces with the
- * character proceding it. This is in contrast to `strip` which just removes all ansi codes
+ * character preceding it. This is in contrast to `strip` which just removes all ansi codes
* entirely.
*
* @param s
diff --git a/internal/util-logging/src/main/scala/sbt/internal/util/Terminal.scala b/internal/util-logging/src/main/scala/sbt/internal/util/Terminal.scala
index d671847da..3e15493fe 100644
--- a/internal/util-logging/src/main/scala/sbt/internal/util/Terminal.scala
+++ b/internal/util-logging/src/main/scala/sbt/internal/util/Terminal.scala
@@ -890,7 +890,7 @@ object Terminal {
consoleProgressState.set(progressState)
@deprecated("For compatibility only", "1.4.0")
- private[sbt] def deprecatedTeminal: jline.Terminal = console.toJLine
+ private[sbt] def deprecatedTerminal: jline.Terminal = console.toJLine
private[util] class ConsoleTerminal(
in: WriteableInputStream,
out: OutputStream,
diff --git a/internal/util-logging/src/main/scala/sbt/internal/util/WindowsInputStream.scala b/internal/util-logging/src/main/scala/sbt/internal/util/WindowsInputStream.scala
index aff4026bf..cc2667657 100644
--- a/internal/util-logging/src/main/scala/sbt/internal/util/WindowsInputStream.scala
+++ b/internal/util-logging/src/main/scala/sbt/internal/util/WindowsInputStream.scala
@@ -111,7 +111,7 @@ private[util] class WindowsInputStream(term: org.jline.terminal.Terminal, in: In
case 0x7a /* VK_F11 */ => getCapability(Capability.key_f11)
case 0x7b /* VK_F12 */ => getCapability(Capability.key_f12)
// VK_END, VK_INSERT and VK_DELETE are not in the ansi key bindings so we
- // have to manually apply the the sequences here and in JLine3.wrap
+ // have to manually apply the sequences here and in JLine3.wrap
case 0x23 /* VK_END */ =>
Option(getCapability(Capability.key_end)).getOrElse("\u001B[4~")
case 0x2d /* VK_INSERT */ =>
diff --git a/internal/util-logging/src/main/scala/sbt/util/InterfaceUtil.scala b/internal/util-logging/src/main/scala/sbt/util/InterfaceUtil.scala
index cd5fc2bba..bebf4fe83 100644
--- a/internal/util-logging/src/main/scala/sbt/util/InterfaceUtil.scala
+++ b/internal/util-logging/src/main/scala/sbt/util/InterfaceUtil.scala
@@ -149,7 +149,7 @@ object InterfaceUtil {
sev: Severity,
rendered: Option[String],
diagnosticCode: Option[DiagnosticCode],
- diagnosticRelatedInforamation: List[DiagnosticRelatedInformation]
+ diagnosticRelatedInformation: List[DiagnosticRelatedInformation]
): Problem =
problem(
cat,
@@ -158,7 +158,7 @@ object InterfaceUtil {
sev,
rendered,
diagnosticCode,
- diagnosticRelatedInforamation,
+ diagnosticRelatedInformation,
List.empty[Action],
)
diff --git a/internal/util-logging/src/test/scala/ManagedLoggerSpec.scala b/internal/util-logging/src/test/scala/ManagedLoggerSpec.scala
index c85007c23..9d1c75172 100644
--- a/internal/util-logging/src/test/scala/ManagedLoggerSpec.scala
+++ b/internal/util-logging/src/test/scala/ManagedLoggerSpec.scala
@@ -43,7 +43,7 @@ class ManagedLoggerSpec extends AnyFlatSpec with Matchers {
}
val after = System.currentTimeMillis()
- log.info(s"Peformance test took: ${after - before}ms")
+ log.info(s"Performance test took: ${after - before}ms")
}
it should "support logging Throwable out of the box" in {
diff --git a/launcher-package/build.sbt b/launcher-package/build.sbt
index becb85242..8e01ff254 100755
--- a/launcher-package/build.sbt
+++ b/launcher-package/build.sbt
@@ -336,7 +336,7 @@ val root = (project in file(".")).
else Seq[(File, String)](base.getParentFile / "LICENSE" -> "LICENSE", base / "NOTICE" -> "NOTICE")
},
- // Misccelaneous publishing stuff...
+ // Miscellaneous publishing stuff...
projectID in Debian := {
val m = moduleID.value
m.copy(revision = (version in Debian).value)
diff --git a/launcher-package/upload/sbt-upload.sh b/launcher-package/upload/sbt-upload.sh
index cf4b53c83..0ad487c97 100755
--- a/launcher-package/upload/sbt-upload.sh
+++ b/launcher-package/upload/sbt-upload.sh
@@ -2,7 +2,7 @@
#
# This script will upload an sbt distribution (tar/tgz/msi and
-# checksump files) to IBM Cloud Object Storage with the correct
+# checksum files) to IBM Cloud Object Storage with the correct
# permissions, and prepare the shortened URLs on the "piccolo.link"
# Polr server.
#
diff --git a/lm-core/src/main/contraband-scala/sbt/librarymanagement/MavenCache.scala b/lm-core/src/main/contraband-scala/sbt/librarymanagement/MavenCache.scala
index 3e74b39fe..04c22a0e6 100644
--- a/lm-core/src/main/contraband-scala/sbt/librarymanagement/MavenCache.scala
+++ b/lm-core/src/main/contraband-scala/sbt/librarymanagement/MavenCache.scala
@@ -5,7 +5,7 @@
// DO NOT EDIT MANUALLY
package sbt.librarymanagement
/**
- * An instance of maven CACHE directory. You cannot treat a cache directory the same as a a remote repository because
+ * An instance of maven CACHE directory. You cannot treat a cache directory the same as a remote repository because
* the metadata is different (see Aether ML discussion).
*/
final class MavenCache private (
diff --git a/lm-core/src/main/contraband-scala/sbt/librarymanagement/SemanticSelector.scala b/lm-core/src/main/contraband-scala/sbt/librarymanagement/SemanticSelector.scala
index 9bf64431f..b554446b2 100644
--- a/lm-core/src/main/contraband-scala/sbt/librarymanagement/SemanticSelector.scala
+++ b/lm-core/src/main/contraband-scala/sbt/librarymanagement/SemanticSelector.scala
@@ -35,7 +35,7 @@ package sbt.librarymanagement
*
* The hyphen range like `1.2.3 - 4.5.6` matches inclusive set of versions.
* So `1.2.3 - 4.5.6` is equivalent to `>=1.2.3 <=4.5.6`.
- * Both sides of comparators around - are required and they can not have any operators.
+ * Both sides of comparators around - are required and they cannot have any operators.
* For example, `>=1.2.3 - 4.5.6` is invalid.
*
* The order of versions basically follows the rule specified in https://semver.org/#spec-item-11
@@ -52,7 +52,7 @@ package sbt.librarymanagement
* > Example: 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0.
*
* The differences from the original specification are following
- * - `SemanticVersionSelector` separetes the pre-release fields by hyphen instead of dot
+ * - `SemanticVersionSelector` separates the pre-release fields by hyphen instead of dot
* - hyphen cannot be used in pre-release identifiers because it is used as separator for pre-release fields
*
* Therefore, in order to match pre-release versions like `1.0.0-beta`
diff --git a/lm-core/src/main/contraband-scala/sbt/librarymanagement/UpdateConfiguration.scala b/lm-core/src/main/contraband-scala/sbt/librarymanagement/UpdateConfiguration.scala
index 271b32810..4019d9442 100644
--- a/lm-core/src/main/contraband-scala/sbt/librarymanagement/UpdateConfiguration.scala
+++ b/lm-core/src/main/contraband-scala/sbt/librarymanagement/UpdateConfiguration.scala
@@ -9,7 +9,7 @@ package sbt.librarymanagement
Otherwise, dependencies are used directly from the cache.
* @param missingOk If set to true, it ignores when artifacts are missing.
This setting could be uses when retrieving source/javadocs jars opportunistically.
- * @param logging Logging setting used specifially for library management.
+ * @param logging Logging setting used specifically for library management.
* @param logicalClock The clock that may be used for caching.
* @param metadataDirectory The base directory that may be used to store metadata.
*/
diff --git a/lm-core/src/main/contraband/librarymanagement.json b/lm-core/src/main/contraband/librarymanagement.json
index 3a517b725..8c6c82487 100644
--- a/lm-core/src/main/contraband/librarymanagement.json
+++ b/lm-core/src/main/contraband/librarymanagement.json
@@ -31,7 +31,7 @@
{
"name": "logging",
"doc": [
- "Logging setting used specifially for library management."
+ "Logging setting used specifically for library management."
],
"type": "sbt.librarymanagement.UpdateLogging",
"default": "sbt.librarymanagement.UpdateLogging.Default",
@@ -602,7 +602,7 @@
"target": "Scala",
"type": "record",
"doc": [
- "An instance of maven CACHE directory. You cannot treat a cache directory the same as a a remote repository because",
+ "An instance of maven CACHE directory. You cannot treat a cache directory the same as a remote repository because",
"the metadata is different (see Aether ML discussion)."
],
"fields": [
diff --git a/lm-core/src/main/contraband/librarymanagement2.json b/lm-core/src/main/contraband/librarymanagement2.json
index 5e955fa73..1a2371030 100644
--- a/lm-core/src/main/contraband/librarymanagement2.json
+++ b/lm-core/src/main/contraband/librarymanagement2.json
@@ -54,7 +54,7 @@
"",
"The hyphen range like `1.2.3 - 4.5.6` matches inclusive set of versions.",
"So `1.2.3 - 4.5.6` is equivalent to `>=1.2.3 <=4.5.6`.",
- "Both sides of comparators around - are required and they can not have any operators.",
+ "Both sides of comparators around - are required and they cannot have any operators.",
"For example, `>=1.2.3 - 4.5.6` is invalid.",
"",
"The order of versions basically follows the rule specified in https://semver.org/#spec-item-11",
@@ -71,7 +71,7 @@
"> Example: 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0.",
"",
"The differences from the original specification are following",
- "- `SemanticVersionSelector` separetes the pre-release fields by hyphen instead of dot",
+ "- `SemanticVersionSelector` separates the pre-release fields by hyphen instead of dot",
"- hyphen cannot be used in pre-release identifiers because it is used as separator for pre-release fields",
"",
"Therefore, in order to match pre-release versions like `1.0.0-beta`",
diff --git a/lm-core/src/main/scala/sbt/internal/librarymanagement/SemanticSelectorExtra.scala b/lm-core/src/main/scala/sbt/internal/librarymanagement/SemanticSelectorExtra.scala
index f56686646..4070b6db5 100644
--- a/lm-core/src/main/scala/sbt/internal/librarymanagement/SemanticSelectorExtra.scala
+++ b/lm-core/src/main/scala/sbt/internal/librarymanagement/SemanticSelectorExtra.scala
@@ -18,10 +18,10 @@ private[librarymanagement] abstract class SemSelAndChunkFunctions {
val (before, after) = comparatorTokens.splitAt(hyphenIndex)
(before.lastOption, after.drop(1).headOption) match {
case (Some(fromStr), Some(toStr)) =>
- // from and to can not have an operator.
+ // from and to cannot have an operator.
if (hasOperator(fromStr) || hasOperator(toStr)) {
throw new IllegalArgumentException(
- s"Invalid ' - ' range, both side of comparators can not have an operator: $fromStr - $toStr"
+ s"Invalid ' - ' range, both side of comparators cannot have an operator: $fromStr - $toStr"
)
}
val from = SemComparator(fromStr)
@@ -124,7 +124,7 @@ private[librarymanagement] abstract class SemComparatorExtra {
val cmp = (ts1head.matches("\\d+"), ts2head.matches("\\d+")) match {
// Identifiers consisting of only digits are compared numerically.
// Numeric identifiers always have lower precedence than non-numeric identifiers.
- // Identifiers with letters are compared case insensitive lexical order.
+ // Identifiers with letters are compared case-insensitive lexical order.
case (true, true) => implicitly[Ordering[Long]].compare(ts1head.toLong, ts2head.toLong)
case (false, true) => 1
case (true, false) => -1
diff --git a/lm-core/src/main/scala/sbt/internal/librarymanagement/VersionRange.scala b/lm-core/src/main/scala/sbt/internal/librarymanagement/VersionRange.scala
index 1d5112c64..101da3056 100644
--- a/lm-core/src/main/scala/sbt/internal/librarymanagement/VersionRange.scala
+++ b/lm-core/src/main/scala/sbt/internal/librarymanagement/VersionRange.scala
@@ -54,7 +54,7 @@ object VersionRange {
case "+" => "[0,)"
case DotPlusPattern(base) => plusRange(base)
// This is a heuristic. Maven just doesn't support Ivy's notions of 1+, so
- // we assume version ranges never go beyond 5 siginificant digits.
+ // we assume version ranges never go beyond 5 significant digits.
case NumPlusPattern(tail) => (0 until maxDigit).map(plusRange(tail, _)).mkString(",")
case DotNumPlusPattern(base, tail) =>
(0 until maxDigit).map(plusRange(base + "." + tail, _)).mkString(",")
diff --git a/lm-core/src/main/scala/sbt/librarymanagement/DependencyResolution.scala b/lm-core/src/main/scala/sbt/librarymanagement/DependencyResolution.scala
index eb40bb2c6..3e659056b 100644
--- a/lm-core/src/main/scala/sbt/librarymanagement/DependencyResolution.scala
+++ b/lm-core/src/main/scala/sbt/librarymanagement/DependencyResolution.scala
@@ -71,7 +71,7 @@ class DependencyResolution private[sbt] (lmEngine: DependencyResolutionInterface
* Returns a `ModuleDescriptor` that depends on `dependencyId`.
*
* @param dependencyId The module to depend on.
- * @param scalaModuleInfo The information about the Scala verson used, if any.
+ * @param scalaModuleInfo The information about the Scala version used, if any.
* @return A `ModuleDescriptor` that depends on `dependencyId`.
*/
def wrapDependencyInModule(
diff --git a/lm-core/src/main/scala/sbt/librarymanagement/EvictionError.scala b/lm-core/src/main/scala/sbt/librarymanagement/EvictionError.scala
index b1ce20ee3..b45140daa 100644
--- a/lm-core/src/main/scala/sbt/librarymanagement/EvictionError.scala
+++ b/lm-core/src/main/scala/sbt/librarymanagement/EvictionError.scala
@@ -59,7 +59,8 @@ object EvictionError {
)
}
val incompatibleEvictions: mutable.ListBuffer[(EvictionPair, String)] = mutable.ListBuffer()
- val assumedIncompatEvictions: mutable.ListBuffer[(EvictionPair, String)] = mutable.ListBuffer()
+ val assumedIncompatibleEvictions: mutable.ListBuffer[(EvictionPair, String)] =
+ mutable.ListBuffer()
val sbvOpt = module.scalaModuleInfo.map(_.scalaBinaryVersion)
val userDefinedSchemes: Map[(String, String), String] = Map(schemes flatMap { s =>
val organization = s.organization
@@ -123,7 +124,7 @@ object EvictionError {
else assumedVersionSchemeJava
if (hasIncompatibleVersionForScheme(assumedScheme))
- assumedIncompatEvictions += (p -> assumedScheme)
+ assumedIncompatibleEvictions += (p -> assumedScheme)
}
case _ => ()
@@ -131,7 +132,7 @@ object EvictionError {
new EvictionError(
incompatibleEvictions.toList,
- assumedIncompatEvictions.toList,
+ assumedIncompatibleEvictions.toList,
)
}
diff --git a/lm-core/src/main/scala/sbt/librarymanagement/LibraryManagementInterface.scala b/lm-core/src/main/scala/sbt/librarymanagement/LibraryManagementInterface.scala
index cdca4a8dc..7ae9ce20f 100644
--- a/lm-core/src/main/scala/sbt/librarymanagement/LibraryManagementInterface.scala
+++ b/lm-core/src/main/scala/sbt/librarymanagement/LibraryManagementInterface.scala
@@ -68,7 +68,7 @@ trait PublisherInterface {
}
/**
- * Decribes the representation of a module, including its dependencies
+ * Describes the representation of a module, including its dependencies
* and the version of Scala it uses, if any.
*/
trait ModuleDescriptor {
diff --git a/lm-coursier/src/main/scala/lmcoursier/internal/SbtCoursierCache.scala b/lm-coursier/src/main/scala/lmcoursier/internal/SbtCoursierCache.scala
index 05465957c..eb9877ae1 100644
--- a/lm-coursier/src/main/scala/lmcoursier/internal/SbtCoursierCache.scala
+++ b/lm-coursier/src/main/scala/lmcoursier/internal/SbtCoursierCache.scala
@@ -14,7 +14,7 @@ class SbtCoursierCache {
private val resolutionsCache =
new ConcurrentHashMap[ResolutionKey, Map[Configuration, Resolution]]
- // these may actually not need to be cached any more, now that the resolutions
+ // these may actually not need to be cached anymore, now that the resolutions
// are cached
private val reportsCache = new ConcurrentHashMap[ReportKey, UpdateReport]
diff --git a/lm-ivy/src/main/scala/org/apache/ivy/plugins/parser/m2/ReplaceMavenConfigurationMappings.scala b/lm-ivy/src/main/scala/org/apache/ivy/plugins/parser/m2/ReplaceMavenConfigurationMappings.scala
index fb0b889d6..f0ed69715 100644
--- a/lm-ivy/src/main/scala/org/apache/ivy/plugins/parser/m2/ReplaceMavenConfigurationMappings.scala
+++ b/lm-ivy/src/main/scala/org/apache/ivy/plugins/parser/m2/ReplaceMavenConfigurationMappings.scala
@@ -41,11 +41,11 @@ object ReplaceMavenConfigurationMappings {
def addMappingConfs(dd: DefaultDependencyDescriptor, isOptional: Boolean): Unit = {
if (isOptional) {
dd.addDependencyConfiguration("optional", "compile(*)")
- // FIX - Here we take a mroe conservative approach of depending on the compile configuration if master isn't there.
+ // FIX - Here we take a more conservative approach of depending on the compile configuration if master isn't there.
dd.addDependencyConfiguration("optional", "master(compile)")
} else {
dd.addDependencyConfiguration("compile", "compile(*)")
- // FIX - Here we take a mroe conservative approach of depending on the compile configuration if master isn't there.
+ // FIX - Here we take a more conservative approach of depending on the compile configuration if master isn't there.
dd.addDependencyConfiguration("compile", "master(compile)")
dd.addDependencyConfiguration("runtime", "runtime(*)")
}
@@ -60,13 +60,13 @@ object ReplaceMavenConfigurationMappings {
dd.addDependencyConfiguration("optional", "compile(*)")
dd.addDependencyConfiguration("optional", "provided(*)")
dd.addDependencyConfiguration("optional", "runtime(*)")
- // FIX - Here we take a mroe conservative approach of depending on the compile configuration if master isn't there.
+ // FIX - Here we take a more conservative approach of depending on the compile configuration if master isn't there.
dd.addDependencyConfiguration("optional", "master(compile)")
} else {
dd.addDependencyConfiguration("provided", "compile(*)")
dd.addDependencyConfiguration("provided", "provided(*)")
dd.addDependencyConfiguration("provided", "runtime(*)")
- // FIX - Here we take a mroe conservative approach of depending on the compile configuration if master isn't there.
+ // FIX - Here we take a more conservative approach of depending on the compile configuration if master isn't there.
dd.addDependencyConfiguration("provided", "master(compile)")
}
}
@@ -80,12 +80,12 @@ object ReplaceMavenConfigurationMappings {
if (isOptional) {
dd.addDependencyConfiguration("optional", "compile(*)")
dd.addDependencyConfiguration("optional", "provided(*)")
- // FIX - Here we take a mroe conservative approach of depending on the compile configuration if master isn't there.
+ // FIX - Here we take a more conservative approach of depending on the compile configuration if master isn't there.
dd.addDependencyConfiguration("optional", "master(compile)")
} else {
dd.addDependencyConfiguration("runtime", "compile(*)")
dd.addDependencyConfiguration("runtime", "runtime(*)")
- // FIX - Here we take a mroe conservative approach of depending on the compile configuration if master isn't there.
+ // FIX - Here we take a more conservative approach of depending on the compile configuration if master isn't there.
dd.addDependencyConfiguration("runtime", "master(compile)")
}
}
@@ -97,7 +97,7 @@ object ReplaceMavenConfigurationMappings {
new PomModuleDescriptorBuilder.ConfMapper {
def addMappingConfs(dd: DefaultDependencyDescriptor, isOptional: Boolean): Unit = {
dd.addDependencyConfiguration("test", "runtime(*)")
- // FIX - Here we take a mroe conservative approach of depending on the compile configuration if master isn't there.
+ // FIX - Here we take a more conservative approach of depending on the compile configuration if master isn't there.
dd.addDependencyConfiguration("test", "master(compile)")
}
}
@@ -107,7 +107,7 @@ object ReplaceMavenConfigurationMappings {
"system",
new PomModuleDescriptorBuilder.ConfMapper {
def addMappingConfs(dd: DefaultDependencyDescriptor, isOptional: Boolean): Unit = {
- // FIX - Here we take a mroe conservative approach of depending on the compile configuration if master isn't there.
+ // FIX - Here we take a more conservative approach of depending on the compile configuration if master isn't there.
dd.addDependencyConfiguration("system", "master(compile)")
}
}
diff --git a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/Ivy.scala b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/Ivy.scala
index 9867a09b0..ed1e11999 100644
--- a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/Ivy.scala
+++ b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/Ivy.scala
@@ -77,7 +77,7 @@ final class IvySbt(
Message.setDefaultLogger(originalLogger)
}
}
- // Ivy is not thread-safe nor can the cache be used concurrently.
+ // Ivy is neither thread-safe nor can the cache be used concurrently.
// If provided a GlobalLock, we can use that to ensure safe access to the cache.
// Otherwise, we can at least synchronize within the JVM.
// For thread-safety in particular, Ivy uses a static DocumentBuilder, which is not thread-safe.
diff --git a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/IvyActions.scala b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/IvyActions.scala
index 55d3dfb7c..c8e08f722 100644
--- a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/IvyActions.scala
+++ b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/IvyActions.scala
@@ -341,8 +341,8 @@ object IvyActions {
}
/**
- * Resolves and retrieves a module with a cache mechanism defined
- * here.
+ * Resolves and retrieves a module with a cache mechanism defined in
+ * sbt Cached Resolution.
*
* It's the cached version of [[resolveAndRetrieve]].
*
diff --git a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ProjectResolver.scala b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ProjectResolver.scala
index 18a1810bb..f5d4d1d9c 100644
--- a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ProjectResolver.scala
+++ b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ProjectResolver.scala
@@ -56,7 +56,7 @@ class ProjectResolver(name: String, map: Map[ModuleRevisionId, ModuleDescriptor]
r
}
- // this resolver nevers locates artifacts, only resolves dependencies
+ // this resolver never locates artifacts, only resolves dependencies
def exists(artifact: IArtifact) = false
def locate(artifact: IArtifact) = null
def download(artifacts: Array[IArtifact], options: DownloadOptions): DownloadReport = {
diff --git a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/MergeDescriptors.scala b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/MergeDescriptors.scala
index 1c74a89fe..7b93a7ab5 100644
--- a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/MergeDescriptors.scala
+++ b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/MergeDescriptors.scala
@@ -135,7 +135,7 @@ private[sbt] final case class MergedDescriptors(a: DependencyDescriptor, b: Depe
)
addConfigurations(dd, ArraySeq.unsafeWrapArray(a.getModuleConfigurations))
// If the dependency descriptor is empty, then it means that it has been created from a POM file. In this case,
- // it is correct to create a seemingly non-existent dependency artifact.
+ // it is correct to create a seemingly nonexistent dependency artifact.
if (a.getAllDependencyArtifacts.isEmpty) Array(dd)
else a.getAllDependencyArtifacts filter (_ == dd)
}
diff --git a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/SbtChainResolver.scala b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/SbtChainResolver.scala
index 96558b6b0..676abb830 100644
--- a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/SbtChainResolver.scala
+++ b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/SbtChainResolver.scala
@@ -406,7 +406,7 @@ private[sbt] case class SbtChainResolver(
}
}
- /** Ported from BasicResolver#findFirstAirfactRef. */
+ /** Ported from BasicResolver#findFirstArtifactRef. */
private def findFirstArtifactRef(
md: ModuleDescriptor,
data: ResolveData,
diff --git a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/mavenint/PomExtraDependencyAttributes.scala b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/mavenint/PomExtraDependencyAttributes.scala
index 3f311b3ce..0161aae5e 100644
--- a/lm-ivy/src/main/scala/sbt/internal/librarymanagement/mavenint/PomExtraDependencyAttributes.scala
+++ b/lm-ivy/src/main/scala/sbt/internal/librarymanagement/mavenint/PomExtraDependencyAttributes.scala
@@ -51,7 +51,7 @@ object PomExtraDependencyAttributes {
* Mutates the to collection with the extra dependency attributes from the incoming pom properties list.
*
* @param from The properties directly off a maven POM file
- * @param to The aaether properties where we can write whatever we want.
+ * @param to The aether properties where we can write whatever we want.
*
* TODO - maybe we can just parse this directly here. Note the `readFromAether` method uses
* whatever we set here.
diff --git a/lm-ivy/src/test/scala/sbt/internal/librarymanagement/ManagedChecksumsSpec.scala b/lm-ivy/src/test/scala/sbt/internal/librarymanagement/ManagedChecksumsSpec.scala
index 48519c14c..72c96e57b 100644
--- a/lm-ivy/src/test/scala/sbt/internal/librarymanagement/ManagedChecksumsSpec.scala
+++ b/lm-ivy/src/test/scala/sbt/internal/librarymanagement/ManagedChecksumsSpec.scala
@@ -45,7 +45,7 @@ object ManagedChecksumsSpec extends BaseIvySpecification {
assert(shaFile.exists(), s"The checksum $Checksum for $file does not exist")
}
- test("Managed checksums should should download the checksum files") {
+ test("Managed checksums should download the checksum files") {
cleanAll()
val updateOptions = UpdateOptions()
val toResolve = module(defaultModuleId, dependencies, None, updateOptions)
diff --git a/lm-ivy/src/test/scala/sbt/internal/librarymanagement/PlatformResolutionSpec.scala b/lm-ivy/src/test/scala/sbt/internal/librarymanagement/PlatformResolutionSpec.scala
index 3e8e8d496..f29873daa 100644
--- a/lm-ivy/src/test/scala/sbt/internal/librarymanagement/PlatformResolutionSpec.scala
+++ b/lm-ivy/src/test/scala/sbt/internal/librarymanagement/PlatformResolutionSpec.scala
@@ -44,7 +44,7 @@ object PlatformResolutionSpec extends BaseIvySpecification {
)
}
- test("None platform can specify .platform(sjs1) depenency") {
+ test("None platform can specify .platform(sjs1) dependency") {
cleanCache()
val m = module(
exampleModuleId("0.6.0"),
@@ -60,7 +60,7 @@ object PlatformResolutionSpec extends BaseIvySpecification {
)
}
- test("sjs1 platform can specify .platform(jvm) depenency") {
+ test("sjs1 platform can specify .platform(jvm) dependency") {
cleanCache()
val m = module(
exampleModuleId("0.6.0"),
diff --git a/lm-ivy/src/test/scala/sbt/internal/librarymanagement/ResolutionSpec.scala b/lm-ivy/src/test/scala/sbt/internal/librarymanagement/ResolutionSpec.scala
index 68154757a..8ef0254ea 100644
--- a/lm-ivy/src/test/scala/sbt/internal/librarymanagement/ResolutionSpec.scala
+++ b/lm-ivy/src/test/scala/sbt/internal/librarymanagement/ResolutionSpec.scala
@@ -25,7 +25,7 @@ abstract class ResolutionSpec extends AbstractEngineSpec {
assert(report.configurations.size == 3)
}
- test("Resolving the unsolvable module should should not work") {
+ test("Resolving the unsolvable module should not work") {
// log.setLevel(Level.Debug)
val m = module(
exampleModuleId("0.2.0"),
diff --git a/main-actions/src/main/scala/sbt/DotGraph.scala b/main-actions/src/main/scala/sbt/DotGraph.scala
index 71b927812..d0fa765c1 100644
--- a/main-actions/src/main/scala/sbt/DotGraph.scala
+++ b/main-actions/src/main/scala/sbt/DotGraph.scala
@@ -41,10 +41,10 @@ object DotGraph {
val mappings =
for {
- (dependsOn, dependants) <- mappedGraph.toSeq
- dependant <- dependants
- if dependant != dependsOn && !dependsOn.isEmpty && !dependant.isEmpty
- } yield "\"" + dependant + "\" -> \"" + dependsOn + "\""
+ (dependsOn, dependents) <- mappedGraph.toSeq
+ dependent <- dependents
+ if dependent != dependsOn && !dependsOn.isEmpty && !dependent.isEmpty
+ } yield "\"" + dependent + "\" -> \"" + dependsOn + "\""
val lines =
("digraph " + graphName + " {") +:
diff --git a/main-actions/src/main/scala/sbt/Mapper.scala b/main-actions/src/main/scala/sbt/Mapper.scala
index 728a67b36..a59918a77 100644
--- a/main-actions/src/main/scala/sbt/Mapper.scala
+++ b/main-actions/src/main/scala/sbt/Mapper.scala
@@ -77,7 +77,7 @@ object Mapper:
* }}}
*
* @param baseDirectory The directory that should be turned into a mappings sequence.
- * @return mappings - The `basicDirectory`'s contents exlcuding `basicDirectory` itself
+ * @return mappings - The `basicDirectory`'s contents excluding `basicDirectory` itself
*/
def contentOf(baseDirectory: File)(using conv: FileConverter): Seq[(VirtualFile, String)] =
(PathFinder(baseDirectory).allPaths --- PathFinder(baseDirectory))
diff --git a/main-actions/src/main/scala/sbt/Pkg.scala b/main-actions/src/main/scala/sbt/Pkg.scala
index f137c7851..74b2b17fa 100644
--- a/main-actions/src/main/scala/sbt/Pkg.scala
+++ b/main-actions/src/main/scala/sbt/Pkg.scala
@@ -40,8 +40,6 @@ import xsbti.{ FileConverter, HashedVirtualFileRef, VirtualFile, VirtualFileRef
object Pkg:
def JarManifest(m: Manifest) = PackageOption.JarManifest(m)
def MainClass(mainClassName: String) = PackageOption.MainClass(mainClassName)
- def MainfestAttributes(attributes: (Attributes.Name, String)*) =
- PackageOption.ManifestAttributes(attributes*)
def ManifestAttributes(attributes: (String, String)*) = {
val converted = for ((name, value) <- attributes) yield (new Attributes.Name(name), value)
PackageOption.ManifestAttributes(converted*)
diff --git a/main-actions/src/main/scala/sbt/Tests.scala b/main-actions/src/main/scala/sbt/Tests.scala
index db0d2d9ff..7601dc6ed 100644
--- a/main-actions/src/main/scala/sbt/Tests.scala
+++ b/main-actions/src/main/scala/sbt/Tests.scala
@@ -542,8 +542,8 @@ object Tests {
sequence(tl, out :: acc)
}
}
- sequence(results.toList, List()) map { ress =>
- val (rs, ms) = ress.unzip { e =>
+ sequence(results.toList, List()) map { res =>
+ val (rs, ms) = res.unzip { e =>
(e.overall, e.events)
}
val m = ms reduce { (m1: Map[String, SuiteResult], m2: Map[String, SuiteResult]) =>
diff --git a/main-command/src/main/scala/sbt/BasicCommands.scala b/main-command/src/main/scala/sbt/BasicCommands.scala
index e5d6ae8bd..1811da0bd 100644
--- a/main-command/src/main/scala/sbt/BasicCommands.scala
+++ b/main-command/src/main/scala/sbt/BasicCommands.scala
@@ -195,7 +195,7 @@ object BasicCommands {
val multiCmdParser: Parser[String] = token(';') ~> OptSpace ~> cmdParser
/*
- * We accept empty commands at the end of the the list as an implementation detail that allows
+ * We accept empty commands at the end of the list as an implementation detail that allows
* for a trailing semi-colon without an extra parser since the cmdParser accepts an empty string
* and the multi parser is `token(';') ~ cmdParser`. We do not want to accept empty commands
* that occur in the middle of the sequence so if we find one, we return a failed parser. If
diff --git a/main-command/src/main/scala/sbt/internal/client/NetworkClient.scala b/main-command/src/main/scala/sbt/internal/client/NetworkClient.scala
index 7cb25e8f3..f9606d27a 100644
--- a/main-command/src/main/scala/sbt/internal/client/NetworkClient.scala
+++ b/main-command/src/main/scala/sbt/internal/client/NetworkClient.scala
@@ -502,7 +502,7 @@ class NetworkClient(
}
/** Called on the response for a returning message. */
- def onReturningReponse(msg: JsonRpcResponseMessage): Unit = {
+ def onReturningResponse(msg: JsonRpcResponseMessage): Unit = {
def printResponse(): Unit = {
msg.result match {
case Some(result) =>
diff --git a/main-command/src/main/scala/sbt/internal/server/ServerHandler.scala b/main-command/src/main/scala/sbt/internal/server/ServerHandler.scala
index 2cbac259d..c6f73231e 100644
--- a/main-command/src/main/scala/sbt/internal/server/ServerHandler.scala
+++ b/main-command/src/main/scala/sbt/internal/server/ServerHandler.scala
@@ -31,7 +31,7 @@ object ServerHandler {
lazy val fallback: ServerHandler = ServerHandler({ handler =>
ServerIntent(
onRequest = { case x => handler.log.debug(s"Unhandled request received: ${x.method}: $x") },
- onResponse = { case x => handler.log.debug(s"Unhandled responce received") },
+ onResponse = { case x => handler.log.debug(s"Unhandled response received") },
onNotification = { case x =>
handler.log.debug(s"Unhandled notification received: ${x.method}: $x")
},
diff --git a/main-settings/src/main/scala/sbt/std/InputWrapper.scala b/main-settings/src/main/scala/sbt/std/InputWrapper.scala
index f1a7c9e0a..0f5e2a126 100644
--- a/main-settings/src/main/scala/sbt/std/InputWrapper.scala
+++ b/main-settings/src/main/scala/sbt/std/InputWrapper.scala
@@ -118,7 +118,7 @@ object InputWrapper:
// untyped trees under typed trees, as the type checker doesn't descend if `tree.tpe == null`.
//
// #1031 The previous attempt to fix this just set the type on `tree`, which worked in cases when the
- // call to `.value` was inside a the task macro and eliminated before the end of the typer phase.
+ // call to `.value` was inside a task macro and eliminated before the end of the typer phase.
// But, if a "naked" call to `.value` left the typer, the superaccessors phase would freak out when
// if hit the untyped trees, before we could get to refchecks and the desired @compileTimeOnly warning.
val typedTree = c.typecheck(tree)
@@ -133,7 +133,7 @@ object InputWrapper:
c.abort(
pos,
"""`value` is removed from input tasks. Use `evaluated` or `inputTaskValue`.
- |See https://www.scala-sbt.org/1.0/docs/Input-Tasks.html for more details.""".stripMargin
+ |See https://www.scala-sbt.org/1.x/docs/Input-Tasks.html for more details.""".stripMargin
)
}
InputWrapper.wrapInit[A1](c)(ts, pos)
diff --git a/main/src/main/scala/sbt/Defaults.scala b/main/src/main/scala/sbt/Defaults.scala
index 915d4525d..c9629616c 100644
--- a/main/src/main/scala/sbt/Defaults.scala
+++ b/main/src/main/scala/sbt/Defaults.scala
@@ -2239,7 +2239,7 @@ object Defaults extends BuildCommon {
val store = analysisStore(compileAnalysisFile)
val contents = store.unsafeGet()
if (exportP) {
- // this stores the eary analysis (again) in case the subproject contains a macro
+ // this stores the early analysis (again) in case the subproject contains a macro
setup.earlyAnalysisStore.toOption map { earlyStore =>
earlyStore.set(contents)
}
@@ -2822,7 +2822,7 @@ object Classpaths {
val vf = converter.toVirtualFile(p)
FileStamp(stamper.library(vf)).map(p -> _)
},
- // Note: invoking this task from shell would block indefinately because it will
+ // Note: invoking this task from shell would block indefinitely because it will
// wait for the upstream compilation to start.
dependencyPicklePath := {
// This is a conditional task. Do not refactor.
@@ -3498,17 +3498,17 @@ object Classpaths {
}
)
- def warnResolversConflict(ress: Seq[Resolver], log: Logger): Unit = {
- val resset = ress.toSet
- for ((name, r) <- resset groupBy (_.name) if r.size > 1) {
+ def warnResolversConflict(resolverList: Seq[Resolver], log: Logger): Unit = {
+ val resolverSet = resolverList.toSet
+ for ((name, r) <- resolverSet groupBy (_.name) if r.size > 1) {
log.warn(
"Multiple resolvers having different access mechanism configured with same name '" + name + "'. To avoid conflict, Remove duplicate project resolvers (`resolvers`) or rename publishing resolver (`publishTo`)."
)
}
}
- private[sbt] def errorInsecureProtocol(ress: Seq[Resolver], log: Logger): Unit = {
- val bad = !ress.forall(!_.validateProtocol(log))
+ private[sbt] def errorInsecureProtocol(resolverList: Seq[Resolver], log: Logger): Unit = {
+ val bad = !resolverList.forall(!_.validateProtocol(log))
if (bad) {
sys.error("insecure protocol is unsupported")
}
@@ -3717,7 +3717,7 @@ object Classpaths {
val pluginClasspath = unit.plugins.pluginData.dependencyClasspath.toVector
// Exclude directories: an approximation to whether they've been published
// Note: it might be a redundant legacy from sbt 0.13/1.x times where the classpath contained directories
- // but it's left jsut in case
+ // but it's left just in case
val pluginJars = pluginClasspath.filter: x =>
!Files.isDirectory(converter.toPath(x.data))
val pluginIDs: Vector[ModuleID] = pluginJars.flatMap(_.get(moduleIDStr).map: str =>
diff --git a/main/src/main/scala/sbt/TemplateCommandUtil.scala b/main/src/main/scala/sbt/TemplateCommandUtil.scala
index 833c21984..904ec3f89 100644
--- a/main/src/main/scala/sbt/TemplateCommandUtil.scala
+++ b/main/src/main/scala/sbt/TemplateCommandUtil.scala
@@ -140,7 +140,8 @@ private[sbt] object TemplateCommandUtil {
private def getInterfaceClass(name: String, loader: ClassLoader) =
Class.forName(name, true, loader)
- // Cache files under ~/.sbt/0.13/templates/org_name_version
+ // sbt_version is typically 0.13 or 1.0
+ // Cache files under ~/.sbt/sbt_version/templates/org_name_version
private def classpathForInfo(
info: TemplateResolverInfo,
ivyConf: IvyConfiguration,
diff --git a/main/src/main/scala/sbt/Terminal.scala b/main/src/main/scala/sbt/Terminal.scala
index 71f6ef2b0..a9fb2a8bc 100644
--- a/main/src/main/scala/sbt/Terminal.scala
+++ b/main/src/main/scala/sbt/Terminal.scala
@@ -52,7 +52,7 @@ trait Terminal {
/**
* Sets the mode of the terminal. By default,the terminal will be in canonical mode
* with echo enabled. This means that the terminal's inputStream will not return any
- * bytes until a newline is received and that all of the characters inputed by the
+ * bytes until a newline is received and that all of the characters inputted by the
* user will be echoed to the terminal's output stream.
*
* @param canonical toggles whether or not the terminal input stream is line buffered
diff --git a/main/src/main/scala/sbt/internal/CommandStrings.scala b/main/src/main/scala/sbt/internal/CommandStrings.scala
index 2a160ddf0..979702e62 100644
--- a/main/src/main/scala/sbt/internal/CommandStrings.scala
+++ b/main/src/main/scala/sbt/internal/CommandStrings.scala
@@ -382,7 +382,7 @@ $SwitchCommand [ @paragraph
0.1-SNAPSHOT> style="" penwidth="5" color="#B6E316"]
| "justatransitivedependencyproject:justatransitivedependencyproject_2.9.2:0.1-SNAPSHOT"[shape=box label=
0.1-SNAPSHOT> style="" penwidth="5" color="#0E92BE"]
- | "justatransivitedependencyendpointproject:justatransivitedependencyendpointproject_2.9.2:0.1-SNAPSHOT"[shape=box label=
0.1-SNAPSHOT> style="" penwidth="5" color="#9EAD1B"]
+ | "justatransitivedependencyendpointproject:justatransitivedependencyendpointproject_2.9.2:0.1-SNAPSHOT"[shape=box label=
0.1-SNAPSHOT> style="" penwidth="5" color="#9EAD1B"]
| "test_project:test_project_2.9.2:0.1-SNAPSHOT"[shape=box label=
0.1-SNAPSHOT> style="" penwidth="5" color="#C37661"]
- | "justatransitivedependencyproject:justatransitivedependencyproject_2.9.2:0.1-SNAPSHOT" -> "justatransivitedependencyendpointproject:justatransivitedependencyendpointproject_2.9.2:0.1-SNAPSHOT"
+ | "justatransitivedependencyproject:justatransitivedependencyproject_2.9.2:0.1-SNAPSHOT" -> "justatransitivedependencyendpointproject:justatransitivedependencyendpointproject_2.9.2:0.1-SNAPSHOT"
| "test_project:test_project_2.9.2:0.1-SNAPSHOT" -> "justadependencyproject:justadependencyproject_2.9.2:0.1-SNAPSHOT"
| "test_project:test_project_2.9.2:0.1-SNAPSHOT" -> "justatransitivedependencyproject:justatransitivedependencyproject_2.9.2:0.1-SNAPSHOT"
|}
diff --git a/sbt-app/src/sbt-test/dependency-graph/testHtmlFileGeneration/build.sbt b/sbt-app/src/sbt-test/dependency-graph/testHtmlFileGeneration/build.sbt
index 7a2eb062d..8cf1ccf2f 100644
--- a/sbt-app/src/sbt-test/dependency-graph/testHtmlFileGeneration/build.sbt
+++ b/sbt-app/src/sbt-test/dependency-graph/testHtmlFileGeneration/build.sbt
@@ -3,10 +3,10 @@ import scala.collection.mutable.ListBuffer
ThisBuild / scalaVersion := "2.9.2"
ThisBuild / version := "0.1-SNAPSHOT"
-lazy val justATransiviteDependencyEndpointProject = project
+lazy val justATransitiveDependencyEndpointProject = project
lazy val justATransitiveDependencyProject = project
- .dependsOn(justATransiviteDependencyEndpointProject)
+ .dependsOn(justATransitiveDependencyEndpointProject)
lazy val justADependencyProject = project
diff --git a/sbt-app/src/sbt-test/dependency-management/platform/build.sbt b/sbt-app/src/sbt-test/dependency-management/platform/build.sbt
index 67afb74c2..7098826d5 100644
--- a/sbt-app/src/sbt-test/dependency-management/platform/build.sbt
+++ b/sbt-app/src/sbt-test/dependency-management/platform/build.sbt
@@ -4,7 +4,7 @@ scalaVersion := "2.13.10"
platform := Platform.sjs1
// By default platformOpt field is set to None
-// Given %% lm engines will sustitute it with the subproject's platform suffix on `update`
+// Given %% lm engines will substitute it with the subproject's platform suffix on `update`
libraryDependencies ++= Seq(
"com.github.scopt" %% "scopt" % "4.1.0",
"junit" % "junit" % "4.13.1",
diff --git a/sbt-app/src/sbt-test/dependency-management/sbt-plugin-diamond/build.sbt b/sbt-app/src/sbt-test/dependency-management/sbt-plugin-diamond/build.sbt
index 6b213123d..4689591b6 100644
--- a/sbt-app/src/sbt-test/dependency-management/sbt-plugin-diamond/build.sbt
+++ b/sbt-app/src/sbt-test/dependency-management/sbt-plugin-diamond/build.sbt
@@ -7,7 +7,7 @@
// Depending on the version of sbt-plugin-example-diamond, we test different patterns
// of dependencies:
// * Some dependencies were published using the deprecated Maven paths, some with the new
-// * Wheter the dependency on sbt-plugin-example-bottom needs conflict resolution or not
+// * Whether the dependency on sbt-plugin-example-bottom needs conflict resolution or not
inThisBuild(
Seq(
diff --git a/sbt-app/src/sbt-test/dependency-management/update-sbt-classifiers/project/build.sbt b/sbt-app/src/sbt-test/dependency-management/update-sbt-classifiers/project/build.sbt
index c5424bcc7..d5e67a39e 100644
--- a/sbt-app/src/sbt-test/dependency-management/update-sbt-classifiers/project/build.sbt
+++ b/sbt-app/src/sbt-test/dependency-management/update-sbt-classifiers/project/build.sbt
@@ -1,4 +1,4 @@
-// The library surves two purposes:
+// The library serves two purposes:
// 1. add some non-standard library to the meta-build classpath to later check that it's included into updateSbtClassifiers
// 2. use assertions from junit in custom assertion in `build.sbt` of current scripted test
libraryDependencies += "junit" % "junit" % "4.13.2"
\ No newline at end of file
diff --git a/sbt-app/src/sbt-test/project1/sbt-plugin/src/main/scala/myplugin/MyPlugin.scala b/sbt-app/src/sbt-test/project1/sbt-plugin/src/main/scala/myplugin/MyPlugin.scala
index 981bc1600..f3439763e 100644
--- a/sbt-app/src/sbt-test/project1/sbt-plugin/src/main/scala/myplugin/MyPlugin.scala
+++ b/sbt-app/src/sbt-test/project1/sbt-plugin/src/main/scala/myplugin/MyPlugin.scala
@@ -9,13 +9,13 @@ case object MyPlugin extends AutoPlugin {
}
import autoImport._
override def projectSettings: Seq[Def.Setting[_]] = Seq(
- // should not produce a "@nowarn annotation does not suppres any warnings" warning
+ // should not produce a "@nowarn annotation does not suppress any warnings" warning
helloWorld := {
streams.value.log("Hello world")
"Hello world"
},
Compile / compile := {
- helloWorld.value // shoult not produce "a pure expression does nothing" warning
+ helloWorld.value // should not produce "a pure expression does nothing" warning
(Compile / compile).value
}
)
diff --git a/sbt-app/src/sbt-test/reporter/nowarn/build.sbt b/sbt-app/src/sbt-test/reporter/nowarn/build.sbt
index c1d862a45..a9a917229 100644
--- a/sbt-app/src/sbt-test/reporter/nowarn/build.sbt
+++ b/sbt-app/src/sbt-test/reporter/nowarn/build.sbt
@@ -23,6 +23,6 @@ def check(expectation: Boolean) = Def.task[Unit] {
else if (!expectation && contains)
sys.error(s"compiler output still contains warning")
else {
- IO.write(lastLog, "") // clear the backing log for for 'last'.
+ IO.write(lastLog, "") // clear the backing log for 'last'.
}
}
diff --git a/sbt-app/src/sbt-test/run/fork-loader/build.sbt b/sbt-app/src/sbt-test/run/fork-loader/build.sbt
index b440e9f31..6067d3537 100644
--- a/sbt-app/src/sbt-test/run/fork-loader/build.sbt
+++ b/sbt-app/src/sbt-test/run/fork-loader/build.sbt
@@ -1,4 +1,4 @@
-val scalcheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
+val scalacheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
ThisBuild / scalaVersion := "2.12.20"
@@ -6,5 +6,5 @@ lazy val root = (project in file("."))
.settings(
name := "forked-test",
organization := "org.example",
- libraryDependencies += scalcheck % Test
+ libraryDependencies += scalacheck % Test
)
diff --git a/sbt-app/src/sbt-test/source-dependencies/macro-annotation/macros/src/main/scala/Macros.scala b/sbt-app/src/sbt-test/source-dependencies/macro-annotation/macros/src/main/scala/Macros.scala
index 672c3d268..3d70daba5 100644
--- a/sbt-app/src/sbt-test/source-dependencies/macro-annotation/macros/src/main/scala/Macros.scala
+++ b/sbt-app/src/sbt-test/source-dependencies/macro-annotation/macros/src/main/scala/Macros.scala
@@ -8,9 +8,9 @@ object HelloMacro {
annottees match {
case (classDecl: ClassDef) :: Nil =>
- val q"$mods class $name[..$tparams] $ctorMods(...$paramss) extends { ..$earlydefns } with ..$bases { $self => ..$body }" = classDecl
+ val q"$mods class $name[..$tparams] $ctorMods(...$params) extends { ..$earlydefns } with ..$bases { $self => ..$body }" = classDecl
q"""
- case class $name(...$paramss) extends ..$bases {
+ case class $name(...$params) extends ..$bases {
..$body
def hello = "Hello"
}
diff --git a/sbt-app/src/sbt-test/tests/nested-tests/build.sbt b/sbt-app/src/sbt-test/tests/nested-tests/build.sbt
index 52030f3c9..ac0b2cdf9 100644
--- a/sbt-app/src/sbt-test/tests/nested-tests/build.sbt
+++ b/sbt-app/src/sbt-test/tests/nested-tests/build.sbt
@@ -1,8 +1,8 @@
-val scalcheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
+val scalacheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
ThisBuild / scalaVersion := "2.12.20"
ThisBuild / version := "0.0.1"
ThisBuild / organization := "org.catastrophe"
-libraryDependencies += scalcheck % Test
+libraryDependencies += scalacheck % Test
name := "broken"
diff --git a/sbt-app/src/sbt-test/tests/order/build.sbt b/sbt-app/src/sbt-test/tests/order/build.sbt
index 10db9515d..9fb50443f 100644
--- a/sbt-app/src/sbt-test/tests/order/build.sbt
+++ b/sbt-app/src/sbt-test/tests/order/build.sbt
@@ -1,5 +1,5 @@
-val scalcheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
+val scalacheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
ThisBuild / scalaVersion := "2.12.20"
Test / parallelExecution := false
-libraryDependencies += scalcheck % Test
+libraryDependencies += scalacheck % Test
diff --git a/sbt-app/src/sbt-test/tests/scala-instance-classloader/src/test/scala/Test.scala b/sbt-app/src/sbt-test/tests/scala-instance-classloader/src/test/scala/Test.scala
index 666c041b5..0406a1ab5 100644
--- a/sbt-app/src/sbt-test/tests/scala-instance-classloader/src/test/scala/Test.scala
+++ b/sbt-app/src/sbt-test/tests/scala-instance-classloader/src/test/scala/Test.scala
@@ -13,10 +13,10 @@ class BadTest {
// * Try to load that same something from the THREAD CONTEXT classloader.
// * Ensure we can do both, i.e. the second used to be filtered and broken.
val system = ActorSystem()
- def evilGetThreadExectionContextName =
+ def evilGetThreadExecutionContextName =
system.asInstanceOf[ActorSystemImpl].internalCallingThreadExecutionContext.getClass.getName
Await.result(system.terminate(), 5.seconds)
val expected = "scala.concurrent.Future$InternalCallbackExecutor$"
- Assert.assertEquals("Failed to grab appropriate Akka name", expected, evilGetThreadExectionContextName)
+ Assert.assertEquals("Failed to grab appropriate Akka name", expected, evilGetThreadExecutionContextName)
}
}
\ No newline at end of file
diff --git a/sbt-app/src/sbt-test/watch/file-input-aggregation/project/Build.scala b/sbt-app/src/sbt-test/watch/file-input-aggregation/project/Build.scala
index 2f42332a4..f057ed37b 100644
--- a/sbt-app/src/sbt-test/watch/file-input-aggregation/project/Build.scala
+++ b/sbt-app/src/sbt-test/watch/file-input-aggregation/project/Build.scala
@@ -56,7 +56,7 @@ object Build {
Test / checkTriggers := {
val testTriggers = triggers((Test / test / transitiveDynamicInputs).value).toSet
// This validates that since the "test.txt" trigger is only added to the Test / test task,
- // that the Test / compile does not pick it up. Both of them pick up the the triggers that
+ // that the Test / compile does not pick it up. Both of them pick up the triggers that
// are found in the test above for the compile configuration because of the transitive
// classpath dependency that is added in Defaults.internalDependencies.
val compileTriggers = triggers((Test / compile / transitiveDynamicInputs).value).toSet
diff --git a/server-test/src/server-test/buildserver/twirlProj/src/main/twirl/main.scala.html b/server-test/src/server-test/buildserver/twirlProj/src/main/twirl/main.scala.html
index ca8f06954..0fe6190db 100644
--- a/server-test/src/server-test/buildserver/twirlProj/src/main/twirl/main.scala.html
+++ b/server-test/src/server-test/buildserver/twirlProj/src/main/twirl/main.scala.html
@@ -6,7 +6,7 @@
@tilte
+ @title_
@for(paragraph <- paragraphs) {