Skip to content

Commit

Permalink
remove final modifier from object
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Oct 6, 2024
1 parent 3d99317 commit 3104b4c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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[_]]) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/de/heikoseeberger/sbtheader/HeaderPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/de/heikoseeberger/sbtheader/License.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/de/heikoseeberger/sbtheader/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ package object sbtheader {
}
}

private final object FileOps {
private object FileOps {
val extensionPattern: Regex = """.+\.(.+)""".r
}

Expand Down

0 comments on commit 3104b4c

Please sign in to comment.