We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d41ff09 + 2bb167a commit 3008f85Copy full SHA for 3008f85
scalafix-core/shared/src/main/scala/scalafix/rule/RuleName.scala
@@ -25,8 +25,10 @@ final case class RuleName(identifiers: List[RuleIdentifier]) {
25
if (nonDeprecated.isEmpty) "empty"
26
else nonDeprecated.mkString("+")
27
def isEmpty: Boolean = identifiers.isEmpty
28
+
29
def +(other: RuleName): RuleName =
- new RuleName((identifiers :: other.identifiers :: Nil).flatten)
30
+ new RuleName(identifiers ::: other.identifiers)
31
32
override def toString: String = value
33
def reportDeprecationWarning(name: String, reporter: ScalafixReporter): Unit = {
34
identifiers.foreach { ident =>
0 commit comments