com.choreograph.scalafix

Members list

Type members

Classlikes

Automatic derivation for ConfDecoder using Shapeless 3.

Automatic derivation for ConfDecoder using Shapeless 3.

This is implemented since the scalafix provided macros does not work in Scala 3. See: https://github.com/scalacenter/scalafix/pull/2034/files#r2182618708

Attributes

Source
ConfDecoderDerivation.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
DisallowOptionGet.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Disallowed

Attributes

Companion
class
Source
Disallowed.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Disallowed.type
class Disallowed(cfg: Config) extends SemanticRule

Attributes

Companion
object
Source
Disallowed.scala
Supertypes
class SemanticRule
class Rule
class Object
trait Matchable
class Any

Attributes

Companion
object
Source
ExplicitTypeArgs.scala
Supertypes
class SemanticRule
class Rule
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
ExplicitTypeArgs.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
ExplicitTypeArgsTest.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Marks all case classes as final.

Marks all case classes as final.

Case classes are typically leaf types in inheritance hierarchies, and making them final prevents unintended inheritance which can cause issues with pattern matching and equality.

Example:

  • case class Foo(x: Int) → final case class Foo(x: Int)

Attributes

Companion
object
Source
FinalCaseClass.scala
Supertypes
class Rule
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
FinalCaseClass.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
FinalCaseClass.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
class
Source
NamedLiteralArguments.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
NamedLiteralArguments.scala
Supertypes
class SemanticRule
class Rule
class Object
trait Matchable
class Any

Attributes

Source
NamedLiteralArguments.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class OptionWhen extends SemanticRule

Rewrites if-then-else expressions with None/Some branches to Option.when calls.

Rewrites if-then-else expressions with None/Some branches to Option.when calls.

Examples:

  • if condition then None else Some(value) → Option.when(!condition)(value)
  • if condition then Some(value) else None → Option.when(condition)(value)

Attributes

Companion
object
Source
OptionWhen.scala
Supertypes
class SemanticRule
class Rule
class Object
trait Matchable
class Any
object OptionWhen

Attributes

Companion
class
Source
OptionWhen.scala
Supertypes
class Object
trait Matchable
class Any
Self type
OptionWhen.type

Attributes

Source
OptionWhen.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
class
Source
TypeSafetyComment.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
TypeSafetyComment.scala
Supertypes
class SemanticRule
class Rule
class Object
trait Matchable
class Any

Attributes

Source
TypeSafetyCommentTest.scala
Supertypes
class Object
trait Matchable
class Any