Skip to content

Commit

Permalink
style(detekt): Fix detekt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
olivernybroe committed Aug 5, 2020
1 parent 11dbc08 commit 5f3b2ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,23 @@ tasks {
patchPluginXml {
version(pluginVersion)
sinceBuild(pluginSinceBuild)
if (pluginUntilBuild.equals("null")) {
if (pluginUntilBuild == "null") {
untilBuild(null)
} else {
untilBuild(pluginUntilBuild)
}

// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
pluginDescription(closure {
File("./README.md").readText().lines().run {
subList(indexOf("<!-- Plugin description -->") + 1, indexOf("<!-- Plugin description end -->"))
}.joinToString("\n").run { markdownToHTML(this) }
})
pluginDescription(
closure {
File("./README.md").readText().lines().run {
subList(indexOf("<!-- Plugin description -->") + 1, indexOf("<!-- Plugin description end -->"))
}.joinToString("\n").run { markdownToHTML(this) }
}
)

// Get the latest available change notes from the changelog file
changeNotes(closure {
changelog.getLatest().toHTML()
})
changeNotes(closure { changelog.getLatest().toHTML() })
}

publishPlugin {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pluginGroup = com.pestphp
pluginName = Pest
pluginVersion = 0.2.1-alpha.5
pluginVersion = 0.3.0
pluginSinceBuild = 201
pluginUntilBuild = null

Expand Down

0 comments on commit 5f3b2ae

Please sign in to comment.