Skip to content

Commit

Permalink
Merge pull request #59 from Ozsie/dependabot/maven/io.gitlab.arturbos…
Browse files Browse the repository at this point in the history
…ch.detekt-detekt-cli-1.10.0

Bump detekt-cli from 1.9.1 to 1.10.0
  • Loading branch information
Ozsie authored Jun 29, 2020
2 parents 01c1ab3 + 79dfc33 commit 9eb74ab
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![codecov](https://codecov.io/gh/Ozsie/detekt-maven-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/Ozsie/detekt-maven-plugin)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FOzsie%2Fdetekt-maven-plugin.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FOzsie%2Fdetekt-maven-plugin?ref=badge_shield)
[![Maven Central](https://img.shields.io/maven-central/v/com.github.ozsie/detekt-maven-plugin.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.ozsie%22%20AND%20a:%22detekt-maven-plugin%22)
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=Ozsie/detekt-maven-plugin)](https://dependabot.com)

# Detekt Maven Plugin

Expand All @@ -15,7 +16,7 @@ A maven plugin that wraps the Detekt CLI. It supports the same parameters as the
<plugin>
<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.9.1</version>
<version>1.10.0</version>
<executions>
<execution>
<phase>verify</phase>
Expand All @@ -28,7 +29,7 @@ A maven plugin that wraps the Detekt CLI. It supports the same parameters as the
```
Using the above configuration, Detekt will scan source files in _${basedir}/src_ and output the results in _${basedir}/detekt_.

All parameters available to Detekt version _1.9.1_ can be configured in
All parameters available to Detekt version _1.10.0_ can be configured in
the plugin.


Expand All @@ -39,7 +40,7 @@ the plugin.
<plugin>
<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.9.1</version>
<version>1.10.0</version>
<executions>
<execution>
<phase>verify</phase>
Expand All @@ -63,7 +64,7 @@ the plugin.
<plugin>
<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.9.1</version>
<version>1.10.0</version>
<executions>
<execution>
<phase>verify</phase>
Expand Down Expand Up @@ -114,7 +115,7 @@ _Example_
* `mvn detekt:gc`
* `mvn detekt:generate-config`

For more information on Detekt, have a look at https://github.com/arturbosch/detekt
For more information on Detekt, have a look at https://github.com/detekt/detekt

## Contributors
* [andreysaksonov](https://github.com/andreysaksonov)
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.9.1</version>
<version>1.10.0</version>
<packaging>maven-plugin</packaging>

<name>detekt-maven-plugin Maven Plugin</name>
Expand Down Expand Up @@ -40,7 +40,7 @@

<!-- Compile -->
<kotlin.version>1.3.72</kotlin.version>
<detekt.version>1.9.1</detekt.version>
<detekt.version>1.10.0</detekt.version>
<jcommander.version>1.78</jcommander.version>
<snakeyaml.version>1.21</snakeyaml.version>
<maven.api.version>3.6.3</maven.api.version>
Expand All @@ -61,7 +61,7 @@
<jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<detekt-maven-plugin.version>1.6.0</detekt-maven-plugin.version>
<detekt-maven-plugin.version>1.9.1</detekt-maven-plugin.version>
</properties>

<dependencies>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/github/ozsie/CheckMojo.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.ozsie

import io.gitlab.arturbosch.detekt.cli.CliArgs
import io.gitlab.arturbosch.detekt.cli.parseArguments
import io.gitlab.arturbosch.detekt.cli.runners.Runner
import org.apache.maven.plugins.annotations.LifecyclePhase
Expand All @@ -19,7 +18,7 @@ class CheckMojo : DetektMojo() {
getCliSting().forEach {
log.debug("Applying $it")
}
val cliArgs = parseArguments<CliArgs>(getCliSting().log().toTypedArray(), System.out, System.err)
val cliArgs = parseArguments(getCliSting().log().toTypedArray(), System.out, System.err)
skip = !Files.isDirectory(Paths.get(input))
if (!skip)
return Runner(cliArgs, System.out, System.err).execute()
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/ozsie/CreateBaselineMojo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ open class CreateBaselineMojo : DetektMojo() {
cliStr.forEach {
log.debug("Applying $it")
}
val cliArgs = parseArguments<CliArgs>(cliStr, System.out, System.err)
val cliArgs = parseArguments(cliStr, System.out, System.err)
if (!skip) Runner(cliArgs, System.out, System.err).execute()
}
private val cliString get() = getCliSting().apply {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/ozsie/GenerateConfigMojo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.apache.maven.plugins.annotations.Mojo
@Mojo(name = "generate-config")
open class GenerateConfigMojo : DetektMojo() {
override fun execute() {
val cliArgs = parseArguments<CliArgs>(getCliSting().log().toTypedArray(), System.out, System.err)
val cliArgs = parseArguments(getCliSting().log().toTypedArray(), System.out, System.err)
ConfigExporter(cliArgs).run {
if (!skip) return execute()
}
Expand Down

0 comments on commit 9eb74ab

Please sign in to comment.