greut / eclint

Mirror of
https://gitlab.com/greut/eclint
MIT License
14 stars 2 forks source link

UTF-16LE line ends are not recognized #4

Closed szepeviktor closed 1 year ago

szepeviktor commented 1 year ago

From: https://github.com/crate-ci/typos/pull/735

[crates/typos-cli/tests/cmd/utf16.in/nushell_utf16.ini]
charset = utf-16le
end_of_line = crlf

This file nushell_utf16.ini has CRLF line ends but eclint reports a violation.

@greut Please help. Thank you!

greut commented 1 year ago

@szepeviktor you're correct. If fails to take into account that its multibyte and it occurs in many places I'm afraid.

greut commented 1 year ago

https://gitlab.com/greut/eclint/-/merge_requests/141 should bring utf-16le support (probably basic)

szepeviktor commented 1 year ago

Thank you.

greut commented 1 year ago

Let me know if v0.4.0 solved it for you. Cheers,

szepeviktor commented 1 year ago

Just downloaded the above linked file and there is no error with 0.4.0.