File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
scalafix-cli/src/main/scala/scalafix/internal/v1
scalafix-reflect/src/main/scala/scalafix/internal/reflect Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ case class Args(
187
187
def configuredSymtab : Configured [SymbolTable ] = {
188
188
Try (
189
189
ClasspathOps .newSymbolTable(
190
- classpath = classpath ,
190
+ classpath = validatedClasspath ,
191
191
out = out
192
192
)
193
193
) match {
Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ object ClasspathOps {
55
55
path.resolve(META_INF ).resolve(SEMANTICDB ).toFile.isDirectory
56
56
}
57
57
58
+ private def isJar (path : AbsolutePath ): Boolean =
59
+ path.isFile &&
60
+ path.toFile.getName.endsWith(" .jar" )
61
+
58
62
def autoClasspath (roots : List [AbsolutePath ]): Classpath = {
59
63
val buffer = List .newBuilder[AbsolutePath ]
60
64
val visitor = new SimpleFileVisitor [Path ] {
@@ -71,6 +75,7 @@ object ClasspathOps {
71
75
}
72
76
}
73
77
roots.foreach(x => Files .walkFileTree(x.toNIO, visitor))
78
+ roots.filter(isJar).foreach(buffer += _)
74
79
Classpath (buffer.result())
75
80
}
76
81
You can’t perform that action at this time.
0 commit comments