flyerhzm / rails_best_practices

a code metric tool for rails projects
http://rails-bestpractices.com
MIT License
4.16k stars 276 forks source link

Integrate with pre-commit tool #371

Open adithyabsk opened 4 years ago

adithyabsk commented 4 years ago

Feature

It would be really nice if the project integrated with the pre-commit project, a widely used pre-commit hook management tool. Only a single file is required for integration (the .pre-commit-hooks.yaml file)

Solution

I've already set up a project mirror doing exactly that would suggest a link to my mirror (which auto-sync to the mainline project's releases)

https://github.com/adithyabsk/mirrors-rails-best-practices

Next steps

Option A (most preferred) Move forward with integrating pre-commit tool using my project's mirror as a starting point Option B Add a link in the docs to suggest using the mirror one is interested in using pre-commit hooks

oleksandr-vonahi commented 6 months ago

Pronto gem already does such things