go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.23k stars 5.42k forks source link

Editorconfig linting #11874

Closed silverwind closed 4 years ago

silverwind commented 4 years ago

We often get PRs with whitespace issues which could be detected by tools that lint for editorconfig violations. Possible options:

greut/eclint says it's the fastest in its README. jedmao/eclint is unmaintained and has a few bugs the last time I tried it, I would not consider it.

silverwind commented 4 years ago

Gave the two golang tools a try, they both suck. greut/eclint won't even compile and editorconfig-checker/editorconfig-checker apparently can not parse .editorconfig. So I guess we have to do without such linting until better tooling is made.