object FileUtils
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FileUtils
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- final case class FileStatistics(linesOfCode: Long, longestLineLength: Int, containsMarker: Boolean) extends Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cleanPath(sourceFileName: String): String
Cleans the given path as String and removes unwanted elements that occur during transpilation on the Windows platform and/or CI environments.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contentMapFromFile(path: Path): Map[Int, String]
- def copyToDirectory(from: File, directory: File, config: Config)(implicit copyOptions: CopyOptions = File.CopyOptions.default): File
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fileStatistics(lines: Seq[String]): FileStatistics
Calculates various statistics of the source.
Calculates various statistics of the source.
- lines of code
- longest line of code
- containment of a given marker
This implementation is just as fast as the unix word count program
wc -l. By using Scala BufferedSource we gain a lot of performance as it uses a Java PushbackReader and BufferedReader. - def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getFileTree(rootPath: Path, config: Config, extensions: List[String], filterIgnoredFiles: Boolean = true): List[Path]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logAndClearExcludedPaths(): Unit
- def md5(files: Seq[Path]): String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def positionLookupTables(source: String): (SortedMap[Int, Int], SortedMap[Int, Int])
- def readLinesInFile(path: Path): Seq[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()