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

max line length count is in bytes, should be in characters #115

Closed
agladysh opened this issue Jul 15, 2017 · 2 comments
Closed

max line length count is in bytes, should be in characters #115

agladysh opened this issue Jul 15, 2017 · 2 comments

Comments

@agladysh
Copy link

agladysh commented Jul 15, 2017

$ cat english.lua 
-- luacheck: max line length 80
print('0123456789A0123456789B0123456789C0123456789D0123456789E0123456789F01234')

$ cat russian.lua 
-- luacheck: max line length 80
print('0123456789А0123456789Б0123456789В0123456789Г0123456789Д0123456789Е01234')

$ luacheck english.lua russian.lua 
Checking english.lua                              OK
Checking russian.lua                              1 warning

    russian.lua:2:1: line is too long (86 > 80)

Total: 1 warning / 0 errors in 2 files

$ luacheck --version
Luacheck: 0.20.0
Lua: Lua 5.1
LuaFileSystem: LuaFileSystem 1.6.3
LuaLanes: 3.10.1
@agladysh
Copy link
Author

NB: http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ if all what you want to do is count characters.

@mpeterv
Copy link
Owner

mpeterv commented Aug 27, 2017

Part of #45, I hope to get around to implementing it finally.

@mpeterv mpeterv closed this as completed Aug 27, 2017
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