Skip to content

Commit

Permalink
guard current cache invalidation behavior when usting --settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bjaglin committed Apr 24, 2024
1 parent 33911c0 commit d33c9a4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sbt-test/skip-windows/caching/test
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ $ copy-file files/Null.scala src/main/scala/InitiallyValid.scala
-> scalafix --check
$ delete src/main/scala

# files should be re-checked if custom rule configuration is added or removed from the CLI (even if the rule is the same)
> set scalafixConfig := Some(file("files/DisableSyntaxVar.scalafix.conf"))
$ mkdir src/main/scala
$ copy-file files/Null.scala src/main/scala/ValidWithoutCustomSettings.scala
-> scalafix --check --settings.DisableSyntax.noNulls=true
> scalafix --check
-> scalafix --check --settings.DisableSyntax.noNulls=true
$ exec chmod 000 src/main/scala/ValidWithoutCustomSettings.scala
-> scalafix --check --settings.DisableSyntax.noNulls=true
$ delete src/main/scala

# files should be re-checked after updating the default configuration (even if the rule is the same)
> set scalafixConfig := None
$ mkdir src/main/scala
Expand Down

0 comments on commit d33c9a4

Please sign in to comment.