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

False positive FinalCaseClass for @newtype from scala-newtype #661

Open
kevin-lee opened this issue Jun 17, 2022 · 0 comments
Open

False positive FinalCaseClass for @newtype from scala-newtype #661

kevin-lee opened this issue Jun 17, 2022 · 0 comments

Comments

@kevin-lee
Copy link

kevin-lee commented Jun 17, 2022

  • Scala version: 2.13.8
  • wartremover version: 3.0.4

When WartRemover is used with scala-newtype, it reports false positive FinalCaseClass wart.
As far as I know, there's no actual case class created for @newtype.

import io.estatico.newtype.macros.newtype

@newtype case class Name(value: String)
// [wartremover:FinalCaseClass] case classes must be final

You can see the actual one here.
https://scastie.scala-lang.org/1TbhXTWKRPiI0xZmMwUp9A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant