install rubocop gem via gem install rubocop
No need!, config file is included in crystal as .rubocop.yml in app's root directory
| # Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files | |
| # for Pry binding references | |
| # | |
| # Installation | |
| # | |
| # ln -s /path/to/pre-commit.sh /path/to/project/.git/hooks/pre-commit | |
| # | |
| # Based on | |
| # | |
| # http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/ |
| # Depth-first-searcher | |
| # a | |
| # / \ | |
| # b c | |
| # /|\ \ | |
| # d e f g | |
| # | | |
| # h | |
| # | |
| # Write code that can search for a node in a tree. |