Skip to content

Commit 213efa7

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 213efa7

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ object Pattern {
3535
scanType: Option[ScanType] = Option.empty,
3636
parameters: Set[Parameter.Specification] = Set.empty,
3737
languages: Set[Language] = Set.empty,
38-
enabled: Boolean = false) {
39-
require(subcategory.isEmpty || category == Category.Security, "Security is the only category having subcategories")
40-
}
38+
enabled: Boolean = false) {}
4139

4240
type Category = Category.Value
4341
object Category extends Enumeration {

0 commit comments

Comments
 (0)