Skip to content

Commit

Permalink
Add error message for missing rules (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
megri authored Sep 30, 2024
1 parent 94775f3 commit 86459c3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ object ScalafixModule {
"A Scalafix test error was reported. Run `fix` without `--check` or `--diff` to fix the error"
case LinterError => "A Scalafix linter error was reported"
case NoFilesError => "No files were provided to Scalafix so nothing happened"
case NoRulesError => "No Scalafix rules were found. Make sure a `rules` set is defined in .scalafix.conf"
case _ => "Something unexpected happened running Scalafix"
}
Result.Failure(errorMessages.mkString("\n"))
Expand Down

0 comments on commit 86459c3

Please sign in to comment.