Skip to content

Commit

Permalink
Temporarily remove arguments to connect to a SonarQube server
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed May 9, 2021
1 parent 3cdd73e commit a1d0a39
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main/kotlin/br/com/felipezorzo/zpa/cli/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import br.com.felipezorzo.zpa.cli.sqissue.PrimaryLocation
import br.com.felipezorzo.zpa.cli.sqissue.SecondaryLocation
import br.com.felipezorzo.zpa.cli.sqissue.TextRange
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.parameters.groups.OptionGroup
import com.github.ajalt.clikt.parameters.groups.cooccurring
import com.github.ajalt.clikt.parameters.options.default
import com.github.ajalt.clikt.parameters.options.option
import com.github.ajalt.clikt.parameters.options.required
Expand All @@ -33,19 +31,12 @@ import br.com.felipezorzo.zpa.cli.sqissue.Issue as GenericIssue

const val GENERIC_ISSUE_FORMAT = "sq-generic-issue-import"

class SonarQubeOptions : OptionGroup() {
val sonarqubeUrl by option(help = "SonarQube server URL").required()
val sonarqubeToken by option(help = "The authentication token of a SonarQube user with Execute Analysis permission on the project.").default("")
val sonarqubeKey by option(help = "The project's unique key on the SonarQube Server.").default("")
}

class Main : CliktCommand(name = "zpa-cli") {
private val sources by option(help = "Folder with files").required()
private val formsMetadata by option(help = "Oracle Forms metadata file").default("")
private val extensions by option(help = "Extensions to analyze").default("sql,pkg,pks,pkb,fun,pcd,tgg,prc,tpb,trg,typ,tab,tps")
private val outputFormat by option(help = "Format of the output file").choice(GENERIC_ISSUE_FORMAT).default(GENERIC_ISSUE_FORMAT)
private val outputFile by option(help = "Output filename").default("zpa-issues.json")
private val sonarqubeOptions by SonarQubeOptions().cooccurring()

override fun run() {
javaClass.getResourceAsStream("/logging.properties").use {
Expand Down

0 comments on commit a1d0a39

Please sign in to comment.