Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove final modifier from object #325

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading