From a08d3d2d116b96ee78880aa817b39a75b7b813fe Mon Sep 17 00:00:00 2001 From: Brice Jaglin Date: Sun, 12 Nov 2023 22:23:05 +0100 Subject: [PATCH] document weird behavior --- src/sbt-test/sbt-scalafix/explicit-files/test | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/sbt-test/sbt-scalafix/explicit-files/test b/src/sbt-test/sbt-scalafix/explicit-files/test index 59ff840f..8ff0b913 100644 --- a/src/sbt-test/sbt-scalafix/explicit-files/test +++ b/src/sbt-test/sbt-scalafix/explicit-files/test @@ -22,6 +22,18 @@ > scalafix -f=src/main/scala/OK.scala +# QUESTIONNABLE USAGES +# -------------------- + +# Targeting valid files from an aggregated project succeeds: +# only the project for which the `--files` value is valid runs the invocation +> scalafix -f=ok_and_ko/src/main/scala/OK.scala + +# Targeting valid files both from an aggregating project and from one of its aggregated project fails: +# no project can validate both `--files` value, so the aggregating project shows the failure +-> scalafix -f=ok_and_ko/src/main/scala/OK.scala -f=src/main/scala/OK.scala + + # INCORRECT USAGES # ----------------