Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guard current cache invalidation behavior with --settings #416

Merged
merged 2 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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