stray-emoji
An emoji in a file.
- Group
- Text
- Runs
- Optional: run it with
ur lint --rule stray-emoji - Level
- warning
- Reads
- Every file
- Fix
- None: the words that replace an emoji are the author's to choose
Why
The line holds an emoji: a character Unicode presents as an emoji by default, or one the emoji variation selector asks to. In code, comments, messages, and output, emoji are decoration an agent adds and a reader skips. Write words. Symbols Unicode presents as text, such as โ or โ, are not reported. The rule reads every text file, whatever its language, and runs where [lint.stray-emoji] turns it on; a project leaves out data that holds emoji on purpose with its exclude globs.
The fix, as Ur suggests it: say it in words.
For agents
Write no emoji in code, comments, messages, or output; say it in words.
Example
README.md# Checkout
The checkout service takes a cart and returns a paid order.
## Running it
Start the service with `npm start`. It listens on port 3000. ๐
Payments go to the sandbox unless `PAYMENTS_LIVE` is set.
$ ur lint --rule stray-emoji
warning[stray-emoji]: emoji `๐`
--> ./README.md:7:62 emoji `๐`
= hint: say it in words
0 clone classes and 1 text finding in 1 file