Skip to content

Commit

Permalink
Temporarily disable built-in rules of fix when --check is enabled…
Browse files Browse the repository at this point in the history
…, until fully supported (#3427)
  • Loading branch information
Gedochao authored Jan 17, 2025
1 parent aa65c5c commit 40beba7
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions modules/cli/src/main/scala/scala/cli/commands/fix/Fix.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,17 @@ object Fix extends ScalaCommand[FixOptions] {
val configDb = ConfigDbUtils.configDb.orExit(logger)
if options.enableBuiltInRules then {
logger.message("Running built-in rules...")
BuiltInRules.runRules(
inputs = inputs,
buildOptions = buildOpts,
logger = logger
)
logger.message("Built-in rules completed.")
if options.check then
// TODO support --check for built-in rules: https://github.com/VirtusLab/scala-cli/issues/3423
logger.message("Skipping, '--check' is not yet supported for built-in rules.")
else {
BuiltInRules.runRules(
inputs = inputs,
buildOptions = buildOpts,
logger = logger
)
logger.message("Built-in rules completed.")
}
}
if options.enableScalafix then
either {
Expand Down

0 comments on commit 40beba7

Please sign in to comment.