File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
modules/cli/src/main/scala/scala/cli/commands/fix Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,21 @@ object ScalafixRules extends CommandHelpers {
60
60
buildOptions.scalaParams.orExit(logger).map(_.scalaVersion)
61
61
.getOrElse(Constants .defaultScalaVersion)
62
62
63
+ val shouldBuildTestScope = sharedOptions.scope.test.getOrElse(true )
64
+ if ! shouldBuildTestScope then
65
+ logger.message(
66
+ s """ $warnPrefix Building test scope was explicitly disabled.
67
+ | $warnPrefix Some scalafix rules may not work correctly with test scope inputs. """
68
+ .stripMargin
69
+ )
63
70
val res = Build .build(
64
71
inputs,
65
72
buildOptionsWithSemanticDb,
66
73
compilerMaker,
67
74
None ,
68
75
logger,
69
76
crossBuilds = false ,
70
- buildTests = true ,
77
+ buildTests = shouldBuildTestScope ,
71
78
partial = None ,
72
79
actionableDiagnostics = actionableDiagnostics
73
80
)
You can’t perform that action at this time.
0 commit comments