# Поддержка Lefthook

**URL:** <https://meta.discourse.org/t/lefthook-support/121929>\
**Category:** Development\
**Created:** [02.Июль.2019 21:46:04 UTC](https://meta.discourse.org/t/lefthook-support/121929 "2019-07-02T21:46:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [02.Июль.2019 22:20:04 UTC](https://meta.discourse.org/t/lefthook-support/121929/3 "2019-07-02T22:20:04Z")

</div>

Я впервые использовал его сегодня, и здорово, что мне не пришлось ничего настраивать на своём компьютере.

Спасибо за pull request!

> [@pfaffman](#):
>
> Можешь рассказать подробнее, что такое Lefthook и зачем нам о нём знать? Может, дать ссылку и пример использования?

Вот контекст:

> <https://github.com/discourse/discourse/pull/7826>
>
> Overcommit uses prebuilt hooks and require global installation.
> To avoid this i…ssues replace it with \[Lefthook\](https://github.com/Arkweid/lefthook).
> Lefthook will be installed with npm packages. New contributors
> will have fully consistent git hooks.
> 
> Goals:
> \- \*\*Strict workflow\*\*. Avoid situations when newcomers pushed PR without checks with rubocop or eslint. And members should \[recommend\](https://github.com/discourse/discourse/pull/7192#issuecomment-473973502) to install overcommit.
> \- \*\*Flexibility\*\*. You free to combine basic operations.
> \- \*\*Сlarification\*\*. Overcommit provide prebuilt hooks. So its hard to understend what is going on without inspecting overcommit repository.
> \- \*\*20% Faster\*\*. Well, it not a big issue in development environment, but a like faster instruments :)
> \- \*\*Twice speed up for CI lints\*\*. With Lefthook we can run lints on CI in paralel mode. You can check \[example here\](https://travis-ci.org/discourse/discourse/jobs/551862476#L956).
> 
> Example output for this commit:
> !\[PR example\](https://i.gyazo.com/1eb2d11850b1a826981bec7375527501.png "PR example")
> 
> Example output for CI lints:
> !\[PR example\](https://i.gyazo.com/c5e2c92383437d3617bc138e28e74a01.png "PR example")
> 
> Don't forget to remove preinstalled hooks from you repo \`overcommit --uninstall\` if you want to test it action.
> 
> So what do you think about. Is it worth?

---

_[View the full topic](https://meta.discourse.org/t/lefthook-support/121929)._
