Skip to content

Commit

Permalink
chore: Rename "Z PL/SQL Analyzer" to "ZPA"
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed Sep 30, 2024
1 parent 8c4ba16 commit d57c42a
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Z PL/SQL Analyzer - ZPA
# ZPA

[![Latest release](https://img.shields.io/github/release/felipebz/zpa.svg) ](https://github.com/felipebz/zpa/releases/latest)
[![Build](https://github.com/felipebz/zpa/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/felipebz/zpa/actions/workflows/build.yml)
[![Quality Gate Status](https://sonarqube.felipebz.com/api/project_badges/measure?project=com.felipebz.zpa%3Azpa&metric=alert_status)](https://sonarqube.felipebz.com/dashboard?id=com.felipebz.zpa%3Azpa)

The Z PL/SQL Analyzer (or simply ZPA) is a code analyzer for PL/SQL and Oracle SQL code.
ZPA is parser and static code analysis tool for PL/SQL and Oracle SQL.

You can use it in a [SonarQube](https://www.sonarqube.org) on-premise instance. SonarQube is an open platform to manage code quality.

Expand All @@ -16,7 +16,7 @@ Do you want to use this analyzer in a project hosted on [SonarCloud](https://son

- Download the [latest sonar-zpa-plugin release](https://github.com/felipebz/zpa/releases/latest) and copy to the SONARQUBE_HOME/extensions/plugins directory;
- Restart your SonarQube server;
- Navigate to the Marketplace (SONARQUBE_URL/marketplace?filter=installed). It should list "Z PL/SQL Analyzer" on the tab "Installed Plugins";
- Navigate to the Marketplace (SONARQUBE_URL/marketplace?filter=installed). It should list "ZPA" on the tab "Installed Plugins";
- Run an analysis with [SonarScanner](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/overview/).

## Compatibility matrix
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ subprojects {

jreleaser {
project {
description.set("Z PL/SQL Analyzer")
description.set("ZPA - Parser and static code analysis tool for PL/SQL and Oracle SQL")
authors.set(listOf("felipebz"))
license.set("LGPL-3.0")
links {
Expand Down Expand Up @@ -218,6 +218,6 @@ jreleaser {

sonarqube {
properties {
property("sonar.projectName", "Z PL/SQL Analyzer")
property("sonar.projectName", "ZPA")
}
}
4 changes: 2 additions & 2 deletions sonar-zpa-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ val shadowJar = tasks.named<ShadowJar>("shadowJar") {
"Plugin-IssueTrackerUrl" to "https://github.com/felipebz/zpa/issues",
"Plugin-Key" to "plsqlopen",
"Plugin-License" to "GNU LGPL 3",
"Plugin-Name" to "Z PL/SQL Analyzer",
"Plugin-Name" to "ZPA Plugin for SonarQube",
"Plugin-Organization" to "Felipe Zorzo",
"Plugin-OrganizationUrl" to "https://felipezorzo.com.br",
"Plugin-SourcesUrl" to "https://github.com/felipebz/zpa",
Expand Down Expand Up @@ -111,4 +111,4 @@ publishing {
}
}

description = "Z PL/SQL Analyzer for SonarQube"
description = "ZPA Plugin for SonarQube"
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class PlSqlPlugin : Plugin {
}

companion object {
private const val DEFAULT_CATEGORY = "Z PL/SQL Analyzer"
private const val DEFAULT_CATEGORY = "ZPA"
private const val GENERAL = "General"
private const val TEST_AND_COVERAGE = "Tests and Coverage"
internal const val FILE_SUFFIXES_KEY = "sonar.plsqlopen.file.suffixes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PlSqlRuleRepository : RulesDefinition {
override fun define(context: RulesDefinition.Context) {
val repository = context
.createRepository(KEY, PlSql.KEY)
.setName("Z PL/SQL Analyzer")
.setName("ZPA")
CustomAnnotationBasedRulesDefinition.load(SonarQubeRepositoryAdapter(repository), PlSql.KEY, CheckList.checks, SonarQubeRuleMetadataLoader())
repository.done()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class PlSqlSquidSensor @JvmOverloads constructor(activeRules: ActiveRules, setti
.orElse(null))

override fun describe(descriptor: SensorDescriptor) {
descriptor.name("Z PL/SQL Analyzer").onlyOnLanguage(PlSql.KEY)
descriptor.name("ZPA").onlyOnLanguage(PlSql.KEY)
}

override fun execute(context: SensorContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class UtPlSqlSensor(objectLocator: ObjectLocator, analysisWarnings: AnalysisWarn
private val coverageResultImporter = CoverageResultImporter(objectLocator, analysisWarnings)

override fun describe(descriptor: SensorDescriptor) {
descriptor.name("Z PL/SQL Analyzer - utPLSQL Report Importer").onlyOnLanguage(PlSql.KEY)
descriptor.name("ZPA - utPLSQL Report Importer").onlyOnLanguage(PlSql.KEY)
}

override fun execute(context: SensorContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class PlSqlSquidSensorTest {
fun testDescriptor() {
val descriptor = DefaultSensorDescriptor()
sensor.describe(descriptor)
assertThat(descriptor.name()).isEqualTo("Z PL/SQL Analyzer")
assertThat(descriptor.name()).isEqualTo("ZPA")
assertThat(descriptor.languages()).containsOnly(PlSql.KEY)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class UtPlSqlSensorTest {
fun testDescriptor() {
val descriptor = DefaultSensorDescriptor()
sensor.describe(descriptor)
assertThat(descriptor.name()).isEqualTo("Z PL/SQL Analyzer - utPLSQL Report Importer")
assertThat(descriptor.name()).isEqualTo("ZPA - utPLSQL Report Importer")
assertThat(descriptor.languages()).containsOnly(PlSql.KEY)
}

Expand Down
2 changes: 1 addition & 1 deletion zpa-checks-testkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ dependencies {
compileOnly(project(":zpa-core"))
}

description = "Z PL/SQL Analyzer :: Checks TestKit"
description = "ZPA Checks TestKit"
2 changes: 1 addition & 1 deletion zpa-checks/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ testing {
}
}

description = "Z PL/SQL Analyzer :: Checks"
description = "ZPA Checks"
2 changes: 1 addition & 1 deletion zpa-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ dependencies {
testImplementation(libs.flr.testing.harness)
}

description = "Z PL/SQL Analyzer :: Core"
description = "ZPA Core"
2 changes: 1 addition & 1 deletion zpa-toolkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ publishing {
}
}

description = "Z PL/SQL Analyzer :: SSLR Toolkit"
description = "ZPA Toolkit"

0 comments on commit d57c42a

Please sign in to comment.