integrated-application-development / delphilint

Delphi IDE package providing on-the-fly code analysis and linting, powered by SonarDelphi
GNU Lesser General Public License v3.0
79 stars 9 forks source link

Read project key from `sonar-project.properties` #58

Open fourls opened 1 month ago

fourls commented 1 month ago

Prerequisites

Engine area

Delphi IDE integration

Improvement description

If no project key is specified in the DelphiLint project options, read the project key from the sonar-project.properties file if present.

Rationale

DelphiLint currently handles the project key used to connect to SonarQube totally separately from the sonar-project.properties file, which is passed directly to SonarDelphi.

This made sense within the architecture of the application, but can be unintuitive (see discussion here). It also means that for the user there are two sources of truth for a project key.

Because the sonar-project.properties file is trivially parseable, this shouldn't be too difficult.