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.
1 parent 33a8073 commit 32b0aeeCopy full SHA for 32b0aee
src/main/scala/com/codacy/plugins/api/results/Pattern.scala
@@ -33,7 +33,10 @@ object Pattern {
33
category: Specification.Category,
34
subcategory: Option[Specification.Subcategory],
35
parameters: Option[Set[Parameter.Specification]],
36
- languages: Option[Set[Language]] = None)
+ languages: Option[Set[Language]] = None) {
37
+ require(subcategory.isEmpty || category == Specification.Category.Security,
38
+ "Security is the only category having subcategories")
39
+ }
40
object Specification {
41
type Category = Category.Value
42
object Category extends Enumeration {
0 commit comments