-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CommunitySuite: add Intellij Scala plugin code
- Loading branch information
Showing
4 changed files
with
106 additions
and
3 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
98 changes: 98 additions & 0 deletions
98
...intellij/src/test/scala/org/scalafmt/community/intellij/CommunityIntellijScalaSuite.scala
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,98 @@ | ||
package org.scalafmt.community.intellij | ||
|
||
import org.scalafmt.community.common.CommunityRepoSuite | ||
import org.scalafmt.community.common.TestStats | ||
|
||
import scala.meta._ | ||
|
||
abstract class CommunityIntellijScalaSuite(name: String) | ||
extends CommunityRepoSuite( | ||
"https://github.com/JetBrains/intellij-scala.git", | ||
name, | ||
) | ||
|
||
class CommunityIntellijScala_2024_2_Suite | ||
extends CommunityIntellijScalaSuite("intellij-scala-2024.2") { | ||
|
||
override protected def builds = Seq(getBuild( | ||
"2024.2.28", | ||
dialects.Scala213, | ||
3469, | ||
excluded = "glob:**/{testdata,testData,resources}/**" :: Nil, | ||
fileOverride = """|{ | ||
| "glob:**/sbt/sbt-impl/workspace-entities/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/structure-view/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/repl/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/tasty-reader/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/package-search-client/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/integration/textAnalysis/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/integration/features-trainer/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
|} | ||
|""".stripMargin, | ||
)) | ||
|
||
} | ||
|
||
class CommunityIntellijScala_2024_3_Suite | ||
extends CommunityIntellijScalaSuite("intellij-scala-2024.3") { | ||
|
||
override protected def builds = Seq(getBuild( | ||
"2024.3.4", | ||
dialects.Scala213, | ||
3475, | ||
excluded = "glob:**/{testdata,testData,resources}/**" :: Nil, | ||
fileOverride = """|{ | ||
| "glob:**/sbt/sbt-impl/workspace-entities/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/structure-view/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/repl/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/tasty-reader/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/package-search-client/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scalac-patches/scalac3-patches/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/integration/textAnalysis/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
| "glob:**/scala/integration/features-trainer/**" { | ||
| runner.dialect = scala33 | ||
| } | ||
|} | ||
|""".stripMargin, | ||
statsPerStyle = Map( | ||
"classic" -> TestStats.Style(expectedStatesVisited = 5134862), | ||
"classicWithAlign" -> TestStats.Style(expectedStatesVisited = 5139218), | ||
"classicWithRewrites" -> TestStats.Style(expectedStatesVisited = 5134172), | ||
"fold" -> TestStats.Style(expectedStatesVisited = 7953034), | ||
"keep" -> TestStats.Style(expectedStatesVisited = 4737913), | ||
"keepWithAlign" -> TestStats.Style(expectedStatesVisited = 4739065), | ||
"keepWithRewrites" -> TestStats.Style(expectedStatesVisited = 4748954), | ||
"keepWithScalaJS" -> TestStats.Style(expectedStatesVisited = 5167360), | ||
"unfold" -> TestStats.Style(expectedStatesVisited = 5611808), | ||
), | ||
)) | ||
|
||
} |