Skip to content

Commit

Permalink
fix: detek violations #1128
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Oct 4, 2020
1 parent a0b1ed7 commit c16b487
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ class MarkdownReporter(
}

override fun verifyConsumerFromUrl(pactUrl: UrlPactSource, consumer: IConsumerInfo) {
events.add(Event("verifyConsumerFromUrl", "From `${pactUrl.description()}`<br/>\n", listOf(pactUrl, consumer)))
events.add(Event("verifyConsumerFromUrl", "From `${pactUrl.description()}`<br/>\n",
listOf(pactUrl, consumer)))
}

override fun verifyConsumerFromFile(pactFile: PactSource, consumer: IConsumerInfo) {
events.add(Event("verifyConsumerFromFile", "From `${pactFile.description()}`<br/>\n", listOf(pactFile, consumer)))
events.add(Event("verifyConsumerFromFile", "From `${pactFile.description()}`<br/>\n",
listOf(pactFile, consumer)))
}

override fun pactLoadFailureForConsumer(consumer: IConsumerInfo, message: String) { }
Expand All @@ -113,11 +115,13 @@ class MarkdownReporter(
}

override fun stateForInteraction(state: String, provider: IProviderInfo, consumer: IConsumerInfo, isSetup: Boolean) {
events.add(Event("stateForInteraction", "Given **$state** \n", listOf(state, provider, consumer, isSetup)))
events.add(Event("stateForInteraction", "Given **$state** \n",
listOf(state, provider, consumer, isSetup)))
}

override fun warnStateChangeIgnored(state: String, provider: IProviderInfo, consumer: IConsumerInfo) {
events.add(Event("warnStateChangeIgnored", "&nbsp;&nbsp;&nbsp;&nbsp;<span style=\'color: yellow\'>WARNING: State Change ignored as " +
events.add(Event("warnStateChangeIgnored",
"&nbsp;&nbsp;&nbsp;&nbsp;<span style=\'color: yellow\'>WARNING: State Change ignored as " +
"there is no stateChange URL</span> \n", listOf(state, provider, consumer)))
}

Expand All @@ -135,7 +139,8 @@ class MarkdownReporter(
pw.write("\n```\n\n")
pw.close()

events.add(Event("stateChangeRequestFailedWithException", sw.toString(), listOf(state, isSetup, e, printStackTrace)))
events.add(Event("stateChangeRequestFailedWithException", sw.toString(),
listOf(state, isSetup, e, printStackTrace)))
}

override fun stateChangeRequestFailed(state: String, provider: IProviderInfo, isSetup: Boolean, httpStatus: String) {
Expand Down

0 comments on commit c16b487

Please sign in to comment.