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
87 stars 13 forks source link

Specify which token types are acceptable for DelphiLint #59

Closed fourls closed 3 months ago

fourls commented 4 months ago

Prerequisites

Improvement description

Add explanatory documentation, ideally both on GitHub and the application itself, detailing the token types that DelphiLint supports. This could include checking supplied tokens to ensure that they will have the level of authentication, e.g. squ_ prefix.

Could be worth also investigating which features SonarQube does not support with a project-level token and selectively disabling them with a visible warning if the token is not elevated enough.

Rationale

It is currently unclear which tokens are supported, and using the wrong token tends to result in a pretty vague message (the general 401 error). DelphiLint only seems to support user-level tokens, which is the least granular token type.