Skip to content

Commit

Permalink
Merge pull request #328 from playframework/repo-sync/github/default
Browse files Browse the repository at this point in the history
🔄 Synced file(s) with playframework/.github
  • Loading branch information
ihostage authored Nov 9, 2022
2 parents 40a0231 + f734dde commit 34cc1c6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
10 changes: 0 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,3 @@ Global / onLoad := (Global / onLoad).value.andThen { s =>
dynverAssertTagVersion.value
s
}

addCommandAlias(
"validateCode",
List(
"headerCheckAll",
"scalafmtSbtCheck",
"scalafmtCheckAll",
"javafmtCheckAll",
).mkString(";")
)
26 changes: 26 additions & 0 deletions common.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// NOTE: !!! THIS IS A COPY !!! //
// For edit this file use a main version in https://github.com/playframework/.github/blob/main/sbt/common.sbt //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////

addCommandAlias(
"formatCode",
List(
"headerCreateAll",
"scalafmtSbt",
"scalafmtAll",
"javafmtAll"
).mkString(";")
)

addCommandAlias(
"validateCode",
List(
"headerCheckAll",
"scalafmtSbtCheck",
"scalafmtCheckAll",
"javafmtCheckAll"
).mkString(";")
)

0 comments on commit 34cc1c6

Please sign in to comment.