cm0002@no.lastname.nz to Funny@sh.itjust.worksEnglish · 17 days agoAny day nowlemmy.mlimagemessage-square54fedilinkarrow-up1605arrow-down111
arrow-up1594arrow-down1imageAny day nowlemmy.mlcm0002@no.lastname.nz to Funny@sh.itjust.worksEnglish · 17 days agomessage-square54fedilink
minus-squarepftbest@sh.itjust.workslinkfedilinkarrow-up5·16 days agoI just made a CI pass to forbid non ASCII characters in the code. Found a lot of em dashes :(
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up4·16 days agoThere are plenty of non ASCII characters that are okay in code. ñ comes to mind. There are also box drawing characters.
minus-squarepftbest@sh.itjust.workslinkfedilinkarrow-up3·16 days agoWe don’t use them in my project, I only added an exception for ©®™ and such. You can easily whitelist any character range you need. My command looks like this: - (! grep -r -I -P '[^\x{00}-\x{7f}©®™°]' src)
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up2·16 days agoThis is goofy, I’m not gonna fail a build because somebody used some random Unicode character. That’s draconian.
I just made a CI pass to forbid non ASCII characters in the code. Found a lot of em dashes :(
There are plenty of non ASCII characters that are okay in code. ñ comes to mind. There are also box drawing characters.
We don’t use them in my project, I only added an exception for ©®™ and such. You can easily whitelist any character range you need. My command looks like this:
This is goofy, I’m not gonna fail a build because somebody used some random Unicode character. That’s draconian.