[CLI] query format
should keep set literal elements on separate lines
#16880
Labels
question
Further information is requested
Problem
(CodeQL CLI 2.17.6)
When you run
codeql query format
, respectively the "Format Document" action in the VS Code extension, CodeQL set literal elements are laid out to be as compact as possible.This is an issue when in the original code the elements were intentionally on separate lines to increase readability.
For example, formatting this code:
will move
"com.example.MyClass#myMethod"
on the same line as the previous element:Suggested solution
If in the original code every set literal element was on a separate line (and maybe the set literal has at least X elements), then the formatted set literal should also have all elements on separate lines.
The text was updated successfully, but these errors were encountered: