File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 5
5
// To edit this file use the main version in https://github.com/playframework/.github/blob/main/sbt/common.sbt //
6
6
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
7
8
+ /**
9
+ * If you need extra commands to format source code or other documents, add following line to your `build.sbt`
10
+ * {{{
11
+ * val _ = sys.props += ("sbt_formatCode" -> List("<command1>", "<command2>",...).mkString(";"))
12
+ * }}}
13
+ */
8
14
addCommandAlias(
9
15
" formatCode" ,
10
16
List (
11
17
" headerCreateAll" ,
12
18
" scalafmtSbt" ,
13
19
" scalafmtAll" ,
14
20
" javafmtAll"
15
- ).mkString(" ;" )
21
+ ).mkString(" ;" ) + sys.props.get( " sbt_formatCode " ).map( " ; " + _).getOrElse( " " )
16
22
)
17
23
24
+ /**
25
+ * If you need extra commands to validate source code or other documents, add following line to your `build.sbt`
26
+ * {{{
27
+ * val _ = sys.props += ("sbt_validateCode" -> List("<command1>", "<command2>",...).mkString(";"))
28
+ * }}}
29
+ */
18
30
addCommandAlias(
19
31
" validateCode" ,
20
32
List (
21
33
" headerCheckAll" ,
22
34
" scalafmtSbtCheck" ,
23
35
" scalafmtCheckAll" ,
24
36
" javafmtCheckAll"
25
- ).mkString(" ;" )
37
+ ).mkString(" ;" ) + sys.props.get( " sbt_validateCode " ).map( " ; " + _).getOrElse( " " )
26
38
)
You can’t perform that action at this time.
0 commit comments