Skip to content

Instantly share code, notes, and snippets.

@OlegYch
Created January 30, 2018 16:35
Show Gist options
  • Save OlegYch/eefcb5000e865ea5a683f4beee5165c9 to your computer and use it in GitHub Desktop.
Save OlegYch/eefcb5000e865ea5a683f4beee5165c9 to your computer and use it in GitHub Desktop.
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"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment