arosien/sniff — Issue #2: Specify several Smells using one val
Author: fmpwizard
Created: 2012-02-05 06:46:10+00:00
State: open

Hi,

Is it possible to do something like this:

val snippets = CodeSnippets(Scala,
Seq(
Smell('open_!, """open_!""".r,
rationale = "Do not use open_! , use map/flatMap/ openOr or ~ and add a Monoid if needed (or was it semigroup? :) "),
Smell('get, """\.get\.""".r,
rationale = "Do not use Option.get , use map/flatMap/ openOr or ~ and add a Monoid if needed (or was it semigroup? :) ")
)
)

well, this one does not work, I get a compiler error:

[error] found : Seq[net.rosien.sniff.Smell]
[error] required: net.rosien.sniff.Smell

Thanks.