Closed
Description
Description of the issue
Often the start and end column of elements reported by QL do not match the expected ones.
However, Location.toString
currently only contains the line number but not the column values. Therefore you often have to either write your own predicate for creating a string representation or include the column values in the result set, which is both tedious.
Would it be therefore possible to also include the column values in the result of toString
?
Example format:
- For multiple lines:
file:startLine[startColumn]-endLine[endColumn]
, e.g.A.java:1[4]-3[10]
- For single line:
file:line[startColumn-endColumn]
, e.g.A.java:1[4-10]
Edit: Or alternatively / additionally improve the query console on lgtm.com so that result links not only include the start line number, but the end line number and start and end column as well (and highlight them respectively).