diff --git a/src/main/scala/de/heikoseeberger/sbtheader/AutomateHeaderPlugin.scala b/src/main/scala/de/heikoseeberger/sbtheader/AutomateHeaderPlugin.scala index 8f741cd..b0e6545 100644 --- a/src/main/scala/de/heikoseeberger/sbtheader/AutomateHeaderPlugin.scala +++ b/src/main/scala/de/heikoseeberger/sbtheader/AutomateHeaderPlugin.scala @@ -26,7 +26,7 @@ import sbt.Keys.compile */ object AutomateHeaderPlugin extends AutoPlugin { - final object autoImport { + object autoImport { def automateHeaderSettings(configurations: Configuration*): Seq[Setting[_]] = configurations.foldLeft(List.empty[Setting[_]]) { diff --git a/src/main/scala/de/heikoseeberger/sbtheader/HeaderPlugin.scala b/src/main/scala/de/heikoseeberger/sbtheader/HeaderPlugin.scala index 900a1f2..74b3d33 100644 --- a/src/main/scala/de/heikoseeberger/sbtheader/HeaderPlugin.scala +++ b/src/main/scala/de/heikoseeberger/sbtheader/HeaderPlugin.scala @@ -44,13 +44,13 @@ import scala.util.matching.Regex object HeaderPlugin extends AutoPlugin { - final object autoImport { + object autoImport { val HeaderLicense = License val HeaderLicenseStyle = LicenseStyle - final object HeaderPattern { + object HeaderPattern { def commentBetween(start: String, middle: String, end: String): Regex = raw"""(?s)($start(?!\$middle).*?$end(?:\n|\r|\r\n)+)(.*)""".r diff --git a/src/main/scala/de/heikoseeberger/sbtheader/License.scala b/src/main/scala/de/heikoseeberger/sbtheader/License.scala index 36d4f44..8e7defe 100644 --- a/src/main/scala/de/heikoseeberger/sbtheader/License.scala +++ b/src/main/scala/de/heikoseeberger/sbtheader/License.scala @@ -161,7 +161,7 @@ object License { } } - final object MPLv2_NoCopyright extends License { + object MPLv2_NoCopyright extends License { override val text: String = s"""|This Source Code Form is subject to the terms of the Mozilla Public diff --git a/src/main/scala/de/heikoseeberger/sbtheader/package.scala b/src/main/scala/de/heikoseeberger/sbtheader/package.scala index ac9b579..a12beae 100644 --- a/src/main/scala/de/heikoseeberger/sbtheader/package.scala +++ b/src/main/scala/de/heikoseeberger/sbtheader/package.scala @@ -34,7 +34,7 @@ package object sbtheader { } } - private final object FileOps { + private object FileOps { val extensionPattern: Regex = """.+\.(.+)""".r }