Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When locale is set to en-au (and presumably other non-us locales) typos identifies CSS and SVG property values as typos #1097

Open
wezm opened this issue Sep 14, 2024 · 2 comments

Comments

@wezm
Copy link

wezm commented Sep 14, 2024

error: `maximized` should be `maximised`
  --> ./favicon.svg:36:22
   |
36 |      inkscape:window-maximized="1"
   |                      ^^^^^^^^^
   |
error: `center` should be `centre`
  --> ./static/style.css:88:14
   |
88 |  text-align: center;
   |              ^^^^^^
   |
error: `capitalize` should be `capitalise`
  --> ./static/style.css:362:18
    |
362 |  text-transform: capitalize;
    |                  ^^^^^^^^^^

I have worked around this by disabling checking of these files.

@epage
Copy link
Collaborator

epage commented Sep 14, 2024

Users can workaround this in their config by blessing the words or identifiers.

typos has no knowledge of the syntax of different formats. The only built-in option is to we providing a built-in list for CSS-specific like a user could do that work in American English but not other dialects. Frankly, I somewhat regret dialect support for cases like this. Its less common for "typos" to show up in APIs. However, it feels like it might be a game of whack-a-mole to deal with all of the exception cases for non-American dialects in programming.

@wezm
Copy link
Author

wezm commented Sep 14, 2024

Fair enough. I had assumed it had more knowledge of syntax than it does. Seems reasonable to close as not planned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants