Mirror of
MIT License
A faster alternative to the JavaScript eclint written in Go.
Tarballs are signed (.minisig
) using the following public key:
RWRP3/Z4+t+iZk1QU6zufn6vSDlvd76FLWhGCkt5kE7YqW3mOtSh7FvE
Which can be verified using minisig or signify.
$ go install gitlab.com/greut/eclint/cmd/eclint
$ eclint -version
Excluding some files using the EditorConfig matcher
$ eclint -exclude "testdata/**/*"
charset
end_of_line
indent_size
indent_style
insert_final_newline
max_line_length
(when using tabs, specify the tab_width
or indent_size
)
trim_trailing_whitespace
line_comment
block_comment_start
, block_comment
, block_comment_end
git ls-files
-exclude
to filter out some fileseclint_
prefix-color
: never
to disable and always
to skip detection)-summary
mode showing only the number of errors per file-show_all_errors
to disable)-fix
to modify files in place rather than showing the errors currently:
unix2dos
, dos2unix
max_line_length
counting UTF-32 charactersNB benchmarks matter at feature parity (which is also hard to measure).
The contenders are the following.
The methodology is to run the linter against some big repositories time eclint -show_all_errors
.
Repository | editorconfig-checker |
jedmao/eclint |
greut/eclint |
---|---|---|---|
Roslyn | 37s | 1m5s | 4s |
SaltStack | 7s | 1m9s | <1s |
Two options: -cpuprofile <file>
and -memprofile <file>
, will produce the appropriate pprof files.
.editorconfig
parsing