-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
110 lines (82 loc) · 1.9 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
AllCops:
Exclude:
- spec/dummy/db/schema.rb
- spec/dummy/node_modules/**/*
- bin/*
NewCops: enable
SuggestExtensions: false
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/EmptyLinesAroundBlockBody:
Enabled: false
Layout/LineLength:
Exclude:
- spec/dummy/db/migrate/*
Max: 140
IgnoredPatterns: ['\A\s*#']
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Lint/EmptyBlock:
Exclude:
- spec/**/*
Lint/SuppressedException:
Exclude:
- spec/dummy/config/initializers/rails_anonymizer.rb
Metrics/AbcSize:
Exclude:
- spec/dummy/db/migrate/*
Max: 40
Metrics/BlockLength:
Exclude:
- spec/dummy/config/environments/*
- spec/**/*
Max: 50
Metrics/ClassLength:
Max: 300
Metrics/CyclomaticComplexity:
Exclude:
- spec/dummy/db/migrate/*
Max: 20
Metrics/MethodLength:
Exclude:
- spec/dummy/db/migrate/*
Max: 30
Metrics/PerceivedComplexity:
Exclude:
- spec/dummy/db/migrate/*
Max: 20
Naming/InclusiveLanguage:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Style/ClassAndModuleChildren:
EnforcedStyle: compact
Exclude:
- spec/dummy/config/application.rb
- spec/dummy/db/migrate/*
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/IfInsideElse:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/MultilineIfModifier:
Enabled: false
Style/RescueModifier:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/TernaryParentheses:
Enabled: false
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma