mgechev / revive

🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
https://revive.run
MIT License
4.69k stars 273 forks source link

Load config from different locations prefer XDG_CONFIG_HOME before HOME #912

Closed mfederowicz closed 9 months ago

mfederowicz commented 9 months ago

base on https://github.com/mgechev/revive/pull/725

make some cleanup, and tests using github.com/spf13/afero package for mocking filesystem

mfederowicz commented 9 months ago

@chavacava can you look at my changes? Sorry for go.sum mess but I can find solution to make file with latest checksums for packages :(

mfederowicz commented 9 months ago

ok @chavacava I commited changes with yours suggestions, let me know i all good, and then we can squash commits and go to master :P