Skip to content

Commit

Permalink
feat: Add properties to ZpaActiveRule for zpa-cli integration
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed Apr 23, 2023
1 parent d227ab7 commit c8f6249
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ class SonarQubeActiveRuleAdapter(private val activeRule: ActiveRule) : ZpaActive
override val templateRuleKey: String?
get() = activeRule.templateRuleKey()

override val tags: Array<String>
get() = throw NotImplementedError()

override val remediationConstant: String
get() = throw NotImplementedError()

override val name: String
get() = throw NotImplementedError()

override fun toString(): String = activeRule.toString()

override fun equals(other: Any?): Boolean = activeRule == other
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,13 @@ class ActiveRule(
override val templateRuleKey: String?
get() = null

override val tags: Array<String>
get() = rule.tags

override val remediationConstant: String
get() = rule.remediationConstant

override val name: String
get() = rule.name

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ interface ZpaActiveRule {
val params: Map<String, String>
val internalKey: String?
val templateRuleKey: String?
val tags: Array<String>
val remediationConstant: String
val name: String
}

0 comments on commit c8f6249

Please sign in to comment.