Switch from EClint to Editorconfig-Checker #25
Labels
👮 code style
Policies: Code style consistency conventions.
🔨 EClint
Tool: EClint (EditorConfig validator)
🔨 editorconfig-checker
Tool: editorconfig-checker (EditorConfig validator)
⭐ automation
Topic: project automation and/or repo CI
⚠️ important
Priority: High
We really need to stop using EClint to validate code styles consistency of the repo's code, for the following reasons:
Of the above, point 3 is particularly relevant, for it would be ideal to find a code validation tool that uses its own settings file instead of the
.editorconfig
settings, so that we could decouple it from the EditorConifg rules, which don't always match the validation criteria.(see also: alan-if/alan-docs#79)
Editorconfig-Checker
The only viable alternative to EClint which I've found is editorconfig-checker (also available as NPM package), which I've been testing locally for over a year.
But we can't switch to this tool until the following bug is solved, which prevents its usage within cross platform Git repositories:
editorconfig-checker/editorconfig-checker#164
I.e. if the
.editorconfig
file contains a rule enforcing native EOLs it will report a false positive:so we can't use editorconfig-checker until this is fixed — although the tool allows disabling EOL checks, by doing so we won't be validating EOLs consistency in PRs, nor those files types that require a specific EOL.
We could disable EOL checks in editorconfig-checker via its configuration file, and rely on
.gitattributes
rules instead, but the latter only work when there are appropriate Git settings, so invalid EOLs could end up in the repository, since the Travis CI task won't be validating them (need to weight the pros and cons of this, after all I've submitted the bug report in April and it's still unfixed, and EClint is becoming more problematic as Node.js gets updated).The text was updated successfully, but these errors were encountered: