All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.ozsie.GenerateConfigMojo.kt Maven / Gradle / Ivy

The newest version!
package com.github.ozsie

import io.gitlab.arturbosch.detekt.cli.parseArguments
import io.gitlab.arturbosch.detekt.cli.runners.ConfigExporter
import org.apache.maven.plugins.annotations.Mojo

@Suppress("unused")
@Mojo(name = "generate-config")
open class GenerateConfigMojo : DetektMojo() {
    override fun execute() {
        val cliArgs = parseArguments(getCliSting().log().toTypedArray())
        log.info("Args: $cliArgs")
        ConfigExporter(cliArgs, System.out).run {
            if (!skip) return execute()
        }
    }
}

@Suppress("unused") @Mojo(name = "gc") class GCMojo : GenerateConfigMojo()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy