Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.0.0"
version = "3.0.8"
align = some
align {
arrowEnumeratorGenerator = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

2 changes: 0 additions & 2 deletions src/sbt-test/config/fail-on-error/src/main/scala/hello.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

4 changes: 2 additions & 2 deletions src/sbt-test/config/scalastyle-config/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ resolvers += "sonatype-snapshots" at "https://oss.sonatype.org/content/repositor

{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null)
if (pluginVersion == null)
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
else addSbtPlugin("com.beautiful-scala" % "sbt-scalastyle" % pluginVersion)
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

2 changes: 0 additions & 2 deletions src/sbt-test/errors-warnings/error/src/main/scala/hello.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

2 changes: 0 additions & 2 deletions src/sbt-test/errors-warnings/info/src/main/scala/hello.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

2 changes: 1 addition & 1 deletion src/sbt-test/generate/generate-directory/build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
scalastyleConfig := file("foo/scalastyle-config.xml")

version := "0.1"

scalaVersion := "2.12.8"
4 changes: 2 additions & 2 deletions src/sbt-test/generate/generate-directory/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ resolvers += "sonatype-snapshots" at "https://oss.sonatype.org/content/repositor

{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null)
if (pluginVersion == null)
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
else addSbtPlugin("com.beautiful-scala" % "sbt-scalastyle" % pluginVersion)
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

2 changes: 1 addition & 1 deletion src/sbt-test/generate/generate/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version := "0.1"

scalaVersion := "2.12.8"
4 changes: 2 additions & 2 deletions src/sbt-test/generate/generate/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ resolvers += "sonatype-snapshots" at "https://oss.sonatype.org/content/repositor

{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null)
if (pluginVersion == null)
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
else addSbtPlugin("com.beautiful-scala" % "sbt-scalastyle" % pluginVersion)
}
}
2 changes: 0 additions & 2 deletions src/sbt-test/generate/generate/src/main/scala/hello.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

2 changes: 1 addition & 1 deletion src/sbt-test/generate/test-generate/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ scalastyleConfig := file("scalastyle-config.xml")
(scalastyleConfig in Test) := file("test-scalastyle-config.xml")

version := "0.1"

scalaVersion := "2.12.8"
4 changes: 2 additions & 2 deletions src/sbt-test/generate/test-generate/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ resolvers += "sonatype-snapshots" at "https://oss.sonatype.org/content/repositor

{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null)
if (pluginVersion == null)
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
else addSbtPlugin("com.beautiful-scala" % "sbt-scalastyle" % pluginVersion)
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

20 changes: 10 additions & 10 deletions src/sbt-test/specific-files/directories/build.sbt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
version := "0.1"

scalaVersion := "2.12.8"

val containsMessage = taskKey[Boolean]("contains message")

containsMessage := {
val search = "File length exceeds"
val filename = "target/scalastyle-result.xml"
val lines = sbt.IO.readLines(file(filename))
val contains = lines.find(s => s.contains(search)).isDefined
if (contains) {
sys.error("Found " + search + " in " + filename)
}
contains
val search = "File length exceeds"
val filename = "target/scalastyle-result.xml"
val lines = sbt.IO.readLines(file(filename))
val contains = lines.find(s => s.contains(search)).isDefined
if (contains) {
sys.error("Found " + search + " in " + filename)
}
contains
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resolvers += "sonatype-snapshots" at "https://oss.sonatype.org/content/repositor

{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null)
if (pluginVersion == null)
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
else addSbtPlugin("com.beautiful-scala" % "sbt-scalastyle" % pluginVersion)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class Example {
def hello(): Unit = {
def hello(): Unit =
println("hello")
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

20 changes: 10 additions & 10 deletions src/sbt-test/specific-files/files/build.sbt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
version := "0.1"

scalaVersion := "2.12.8"

val containsMessage = taskKey[Boolean]("contains message")

containsMessage := {
val search = "File length exceeds"
val filename = "target/scalastyle-result.xml"
val lines = sbt.IO.readLines(file(filename))
val contains = lines.find(s => s.contains(search)).isDefined
if (contains) {
sys.error("Found " + search + " in " + filename)
}
contains
val search = "File length exceeds"
val filename = "target/scalastyle-result.xml"
val lines = sbt.IO.readLines(file(filename))
val contains = lines.find(s => s.contains(search)).isDefined
if (contains) {
sys.error("Found " + search + " in " + filename)
}
contains
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class Example {
def hello(): Unit = {
def hello(): Unit =
println("hello")
}
}
}
2 changes: 0 additions & 2 deletions src/sbt-test/specific-files/files/src/main/scala/hello.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

20 changes: 10 additions & 10 deletions src/sbt-test/specific-files/nonexistent-file/build.sbt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
version := "0.1"

scalaVersion := "2.12.8"

val containsMessage = taskKey[Boolean]("contains message")

containsMessage := {
val search = "File length exceeds"
val filename = "target/scalastyle-result.xml"
val lines = sbt.IO.readLines(file(filename))
val contains = lines.find(s => s.contains(search)).isDefined
if (!contains) {
sys.error("Could not find " + search + " in " + filename)
}
contains
val search = "File length exceeds"
val filename = "target/scalastyle-result.xml"
val lines = sbt.IO.readLines(file(filename))
val contains = lines.find(s => s.contains(search)).isDefined
if (!contains) {
sys.error("Could not find " + search + " in " + filename)
}
contains
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class Example {
def hello(): Unit = {
def hello(): Unit =
println("hello")
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

object Main extends App {
println("hello")
}

object foo {
println("hello")
}

Loading