File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
scalafix-tests/unit/src/test/scala/scalafix/tests/cli Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ package scalafix.tests.cli
2
2
3
3
import java .nio .charset .StandardCharsets
4
4
import java .nio .file .Files
5
+
5
6
import scala .meta .internal .io .PathIO
6
7
import scala .meta .internal .io .FileIO
7
8
import scala .meta .io .Classpath
8
9
import scalafix .cli ._
10
+ import scalafix .tests .core .Classpaths
9
11
10
12
class CliSemanticSuite extends BaseCliSuite {
11
13
@@ -125,6 +127,24 @@ class CliSemanticSuite extends BaseCliSuite {
125
127
files = explicitResultTypesPath.toString()
126
128
)
127
129
130
+ checkSemantic(
131
+ name = " explicit result types OK (auto-classpath)" ,
132
+ args = Array (
133
+ " --auto-classpath" ,
134
+ " --auto-classpath-roots" ,
135
+ PathIO .workingDirectory.toString
136
+ ) ++ Classpaths .scalaLibrary.entries.to[Array ].flatMap { path =>
137
+ Array (
138
+ " --auto-classpath-roots" ,
139
+ path.toString
140
+ )
141
+ },
142
+ expectedExit = ExitStatus .Ok ,
143
+ rule = " ExplicitResultTypes" ,
144
+ path = explicitResultTypesPath,
145
+ files = explicitResultTypesPath.toString()
146
+ )
147
+
128
148
checkSemantic(
129
149
name = " incomplete classpath does not result in error exit code" ,
130
150
args = Array (
You can’t perform that action at this time.
0 commit comments