Skip to content

Instantly share code, notes, and snippets.

@omervk
Created February 16, 2017 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omervk/f7c885fafb6033243ff5ca7dd4fd3bf9 to your computer and use it in GitHub Desktop.
Save omervk/f7c885fafb6033243ff5ca7dd4fd3bf9 to your computer and use it in GitHub Desktop.
My Wart Setup 2017-02-16
wartremoverErrors ++= Seq(
Wart.StringPlusAny, Wart.FinalCaseClass, Wart.JavaConversions, Wart.Null, Wart.Product, Wart.Serializable,
Wart.LeakingSealed, Wart.While, Wart.Return, Wart.ExplicitImplicitTypes, Wart.Enumeration, Wart.FinalVal,
Wart.TryPartial, Wart.TraversableOps, Wart.OptionPartial,
ContribWart.ExposedTuples, ContribWart.SomeApply, ContribWart.OldTime
)
wartremoverWarnings ++= wartremover.Warts.allBut(
Wart.Nothing, Wart.DefaultArguments, Wart.Throw, Wart.MutableDataStructures, Wart.NonUnitStatements, Wart.Overloading,
Wart.Option2Iterable, Wart.ImplicitConversion, Wart.ImplicitParameter,
Wart.NoNeedForMonad, ContribWart.NoNeedForMonad, // NoNeedForMonad is probably permanently broken
Wart.Any, // Too many warnings because of spark's Row
Wart.AsInstanceOf, // Too many warnings because of spark's UDF
Wart.PublicInference // False positives, waiting for fix: https://github.com/wartremover/wartremover/issues/334
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment