Skip to content

Commit cce6a74

Browse files
committed
Add -indent and -no-indent compiler flags
1 parent 29d1a35 commit cce6a74

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/src/main/scala/org/typelevel/scalacoptions/ScalacOptions.scala

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ private[scalacoptions] trait ScalacOptions {
6060
val feature =
6161
ScalacOption("-feature", _ => true)
6262

63+
/** Turn on bracket-less style */
64+
val indent = other("-indent", _ >= V3_0_0)
65+
66+
/** Turn off bracket-less style */
67+
val noIndent = other("-no-indent", _ >= V3_0_0)
68+
6369
/** Compile for a specific version of the Java platform. Supported targets: 8, 9, ..., 17, 18.
6470
*
6571
* The java-output-version flag is supported only on JDK 9 and above, since it relies on the

0 commit comments

Comments
 (0)