Open oliverlietz opened 2 years ago
In fact it tests for TokenKind.Hyphen
which is a hyphen-minus
.
Strictly speaking the character "–" on line 11 is an en dash, not a hyphen, Unicode 2013
. There is a distinct Unicode hyphen character, 2010
or "‐", which I assume would also not pass this lint rule, but hyphen-minus is definitely in far wider use, and I think most people would default to using it, if only because it's on most keyboards and in ASCII.
Example (line 10: hyphen-minus, line 11: hyphen):