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 66c76ce + 412330d commit e51d679Copy full SHA for e51d679
src/main/scala/com/codacy/plugins/api/results/Pattern.scala
@@ -46,6 +46,16 @@ object Pattern {
46
languages: Option[Set[Language]] = None)
47
extends Specification
48
49
+ def unapply(s: Pattern.Specification): Option[(Pattern.Id,
50
+ Result.Level,
51
+ Category,
52
+ Option[Subcategory],
53
+ Option[Set[Parameter.Specification]],
54
+ Option[Set[Language]])] = s match {
55
+ case si: SpecificationImpl =>
56
+ SpecificationImpl.unapply(si)
57
+ }
58
+
59
def apply(patternId: Pattern.Id,
60
level: Result.Level,
61
category: Category,
0 commit comments