-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set
javafmtOnCompile := false
by default (#151)
- Loading branch information
1 parent
7bcf57a
commit 1fc9fcc
Showing
18 changed files
with
51 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
plugin/src/sbt-test/sbt-java-formatter/on-compile-false/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// no settings needed |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...t-test/sbt-java-formatter/on-compile/test → .../sbt-java-formatter/on-compile-false/test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
plugin/src/sbt-test/sbt-java-formatter/on-compile-true/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ThisBuild / javafmtOnCompile := true |
1 change: 1 addition & 0 deletions
1
plugin/src/sbt-test/sbt-java-formatter/on-compile-true/project/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.3.0 |
1 change: 1 addition & 0 deletions
1
plugin/src/sbt-test/sbt-java-formatter/on-compile-true/project/plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % System.getProperty("plugin.version")) |
9 changes: 9 additions & 0 deletions
9
...bt-java-formatter/on-compile-true/src/main/java-expected/com/lightbend/BadFormatting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.lightbend; | ||
|
||
public class BadFormatting { | ||
BadFormatting() { | ||
example(); | ||
} | ||
|
||
public void example() {} | ||
} |
6 changes: 6 additions & 0 deletions
6
...bt-test/sbt-java-formatter/on-compile-true/src/main/java/com/lightbend/BadFormatting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.lightbend; | ||
|
||
public class BadFormatting { | ||
BadFormatting () {example();} | ||
public void example () {} | ||
} |
10 changes: 10 additions & 0 deletions
10
plugin/src/sbt-test/sbt-java-formatter/on-compile-true/test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# compile should not trigger formatting | ||
> compile | ||
|
||
#$ exec echo "====== FORMATTED ======" | ||
#$ exec cat src/main/java/com/lightbend/BadFormatting.java | ||
#$ exec echo "====== EXPECTED ======" | ||
#$ exec cat src/main/java-expected/com/lightbend/BadFormatting.java | ||
|
||
#$ exec echo "====== DIFF ======" | ||
$ exec diff src/main/java/com/lightbend/BadFormatting.java src/main/java-expected/com/lightbend/BadFormatting.java |
This file was deleted.
Oops, something went wrong.