Gilles Querret

Results 184 comments of Gilles Querret

Do you have this problem with SonarQube or SonarLint ?

This rule is based on rcode. If the rcode is not available in the build directory, then the rule will not report an issue.

Can you turn verbose mode in SonarQube analysis and verify the rcode is read correctly ?

Agree it should be detected, but this level of granularity is not available yet. We'd need to have better flow control to detect this case.

Code flow information is now available in the parse tree, so enhancement can now be implemented.

Reproduced. In order to confirm, this is this code ? ``` def var rslt as integer. def var val as Progress.Reflect.AccessMode. val = Progress.Reflect.AccessMode:private. rslt = integer(val:GetValue()). rslt = val:GetValue()....

It might be better to report usage of `INTEGER(objectReference)`, whether it is an enum or not. When it's not an enum, the returned value doesn't have any meaning outside of...

> Reasons to use `INTEGER(val)` are that there's no "NPE" when val is an unknown value; the unknown value is simply returned. So until the `enumRef?:getValue()` syntax is available, it's...