-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: 💄 RuboCop の設定ファイルを更新した (#126)
* style: 💄 RuboCop の設定ファイルを更新した * style: 💄 prekin.gemspec は RuboCop の対象外にする
- Loading branch information
1 parent
d7fbb26
commit c03fd8b
Showing
3 changed files
with
34 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,44 @@ | ||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
AllCops: | ||
NewCops: enable | ||
DisplayCopNames: true | ||
Exclude: | ||
- 'vendor/**/*' | ||
- 'node_modules/**/*' | ||
- 'spec/**/*' | ||
- 'Guardfile' | ||
- 'bin/**/*' | ||
- 'tmp/**/*' | ||
- 'prekin.gemspec' | ||
|
||
Style/TrailingCommaInHashLiteral: | ||
Enabled: false # 有効にすると見た目がいいレイアウトにした際に怒られるため無効にする | ||
# EnforcedStyleForMultiline: consistent_comma | ||
|
||
Style/TrailingCommaInArrayLiteral: | ||
Enabled: false # 有効にすると見た目がいいレイアウトにした際に怒られるため無効にする | ||
# EnforcedStyleForMultiline: consistent_comma | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/AsciiComments: | ||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
Metrics/LineLength: | ||
Max: 250 # 数字に特に根拠はない | ||
Style/StringLiterals: | ||
EnforcedStyle: single_quotes | ||
|
||
Style/NumericLiterals: | ||
Enabled: false | ||
Style/StringLiteralsInInterpolation: | ||
EnforcedStyle: single_quotes | ||
|
||
Style/PercentLiteralDelimiters: | ||
PreferredDelimiters: | ||
default: '()' | ||
'%i': '[]' | ||
'%I': '[]' | ||
'%r': '{}' | ||
'%w': '()' | ||
'%W': '[]' | ||
Style/TrailingCommaInArrayLiteral: | ||
EnforcedStyleForMultiline: comma | ||
|
||
Style/Documentation: | ||
Enabled: false # 一行目に class って書いてもいいでしょ | ||
Metrics/BlockLength: | ||
Max: 52 | ||
|
||
Style/ClassAndModuleChildren: | ||
Enabled: false # 暫定的に false にする(名前空間関連) | ||
Metrics/ClassLength: | ||
Max: 500 | ||
|
||
Metrics/MethodLength: | ||
Enabled: false # メソッドの長さが長いと怒られる(有用なので後で調整すること) | ||
Metrics/CyclomaticComplexity: | ||
Max: 16 | ||
|
||
Metrics/AbcSize: | ||
Max: 20 # これぐらいの長さになることは許してほしい | ||
Metrics/MethodLength: | ||
Max: 65 | ||
|
||
Style/RegexpLiteral: | ||
Enabled: false # 有効にすると Lint/Syntax で怒られる?ので無効化 | ||
Metrics/PerceivedComplexity: | ||
Max: 17 | ||
|
||
# 頃合いを見て true に変更する | ||
Gemspec/RequiredRubyVersion: | ||
Enabled: false | ||
Metrics/ModuleLength: | ||
Max: 160 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rules: |
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