DarkPlayer@lemmy.world to Programming@programming.dev · 11 months agoUnicode tricks in pull requests: Do review tools warn us?semanticdiff.comexternal-linkmessage-square6fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1external-linkUnicode tricks in pull requests: Do review tools warn us?semanticdiff.comDarkPlayer@lemmy.world to Programming@programming.dev · 11 months agomessage-square6fedilink
minus-squaremonk@lemmy.unboiled.infolinkfedilinkarrow-up1·11 months agoHomoglyphs? Invisible text? Bidirectional text? Just highlight every line that goes beyond ASCII with yellow warning colors and require to vet it. Maybe make localization data an exception.
minus-squareActual@programming.devlinkfedilinkEnglisharrow-up0·11 months agoVery simple solution actually. Here I was thinking we’d need AI to solve it.
minus-squareDudeDudenson@lemmings.worldlinkfedilinkarrow-up1·11 months agoPeople would call that solution AI these days. If it has at least one if statement then they call it AI
minus-squarearthur@lemmy.ziplinkfedilinkEnglisharrow-up0·11 months agoOr the non-ascii character itself.
minus-squaremonk@lemmy.unboiled.infolinkfedilinkarrow-up1·11 months agoDoesn’t work if it’s invisible.
Homoglyphs? Invisible text? Bidirectional text? Just highlight every line that goes beyond ASCII with yellow warning colors and require to vet it. Maybe make localization data an exception.
Very simple solution actually. Here I was thinking we’d need AI to solve it.
People would call that solution AI these days. If it has at least one if statement then they call it AI
Or the non-ascii character itself.
Doesn’t work if it’s invisible.