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

Fix line length for unicode files #293

Merged
merged 2 commits into from
Nov 17, 2015

Conversation

Licenser
Copy link
Contributor

The original implementaiton used byte_size for line length, however
this gave false results for unicode files. In the end we are not
interested in the number of bytes but the number of characters.

The original implementaiton used byte_size for line length, however
this gave false results for unicode files. In the end we are not
interested in the number of bytes but the number of characters.
@elbrujohalcon
Copy link
Member

@Licenser would you mind adding/updating a test case for this?

@Licenser
Copy link
Contributor Author

Done.

Please note that the elvis test here fails because of the test file that includes a unicode line which trips the 80 character limit. With a fixed elvis this test is clean.

elbrujohalcon pushed a commit that referenced this pull request Nov 17, 2015
Fix line length for unicode files
@elbrujohalcon elbrujohalcon merged commit 521948d into inaka:master Nov 17, 2015
@elbrujohalcon
Copy link
Member

thank you very much, @Licenser

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

Successfully merging this pull request may close these issues.

2 participants