GithubHelp home page GithubHelp logo

rohandaxini / kinit Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 34 KB

Kinit will make your Rails application better by adhering to good practices.

License: MIT License

Ruby 100.00%
ruby rails good-practices

kinit's People

Contributors

rohandaxini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

swapab

kinit's Issues

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

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

Deprecated gems

factory_girl_rails is now factory_bot_rails and cane recommends using rubocop instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.