Cleaned failOn directive.
This commit is contained in:
parent
6b45d2b0a6
commit
12e30db1b9
1 changed files with 5 additions and 4 deletions
|
@ -337,10 +337,8 @@ class VersionEyePlugin @Inject constructor(val configActor: ConfigActor<VersionE
|
||||||
+ Utils.plural("vulnerabilit", sv_count, "ies", "y")
|
+ Utils.plural("vulnerabilit", sv_count, "ies", "y")
|
||||||
+ if (isFailSecurity && !config.colors) alt else "")
|
+ if (isFailSecurity && !config.colors) alt else "")
|
||||||
Utils.log(securityInfo, verbose)
|
Utils.log(securityInfo, verbose)
|
||||||
}
|
|
||||||
|
|
||||||
// Show project url
|
// Show project url
|
||||||
if (!config.quiet) {
|
|
||||||
val baseUrl = if (config.baseUrl.endsWith('/')) config.baseUrl else config.baseUrl + '/'
|
val baseUrl = if (config.baseUrl.endsWith('/')) config.baseUrl else config.baseUrl + '/'
|
||||||
log(1, " View more at: ${baseUrl}user/projects/$projectKey")
|
log(1, " View more at: ${baseUrl}user/projects/$projectKey")
|
||||||
}
|
}
|
||||||
|
@ -365,7 +363,7 @@ enum class Fail {
|
||||||
class VersionEyeConfig() {
|
class VersionEyeConfig() {
|
||||||
var baseUrl = "https://www.versioneye.com/"
|
var baseUrl = "https://www.versioneye.com/"
|
||||||
var colors = true
|
var colors = true
|
||||||
var failSet: MutableSet<Fail> = mutableSetOf()
|
val failSet: MutableSet<Fail> = mutableSetOf(Fail.securityCheck)
|
||||||
var name = ""
|
var name = ""
|
||||||
var org = ""
|
var org = ""
|
||||||
var quiet = false
|
var quiet = false
|
||||||
|
@ -374,6 +372,9 @@ class VersionEyeConfig() {
|
||||||
var visibility = "public"
|
var visibility = "public"
|
||||||
|
|
||||||
fun failOn(vararg args: Fail) {
|
fun failOn(vararg args: Fail) {
|
||||||
|
if (failSet.isNotEmpty()) {
|
||||||
|
failSet.clear()
|
||||||
|
}
|
||||||
args.forEach {
|
args.forEach {
|
||||||
failSet.add(it)
|
failSet.add(it)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue