Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement pre-hook for "git add" or "git commit #4

Open
rohandaxini opened this issue Dec 4, 2018 · 0 comments
Open

Implement pre-hook for "git add" or "git commit #4

rohandaxini opened this issue Dec 4, 2018 · 0 comments

Comments

@rohandaxini
Copy link
Owner

rohandaxini commented Dec 4, 2018

Implementation details:

  1. Add kinit to Gemfile
  2. Rename config/kinit_config.yml to config/kinit.yml
  3. Provide a way to add initializer for kinit configs if yml can't do that
  4. Provide a way to add pre-hook commit configs in yml or initializer
  5. kinit takes care of those hooks and executes those hook commands on project

Example: config/kinit.yml

best_practices:
    - bullet
    - rails_best_practices

detector:
    - reek

linter:
    - rubocop

coverage:
    - simplecov

test:
    - rspec

suggestion:
    - code_climate

prehook:
    git_add:  # or git_commit
        - rubocop
        - reek
        - simplecov
 

screenshot 2018-12-04 at 3 48 40 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants