Open zaneduffield opened 6 months ago
Agreed.
Equivalent APIs in sonar-java:
It is worth noting that unlike Java projects, Delphi projects are often designed to target a wide range of versions. There might be a value loss if we threw out all issues that don't match the specified compiler version.
Could we make the configuration a bit more granular to handle these cases?
Prerequisites
Engine area
Rules API
Improvement description
Provide a way to check what the configured Delphi compiler version is from the perspective of a descendant of
DelphiCheck
. I'd imagine this would become part of the interface forDelphiCheckContext
.Rationale
Currently (as far as I can tell) there is no way for a rule to check what the configured Delphi compiler version is.
Several kinds of rules would benefit from this knowledge, including
DigitGrouping
)