/
.rubocop.yml
55 lines (42 loc) · 1.12 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
inherit_from: .rubocop_todo.yml
AllCops:
# 除外するディレクトリ(自動生成されたファイル)
# デフォルト設定にある"vendor/**/*"が無効化されないように記述
Exclude:
- bin/*
- db/schema.rb
- db/migrate/*
- vendor/**/*
# Rails向けのRails copsを実行。"rubocop -R"と同じ
Rails:
enabled: true
# "Missing top-level class documentation comment."を無効
Style/Documentation:
Enabled: false
# "Prefer single-quoted strings when you don't need string interpolation or special symbols."を無効
Style/StringLiterals:
Enabled: false
# "Line is too long"を無効
Metrics/LineLength:
Enabled: false
#'frozen_string_literal: true'を無効
Style/FrozenStringLiteralComment:
Enabled: false
Metrics/BlockLength:
Max: 250
MethodLength:
CountComments: false # count full line comments?
Max: 30
Metrics/AbcSize:
Max: 30
AllCops:
TargetRubyVersion: 2.5
Style/ClassAndModuleChildren:
Enabled: false
Metrics/CyclomaticComplexity:
Max: 8
Metrics/PerceivedComplexity:
Max: 8
ClassLength:
CountComments: false # count full line comments?
Max: 110