-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Allow to enforce ellipsis instead of three dots #28
base: master
Are you sure you want to change the base?
Conversation
Our translation and design guidelines say to use ellipsis instead of three dots, yet some code is using three dots instead of the ellipsis character. This adds a custom fixer and rule to allow auto-fixing those strings. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7b39377
to
0ceffd5
Compare
Good idea, especially because it's also enforced for apps then. Do we still run https://github.com/nextcloud/server/blob/master/build/triple-dot-checker.php? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm on the fence with this.
As Daniel shows, this might influence strings that are not user visible, and this is more of a semantic check/fix. I think the cs fixer should only fix syntax formatting.
Should this be a Psalm rule like build/psalm/OcpSinceChecker.php
?
Or (when it's only about user facing strings) in the translation checker? |
The idea was to also check for apps.
If that makes more sense for you, then sure. I can look into that when I have some more time. |
Yeah the above and some future checks should be done for all apps as well |
Our translation and design guidelines say to use ellipsis instead of three dots, yet some code is using three dots instead of the ellipsis character. This adds a custom fixer and rule to allow auto-fixing those strings.
I did not default enable it, because it is a risky rule that might change behavior (e.g. string comparison).
Feel free to dismiss if you feel like this should not be enforced.