SemanticDB not generated for test classes when running fix command #3640
Labels
bug
Something isn't working
experimental
Tickets tied to experimental features.
scalafix
Issues tied with scalafix integration
subcommand:fix
issues tied to the `fix` sub-command.
Version(s)
scala-cli: 1.7.1
scala: 2.13.16
Describe the bug
SemanticDB not generated for test classes when running
fix
command.error: SemanticDB not found: src/test/scala/com/example/calculator/SimpleCalculatorSpec.scala
To Reproduce
I created this sample project: https://github.com/ifmachado/sampleScalaCli
But the must haves are:
Must have files in src/test.
In .scalafix.conf:
PS: For the first 3 rules there aren't any issues when running the fix command.
It's only when adding rules that require a semanticDB (such as ExplicitResultTypes, OrganizeImports) that the issue arises.
Run:
scala-cli fix . --power
Got:
Expected behaviour
Rules are applied to the test classes as well without any issues so the
fix --check
also passes.The text was updated successfully, but these errors were encountered: