replace unicode arrows
* ⇒, →, ← * because we don't want to show them in documentation snippets and then it's complicated to avoid that when snippets are located in src/test/scala in individual modules * dont replace object `→` in FSM.scala and PersistentFSM.scala
This commit is contained in:
parent
e4d38f92a4
commit
5c96a5f556
1521 changed files with 18846 additions and 18786 deletions
|
|
@ -68,22 +68,22 @@ class ProjectFileIgnoreSupport(ignoreConfigFile: File, descriptor: String) {
|
|||
def getPackageName0(fileType: String): String = {
|
||||
import java.io.{File => JFile}
|
||||
fileName.split(JFile.separatorChar)
|
||||
.dropWhile(part ⇒ part != fileType)
|
||||
.dropWhile(part => part != fileType)
|
||||
.drop(1)
|
||||
.dropRight(1)
|
||||
.mkString(".")
|
||||
}
|
||||
|
||||
fileName.split('.').lastOption match {
|
||||
case Some(fileType) ⇒
|
||||
case Some(fileType) =>
|
||||
fileType match {
|
||||
case "java" ⇒
|
||||
case "java" =>
|
||||
Option(getPackageName0("java"))
|
||||
case "scala" ⇒
|
||||
case "scala" =>
|
||||
Option(getPackageName0("scala"))
|
||||
case _ ⇒ None
|
||||
case _ => None
|
||||
}
|
||||
case None ⇒ None
|
||||
case None => None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue