-
Notifications
You must be signed in to change notification settings - Fork 351
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
Podspec can't use utf-8 without lint failure #108
Comments
we can probably remove that comment check pretty soon entirely with the upcoming specs repo changes. |
It shouldn’t even matter in the case of a podspec, as we don’t use Did you encounter a real problem? |
My editor, emacs, inserts an encoding comment there automatically when editing ruby. If you choose to out rule that and only accept an arbitrary subset of ruby syntax with your linter, that's your design choice. |
Ruby uses a magic comment in the first line of the file to specify the encoding of the file. Otherwise ASCII is assumed.
To specify utf8, a comment like this is put into the first line of the source file:
# -*- coding: utf-8 -*-
When running
pod lib lint
on this, a warning is issued and the lint fails. This is the output:I don't think this is very helpful. Non-ascii names are impossible to use then.
The text was updated successfully, but these errors were encountered: