EmmyLuaCodeStyle icon indicating copy to clipboard operation
EmmyLuaCodeStyle copied to clipboard

How to make stylechecker ignore spaces in some aligned expressions?

Open 4lph4-Ph4un opened this issue 1 year ago • 1 comments
trafficstars

I tend to write shorter one-expression if-elseif-else conditions as oneliners that I aligne like this:

if     off == 0 then return mid
elseif off < 0  then hi = mid - 1
else                 lo = mid + 1
end

This causes the stylecheck to warn about: "multiple spaces after token 'if'" and "multiple spaces after token '0'". Is there a way to make stylechecker to ignore cases like this? If not yet, could that be implemented at some point?

This might have some overlap with: #188

4lph4-Ph4un avatar Oct 01 '24 20:10 4lph4-Ph4un