Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ object Pattern {
scanType: Option[ScanType] = Option.empty,
parameters: Set[Parameter.Specification] = Set.empty,
languages: Set[Language] = Set.empty,
enabled: Boolean = false) {
require(subcategory.isEmpty || category == Category.Security, "Security is the only category having subcategories")
}
enabled: Boolean = false) {}

type Category = Category.Value
object Category extends Enumeration {
Expand Down