mgechev / revive

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

"-include value" flag (analogous to "- exclude value") #890

Closed damif94 closed 11 months ago

damif94 commented 11 months ago

Is your feature request related to a problem? Please describe. Out projects are getting bigger and running revive withing precommit hook https://github.com/morphy2k/revive-action get's annoyingly slower.

Describe the solution you'd like An -include flag with the following description:

  -include value
        list of globs which specify files to be included (incompatible with -exclude value)

The https://github.com/morphy2k/revive-action pre-commit hook could then be updated (or other hooks) to analyze only the diff files only and hence be much faster.


I can go on the PR, but first I would like your views @chavacava

chavacava commented 11 months ago

Hi @damif94 , thanks for the proposal. Right now I have restricted Internet access, I will check the ticket next week.