486
Any day now (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] pftbest@sh.itjust.works 5 points 3 weeks ago

I just made a CI pass to forbid non ASCII characters in the code. Found a lot of em dashes :(

[-] JackbyDev@programming.dev 4 points 3 weeks ago

There are plenty of non ASCII characters that are okay in code. ñ comes to mind. There are also box drawing characters.

[-] pftbest@sh.itjust.works 3 points 3 weeks ago

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:

- (! grep -r -I -P '[^\x{00}-\x{7f}©®™°]' src)
[-] JackbyDev@programming.dev 3 points 3 weeks ago

This is goofy, I'm not gonna fail a build because somebody used some random Unicode character. That's draconian.

this post was submitted on 15 Nov 2025
486 points (98.8% liked)

Funny

12569 readers
513 users here now

General rules:

Exceptions may be made at the discretion of the mods.

founded 2 years ago
MODERATORS