Skip to content

Test scalafix scapegoat linter #1520

@staudtMarius

Description

@staudtMarius

Since the scapegoat plugin, we use for static code analysis, has no proper scala3 support, it should be checked, if we can replace it with the scalafix scapegoat plugin.

Scapegoat rules that are not supported yet, but may be needed:

  • NegationIsEmpty
  • NegationNonEmpty
  • PartialFunctionInsteadOfMatch
  • PreferMapEmpty
  • PreferSeqEmpty
  • PreferSetEmpty
  • PublicFinalizer
  • RedundantFinalModifierOnMethod
  • RedundantFinalModifierOnVar
  • RedundantFinalizer
  • ReverseFunc
  • ReverseTailReverse
  • ReverseTakeReverse
  • SimplifyBooleanExpression
  • StoreBeforeReturn
  • SubstringZero
  • SuspiciousMatchOnClassObject
  • SwapSortFilter
  • TypeShadowing
  • UnnecessaryIf
  • UnnecessaryReturnUse
  • VarClosure

Some of these checks may/could be performed by the scala3 compiler. This needs to be checked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions