All Projects → altmetric → house_style

altmetric / house_style

Licence: MIT license
A shared house style for Ruby projects

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to house style

Android Kotlin Style Guide
Kotlin style guide of FRESH LIVE since April, 2015.
Stars: ✭ 121 (+536.84%)
Mutual labels:  styleguide, style-guide
Vue Styleguidist
Created from react styleguidist for Vue Components with a living style guide
Stars: ✭ 2,133 (+11126.32%)
Mutual labels:  styleguide, style-guide
Vue Styleguide Generator
React inspired style guide generator for Vue.js
Stars: ✭ 123 (+547.37%)
Mutual labels:  styleguide, style-guide
kotlin-style-guide
red_mad_robot Kotlin Style Guide
Stars: ✭ 85 (+347.37%)
Mutual labels:  styleguide, style-guide
Livingcss
Parse comments in your CSS to generate a living style guide using Markdown, Handlebars, Polymer, and Prism syntax highlighter.
Stars: ✭ 237 (+1147.37%)
Mutual labels:  styleguide, style-guide
Catalog
Create living style guides using Markdown or React
Stars: ✭ 1,527 (+7936.84%)
Mutual labels:  styleguide, style-guide
Styleguide Generators
An overview of automatic living styleguide generators
Stars: ✭ 1,902 (+9910.53%)
Mutual labels:  styleguide, style-guide
Flake8
The official GitHub mirror of https://gitlab.com/pycqa/flake8
Stars: ✭ 1,112 (+5752.63%)
Mutual labels:  styleguide, style-guide
Stylemark
Generate interactive style guides from Markdown.
Stars: ✭ 217 (+1042.11%)
Mutual labels:  styleguide, style-guide
Frontend Nanodegree Styleguide Zh
优达学城(Udacity)前端样式指南
Stars: ✭ 188 (+889.47%)
Mutual labels:  styleguide, style-guide
eslint-config-mingelz
A shared ESLint configuration with Chinese comments. 一份带有完整中文注释的 ESLint 规则。
Stars: ✭ 15 (-21.05%)
Mutual labels:  styleguide, style-guide
Javascript
JavaScript Style Guide
Stars: ✭ 117,286 (+617194.74%)
Mutual labels:  styleguide, style-guide
Typescript Guidelines
The TypeScript Guidebook
Stars: ✭ 104 (+447.37%)
Mutual labels:  styleguide, style-guide
Sscss
Light Sass lib for managing your font-size, margin, padding, and position values across breakpoints.
Stars: ✭ 119 (+526.32%)
Mutual labels:  styleguide, style-guide
Swift
Airbnb's Swift Style Guide.
Stars: ✭ 1,165 (+6031.58%)
Mutual labels:  styleguide, style-guide
Javascript Style Guide
Airbnb JavaScript 스타일 가이드
Stars: ✭ 132 (+594.74%)
Mutual labels:  styleguide, style-guide
React Styleguide
ReactJS style guide for component-based projects.
Stars: ✭ 14 (-26.32%)
Mutual labels:  styleguide, style-guide
Axiom React
Axiom - Brandwatch design system and React pattern library
Stars: ✭ 41 (+115.79%)
Mutual labels:  styleguide, style-guide
Ue4 Style Guide
An attempt to make Unreal Engine 4 projects more consistent
Stars: ✭ 2,656 (+13878.95%)
Mutual labels:  styleguide, style-guide
Nodebestpractices
✅ The Node.js best practices list (December 2021)
Stars: ✭ 72,734 (+382710.53%)
Mutual labels:  styleguide, style-guide

HouseStyle

Be nice and consistent from project to project.

This gem acts as a local repository for house style checkers for Ruby and Rails projects.

Installation

Add this line to your application's Gemfile:

gem 'house_style'

And then execute:

$ bundle

Usage

For non-Rails projects, add the following to the top of your .rubocop.yml file:

inherit_gem:
  house_style: ruby/rubocop.yml

If your project is a Rails project, you should use the instruction below, which includes all the standard Ruby house styles, with Rails-specific cops:

inherit_gem:
  house_style: rails/rubocop.yml

house_style comes with a Rails generator which can set up both your project root and your RSpec folder to start using the default house styles by default. With house_style declared in your Gemfile:

$ rails generate house_style:install

This will create .rubocop.yml files in your project root and spec folders.

Development

The gem has no executable code of its own, so there is no test suite to speak of.

Before committing any changes, ensure that it conforms to its own rubocop settings.

To install this gem onto your local machine, run bundle exec rake install.

Releasing a new version

Update the version number in house_style.gemspec, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/altmetric/house_style. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].