NoInfer

Since 0.5.0

This rule reports errors when the compiler inferred one of the following types:

  • Serializable
  • Any
  • AnyVal
  • Product

Example:

MyCode.scala:7: error: [NoInfer.any] Inferred Any
  List(1, "")
            ^

Known limitations}

  • Scalafix does not yet expose an way to disable rules across regions of code, track #241 for updates.