Skip to content

Commit

Permalink
Merge pull request #416 from bjaglin/caching-settings
Browse files Browse the repository at this point in the history
 guard current cache invalidation behavior with --settings
  • Loading branch information
bjaglin authored Apr 25, 2024
2 parents 398f719 + 0572c3f commit 7b246a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.

This file was deleted.

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 7b246a2

Please sign in to comment.