Last active
August 29, 2015 14:06
-
-
Save takashyx/d2464c347734996492ad to your computer and use it in GitHub Desktop.
.rubocop.yml設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inherit_from: .rubocop_todo.yml | |
# 日本語コメント許可 | |
AsciiComments: | |
Enabled: false | |
# モジュール名::クラス名定義許可 | |
ClassAndModuleChildren: | |
Enabled: false | |
# クラスにコメントを残さなくてもOK | |
Documentation: | |
Enabled: false | |
# and/or使用許可 | |
AndOr: | |
Enabled: false | |
AllCops: | |
Exclude: | |
- db/schema.rb | |
- config/unicorn.rb | |
- config/unicorn_staging.rb | |
- tmp/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# put this under .git/hooks/ | |
git diff --cached --name-only --diff-filter=AM | grep '\.rb$' | xargs rubocop | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment