Fashion Police
Sweatpants are a sign of defeat. — Karl Lagerfeld
KissKissBankBank's guide for maintaining a common code style.
Ruby
Follow the Ruby Style Guide
with our custom
.rubocop.yml
.
Gem
To use it in your project, add to your Gemfile
:
# KissKissBankBank's shared style configuration
gem 'fashion_police', require: false
Then, add to your .rubocop.yml
:
inherit_gem:
fashion_police:
- default.yml
inherit_mode:
merge:
- Exclude
Release
Update the version in fashion_police.gemspec
, update the CHANGELOG
and
commit the changes with a commit message like v1.0.0
.
Finally:
rake release
If you don't have the correct rights on rubygems.org, create an account and ask
one of the owners to add you with gem owner fashion_police --add <email>
.
JavaScript
Follow Airbnb's JavaScript guide.
CSS
Follow Airbnb's CSS guide.
General
- All comments, commits, committed documentation should be written in English.