You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,6 @@
4
4
5
5
This logic was originally developed in the [sbt-tpolecat](https://github.com/typelevel/sbt-tpolecat) sbt plugin, and this library is intended to enable the reuse of that logic in other build tool plugins, for example [sbt-typelevel](https://github.com/typelevel/sbt-typelevel) and [mill-tpolecat](https://github.com/DavidGregory084/mill-tpolecat).
6
6
7
-
8
7
## Usage
9
8
10
9
This library is published for Scala 2.12.x, 2.13.x and 3.1.x:
@@ -24,25 +23,25 @@ This library offers functions for filtering proposed Scala compiler options acco
24
23
25
24
```scala
26
25
scalacOptions :=ScalacOptions.tokensForVersion(
27
-
ScalaVersion.V3_1_0, // the Scala compiler major, minor, patch version
28
-
ScalacOptions.default // a curated default option set
26
+
ScalaVersion.V3_1_0, // the Scala compiler major, minor, patch version
27
+
ScalacOptions.default // a curated default option set
29
28
) // returns a Seq[String] of Scala compiler options
30
29
31
30
ScalacOptions.optionsForVersion(
32
-
ScalaVersion.V3_1_0,
33
-
ScalacOptions.default
31
+
ScalaVersion.V3_1_0,
32
+
ScalacOptions.default
34
33
) // returns a Set[ScalacOption]
35
34
```
36
35
37
36
A shorthand for using the default option set is also provided:
0 commit comments