Violation for DSL method name

11 views
Skip to first unread message

Michael Wu

unread,
Jul 11, 2017, 1:17:00 PM7/11/17
to Scalastyle users
It's completely fine to define a method name with symbol such as &&() or ||() in Scala

However, this violates "Check that method names match a regular expression" rule in sonar.

How can I make scalastyle to accept this other than ignoring it using "// scalastyle:ignore method.name"

-Michael

Matthew Farwell

unread,
Jul 16, 2017, 9:42:44 AM7/16/17
to Scalastyle users
If you're using a DSL, then a lot of the rules don't apply. You can configure the list of rules to apply in Sonar.

Have fun,

Matthew Farwell.
Reply all
Reply to author
Forward
0 new messages