vscode-rpgle
vscode-rpgle copied to clipboard
Rule removal `RequireBlankSpecial`
*BLANK
refers to a single space in RPGLE, not an empty string.
Updated to extension 0.20.0, (happens in prior versions also), single character blanks in strings for SQL statement strings are highlighted. It might also happen with QCMDEXC command strings but I dont have an example of that appearing.
Other examples where the rules should not mark code.
You cannot concat *BLANK to a string.
This code will not compile...
This code compiles...
I am in progress of writing a test member for all variations i can think of where ' '
might be present.
@m-tyler solely screenshots are absolutely not helpful. Please just paste the content as well. Thanks!
0.20.0 was a big change under the hood so I was expecting new issues too.
Screen shots were just to visualize the results.
The blank issue happens in the prior version at least, maybe in older ones as well. I was planning on putting in an issue of my own then I saw this sitting.
A source file I hope helps show where the rule causes me troubles. If I happen to use the Format Document
(Shift+Alt+F) command to auto fix linter items, it fixes these then most of the marked lines will end up being incorrect.
Fix incoming this weekend!
Note: I am considering removing this rule entirely. It’s not used often.