is there a JVM arg (or some other setting/toggle) ...
# adobe
t
is there a JVM arg (or some other setting/toggle) to force semicolon statement terminators in 2018+?
☝️ 1
s
Tim (if that’s your name?) I think they’re optional 2018 onwards
no argument required
t
it'd be really nice if there was an option to enforce requirement. we ran into some pain points while we were in hybrid 2016/2018...
r
Generally, that's handled by your editor/IDE and/or linter.
a
Is there a setting in CFLint?
t
yeah we're getting there on linting
a
This is more something for linting, not the app server to worry about.
👍 2
s
Sorry did I misunderstand the requirement?
ah I did
you asked to force them
t
no worries. ty all for chiming in ❤️
s
Can I ask why you want to force them though? Just out of curiosity
Is it your style guide
also not the biggest fan of the "sometimes it's optional" behavior as its currently implemented
r
CFLint will catch missing semicolons.
❤️ 1
a
yeah some of the woolliness of CFML's implementation means it's legit ambiguous sometimes as to whether code on two lines is one statement or two.
But 99.99% of the time it's fine. And if one actually has tests, 100% of the time it's fine. And seems a bit rubbish to me to enforce semi-colons 100% of the time for the 0.01% of the time they're needed.
t
respectfully:

https://media.giphy.com/media/F3G8ymQkOkbII/giphy.gif

😂 1
definitely going to take a gander at CFLint though. thank you again all for the insight!
s
sometimes habits overlap, for example when I’m writing JS I almost always do
console.log(foo); abort;
though I’m a self aware dunce so that might just be me
Being honest though, even now when I read Python code I still have a kind of double take at the lack of semi colons
Though curiously when I did Kotlin koans I didn’t have the same reaction