简体   繁体   中英

How to use policial gem in my RoR project?

i want to use policial gem in my RoR project. I search in the documentation gem https://github.com/volmer/policial and this is very general. I don't understand where I can instantiate the detective for investigates pull requests and accuses style guide violations in my project.

I search in google i don't find tutorials or examples. Could help me with some example or related information. Thank you.

Instead, you can create overcommit gem which creates Github hooks and if you style guide violations you will be prompted to create commits. you can configure overcommit to use various linter and Rubocop. Rubocop is widely accepted ruby linter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM