you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 11 months ago (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 11 months ago (2 children)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 11 months ago (1 child)

    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)
    
  • source
  • parent
  • hideshow 1 child comment