GithubHelp home page GithubHelp logo

codestyle's Introduction

AlpineLab code style

Code style used by AlpineLab in all our projects.

Usage

  1. Add those gems to your Gemfile (or gems.rb, or gems.deps.rb):

    group :development, :test do
      gem "alpinelab-codestyle", "~> x.y", require: false
      gem "rubocop", "~> x.y", require: false
      gem "rubocop-md", "~> x.y", require: false
    end

    or install them manually:

    gem install alpinelab-codestyle rubocop rubocop-md
  2. Create or prepend your Rubocop configuration (usually .rubocop.yml) with:

    inherit_gem:
      alpinelab-codestyle:
        - config/default.yml
        - config/rails.yml # for Rails projects only

Best practices

Some conventions are adopted and enforced, but cannot be translated as Rubocop rules (or are not supposed to). You will find those conventions as Markdown files in the docs directory of this project, organized by subject:

Releases

To release this very gem:

  1. Bump its version number in version.rb respecting Semantic Versioning 2

  2. Use Bundler Rake task to build, tag and push the gem:

    rake release

    (using Docker, both Git authentication and Rubygems authentication must be configured to run docker-compose run app rake release)

License

This project is developed by Alpine Lab and released under the terms of the MIT license.

codestyle's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

codestyle's Issues

Add workflow documentation

Anyone's up to document our workflow? ๐Ÿ˜‡

It should include:

  • git branching model
  • GitHub project settings (incl. protected branches)
  • PR merging system
  • CI setup description
  • Heroku pipeline configuration (incl. review apps)

Document seeds usage

We could use a markdown section explicitly mentioning when, why and how Rails seeds should and should not be used.

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.