Skip to content

Instantly share code, notes, and snippets.

@OlegYch
Created January 30, 2018 16:35
Show Gist options
  • Select an option

  • Save OlegYch/eefcb5000e865ea5a683f4beee5165c9 to your computer and use it in GitHub Desktop.

Select an option

Save OlegYch/eefcb5000e865ea5a683f4beee5165c9 to your computer and use it in GitHub Desktop.

Revisions

  1. OlegYch created this gist Jan 30, 2018.
    48 changes: 48 additions & 0 deletions .scalafix.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    rules = [
    Disable,
    DisableUnless,
    DisableSyntax,
    ExplicitResultTypes,
    LeakingImplicitClassVal,
    MissingFinal,
    NoInfer,
    RemoveUnusedImports,
    RemoveUnusedTerms
    ]

    Disable.symbols = [
    "scala.Option.get"
    # picks up macro expansions... *sigh*
    # "scala.Any.asInstanceOf"
    ]

    DisableSyntax.keywords = [return, "null"]
    DisableSyntax.noSemicolons = true
    DisableSyntax.noXml = true
    //DisableSyntax.noCovariantTypes = true
    //DisableSyntax.noContravariantTypes = true
    DisableSyntax.noValInAbstract = true
    DisableSyntax.noImplicitObject = true
    DisableSyntax.noImplicitConversion = true

    # DisableSyntax.regex = [
    # {
    # id = "redundant"
    # pattern = "Type"
    # message = "That's a really bad name."
    # }
    # ]

    ExplicitResultTypes {
    unsafeShortenNames = true
    }

    NoInfer.symbols = [
    "scala.Predef.any2stringadd"
    "scala.Any"
    "scala.AnyVal"
    "scala.Product"

    # false positives?
    # "scala.Serializable"
    ]