{"id":32957645,"url":"https://github.com/integrated-application-development/sonar-delphi","last_synced_at":"2026-03-01T13:01:39.013Z","repository":{"id":206313786,"uuid":"537284545","full_name":"integrated-application-development/sonar-delphi","owner":"integrated-application-development","description":"Delphi language plugin for SonarQube","archived":false,"fork":false,"pushed_at":"2026-01-27T06:05:54.000Z","size":16599,"stargazers_count":143,"open_issues_count":50,"forks_count":29,"subscribers_count":21,"default_branch":"master","last_synced_at":"2026-02-18T23:44:19.995Z","etag":null,"topics":["code-quality","delphi","pascal","sonarqube","sonarqube-plugin","static-analyzer"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/integrated-application-development.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.txt","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-16T02:58:33.000Z","updated_at":"2026-02-05T12:28:55.000Z","dependencies_parsed_at":"2024-06-26T11:54:36.056Z","dependency_job_id":"5352c4a0-e705-42d4-8c54-6183fedec38f","html_url":"https://github.com/integrated-application-development/sonar-delphi","commit_stats":null,"previous_names":["integrated-application-development/sonar-delphi"],"tags_count":80,"template":false,"template_full_name":null,"purl":"pkg:github/integrated-application-development/sonar-delphi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrated-application-development%2Fsonar-delphi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrated-application-development%2Fsonar-delphi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrated-application-development%2Fsonar-delphi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrated-application-development%2Fsonar-delphi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/integrated-application-development","download_url":"https://codeload.github.com/integrated-application-development/sonar-delphi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrated-application-development%2Fsonar-delphi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29969700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T12:56:10.327Z","status":"ssl_error","status_checked_at":"2026-03-01T12:55:24.744Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-quality","delphi","pascal","sonarqube","sonarqube-plugin","static-analyzer"],"created_at":"2025-11-12T23:00:28.474Z","updated_at":"2026-03-01T13:01:39.008Z","avatar_url":"https://github.com/integrated-application-development.png","language":"Java","readme":"# ![SonarDelphi](docs/images/sonar-delphi-title-gh.png)\n\n[![quality gate](https://sonarcloud.io/api/project_badges/measure?project=integrated-application-development_sonar-delphi\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=integrated-application-development_sonar-delphi)\n[![format](https://github.com/integrated-application-development/sonar-delphi/actions/workflows/format.yml/badge.svg?branch=master\u0026event=push)](https://github.com/integrated-application-development/sonar-delphi/actions/workflows/format.yml)\n[![build](https://github.com/integrated-application-development/sonar-delphi/actions/workflows/build.yml/badge.svg?branch=master\u0026event=push)](https://github.com/integrated-application-development/sonar-delphi/actions/workflows/build.yml)\n\nSonarDelphi is a modern, performant, and fully-featured community code analyzer for the Delphi\nlanguage. As a plugin for the [SonarQube](https://www.sonarqube.org) code analysis platform, it can\nbe easily integrated into existing workflows. It can also be used through the Delphi IDE using the\n[DelphiLint](https://github.com/integrated-application-development/delphilint) plugin.\n\nThis project has three primary goals:\n\n* **Correctness:** All valid Delphi code should be accepted and understood correctly.\n* **Utility:** Analysis results should be easily understandable and immediately actionable.\n* **Extensibility:** New rules should be trivial to add and have access to the full power of the analyzer.\n\nThis project aims to follow the conventions and best practices of SonarQube's official analyzers. It is actively\nmaintained by a core team and is [open for community contributions](#contributing).\n\n## Features\n\nWith SonarDelphi, you can:\n\n* Analyze Delphi code, identifying issues from more than 120 rules\n* Create custom rules in the SonarQube UI from templates\n* Import [NUnit](https://docs.nunit.org/articles/nunit/technical-notes/usage/Test-Result-XML-Format.html) test reports (compatible with [DUnitX](https://github.com/VSoftTechnologies/DUnitX))\n* Import test coverage reports (compatible with [DelphiCodeCoverage](https://github.com/DelphiCodeCoverage/DelphiCodeCoverage))\n* Run on-the-fly analysis in your local development environment using the [DelphiLint](https://github.com/integrated-application-development/delphilint) IDE plugin\n\n### Semantic analysis\n\nSonarDelphi understands what your code *means*, paving the way for powerful rules such as:\n   * [Variables must be initialized before being used](delphi-checks/src/main/java/au/com/integradev/delphi/checks/VariableInitializationCheck.java)\n   * [Name casing should be kept consistent](delphi-checks/src/main/java/au/com/integradev/delphi/checks/MixedNamesCheck.java)\n   * [FreeAndNil must only be passed an instance of a TObject descendant](delphi-checks/src/main/java/au/com/integradev/delphi/checks/FreeAndNilTObjectCheck.java)\n   * [Constructors should not be invoked on object variables](delphi-checks/src/main/java/au/com/integradev/delphi/checks/InstanceInvokedConstructorCheck.java)\n   * [The Single overloads of the standard math functions should not be used](delphi-checks/src/main/java/au/com/integradev/delphi/checks/MathFunctionSingleOverloadCheck.java)\n   * [Redundant casts should not be used](delphi-checks/src/main/java/au/com/integradev/delphi/checks/RedundantCastCheck.java)\n   * [Platform-dependent casts should not be used](delphi-checks/src/main/java/au/com/integradev/delphi/checks/PlatformDependentCastCheck.java)\n   * [Unicode types should not be cast to ANSI types](delphi-checks/src/main/java/au/com/integradev/delphi/checks/UnicodeToAnsiCastCheck.java)\n   * ['Format' calls should be supplied arguments of the correct type](delphi-checks/src/main/java/au/com/integradev/delphi/checks/FormatArgumentTypeCheck.java)\n   * Your own custom rules to [enforce a naming convention for descendants of specific types](delphi-checks/src/main/java/au/com/integradev/delphi/checks/InheritedTypeNameCheck.java)\n   * Your own custom rules to forbid usage of\n     [types](delphi-checks/src/main/java/au/com/integradev/delphi/checks/ForbiddenTypeCheck.java),\n     [routines](delphi-checks/src/main/java/au/com/integradev/delphi/checks/ForbiddenRoutineCheck.java),\n     [properties](delphi-checks/src/main/java/au/com/integradev/delphi/checks/ForbiddenPropertyCheck.java),\n     [identifiers](delphi-checks/src/main/java/au/com/integradev/delphi/checks/ForbiddenIdentifierCheck.java),\n     [constants](delphi-checks/src/main/java/au/com/integradev/delphi/checks/ForbiddenConstantCheck.java),\n     [enum values](delphi-checks/src/main/java/au/com/integradev/delphi/checks/ForbiddenEnumValueCheck.java), or\n     [units](delphi-checks/src/main/java/au/com/integradev/delphi/checks/ForbiddenImportFilePatternCheck.java)\n\n### Dead code analysis\n\nUsing semantic analysis, SonarDelphi can identify unused code in your project, including:\n   * [Unused imports](delphi-checks/src/main/java/au/com/integradev/delphi/checks/UnusedImportCheck.java)\n   * [Unused types](delphi-checks/src/main/java/au/com/integradev/delphi/checks/UnusedTypeCheck.java)\n   * [Unused routines](delphi-checks/src/main/java/au/com/integradev/delphi/checks/UnusedRoutineCheck.java)\n   * [Unused properties](delphi-checks/src/main/java/au/com/integradev/delphi/checks/UnusedPropertyCheck.java)\n   * [Unused fields](delphi-checks/src/main/java/au/com/integradev/delphi/checks/UnusedFieldCheck.java)\n   * [Unused local variables](delphi-checks/src/main/java/au/com/integradev/delphi/checks/UnusedLocalVariableCheck.java)\n   * [Unused constants](delphi-checks/src/main/java/au/com/integradev/delphi/checks/UnusedConstantCheck.java)\n\n### Advanced custom rules\n\nIn addition to template rules, SonarDelphi can be extended with custom rules plugins:\n  * Leverage the full power of the analysis engine with the SonarDelphi rules API.\n  * For more details, see [Writing Custom Delphi Rules](docs/CUSTOM_RULES.md).\n\n## Quickstart\n\n1. Install the following:\n    * [SonarQube](https://docs.sonarqube.org/latest/setup/install-server/) (v9.9+)\n    * [SonarScanner](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarscanner/)\n    * [Delphi](https://www.embarcadero.com/products/delphi)\n\n2. Install the plugin:\n    * Download the SonarDelphi plugin\n      from [Releases](https://github.com/integrated-application-development/sonar-delphi/releases).\n    * [Install the plugin](https://docs.sonarqube.org/latest/setup/install-plugin/) on the SonarQube server.\n\n3. Run analysis on your Delphi project:\n    * [Configure](docs/CONFIGURATION.md) your Sonar project, including `sonar.delphi.installationPath`.\n    * Execute `sonar-scanner` in your project's directory.\n\n4. View analysis results:\n    * Visit the link provided at the end of the scan to view analysis results on SonarQube.\n\n## Read the Manual\n\nThe [SonarDelphi Manual](docs/MANUAL.md) provides a comprehensive guide to SonarDelphi and the Sonar ecosystem,\nincluding:\n\n* An introduction to SonarQube\n* How to configure SonarDelphi projects and scans\n* How to customize analysis rules\n\n\u003e [!TIP]\n\u003e It is strongly recommended that first-time SonarQube users read the \"SonarQube from first principles\"\n\u003e section of the manual.\n\n## Contributing\n\nSonarDelphi is open for contributions, from bug reports to new features. For more details, please\nread the [contributing guide](docs/CONTRIBUTING.md).\n\n## Development\n\nSonarDelphi can be built with JDK 17+ using [Maven](https://maven.apache.org/).\n\nTo build the project and run unit tests, execute the following command from the project's root directory:\n\n```bash\nmvn clean install\n```\n\nAfter building, the plugin jar can be found in `sonar-delphi-plugin/target`.\n\n## History\n\nIn 2012, [Sabre Airline Solutions](https://www.sabre.com) released SonarDelphi as an open source\nproject. Over the years, it has been forked and iterated on by various maintainers.\n\nIn 2018, it was picked up as a Monash University student project for [IntegraDev](https://www.integradev.com.au).\nSince 2019, the project has been actively developed and extensively rewritten by IntegraDev.\n\n## License\n\nLicensed under the [GNU Lesser General Public License, Version 3.0](https://www.gnu.org/licenses/lgpl.txt).\n","funding_links":[],"categories":["Programming Languages","Code check/review, debug"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegrated-application-development%2Fsonar-delphi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintegrated-application-development%2Fsonar-delphi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegrated-application-development%2Fsonar-delphi/lists"}