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 Dec 19, 2021
1 parent 1764253 commit fb122de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/kotlin/br/com/felipezorzo/zpa/cli/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import br.com.felipezorzo.zpa.cli.sqissue.Issue as GenericIssue

const val CONSOLE = "console"
const val GENERIC_ISSUE_FORMAT = "sq-generic-issue-import"
const val SONAR_REPORT_FORMAT = "sq-issue-report"
//const val SONAR_REPORT_FORMAT = "sq-issue-report"

class SonarQubeOptions : OptionGroup() {
val sonarqubeUrl by option(help = "SonarQube server URL").required()
Expand All @@ -46,9 +46,9 @@ 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(CONSOLE, GENERIC_ISSUE_FORMAT, SONAR_REPORT_FORMAT).default(CONSOLE)
private val outputFormat by option(help = "Format of the output file").choice(CONSOLE, GENERIC_ISSUE_FORMAT/*, SONAR_REPORT_FORMAT*/).default(CONSOLE)
private val outputFile by option(help = "Output filename").default("")
private val sonarqubeOptions by SonarQubeOptions().cooccurring()
//private val sonarqubeOptions by SonarQubeOptions().cooccurring()

override fun run() {
javaClass.getResourceAsStream("/logging.properties").use {
Expand Down Expand Up @@ -100,7 +100,7 @@ class Main : CliktCommand(name = "zpa-cli") {
GENERIC_ISSUE_FORMAT -> {
exportToGenericIssueFormat(repository, checks, issues)
}
SONAR_REPORT_FORMAT -> {
/*SONAR_REPORT_FORMAT -> {
sonarqubeOptions?.let {
if (it.sonarqubeUrl.isNotEmpty()) {
val issuesToExport = SonarQubeLoader(it, activeRules).updateIssues(repository, checks, issues)
Expand All @@ -110,7 +110,7 @@ class Main : CliktCommand(name = "zpa-cli") {
""
}
}.orEmpty()
}
}*/
else -> {
""
}
Expand Down

0 comments on commit fb122de

Please sign in to comment.