Skip to content

Commit bff065b

Browse files
committed
fix: Remove subcategory requirement for Specification [CF-1607]
It's possible for categories other than 'Security' to have subcategories.
1 parent f91ed36 commit bff065b

File tree

1 file changed

+0
-1
lines changed
  • codacy-plugins-api/src/main/scala/com/codacy/plugins/api/results

1 file changed

+0
-1
lines changed

codacy-plugins-api/src/main/scala/com/codacy/plugins/api/results/Pattern.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ object Pattern {
3636
parameters: Set[Parameter.Specification] = Set.empty,
3737
languages: Set[Language] = Set.empty,
3838
enabled: Boolean = false) {
39-
require(subcategory.isEmpty || category == Category.Security, "Security is the only category having subcategories")
4039
}
4140

4241
type Category = Category.Value

0 commit comments

Comments
 (0)