scapegoat
scapegoat copied to clipboard
8 exception inspections ported to Scala 3
[error] -- Error: /home/runner/work/scapegoat/scapegoat/src/main/scala-3/com/sksamuel/scapegoat/inspections/exception/CatchException.scala:10:6
[error] 9 |@SuppressWarnings(Array("IncorrectlyNamedExceptions"))
[error] 10 |class CatchException
[error] |^
[error] |[scapegoat] [IncorrectlyNamedExceptions] Incorrectly named exceptions
I wonder why does it work for Scala 2, but it doesn't for Scala 3 port.
===
At the same time we could consider renaming the inspection the ...Exception is indeed a misleading name for a class which is not an Exception or Throwable.
Maybe it works with @nowarn in Scala 3?
@mccartney, should we wait for you to open this PR or release a new version with Scala 2.12.21 before?
Nah. Don't wait for this PR. This is not done yet. And I fail to know when I will be able to continue the work. So go ahead!