This repository has been archived by the owner on Sep 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
89 lines (69 loc) · 2.31 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
inherit_from: .rubocop_todo.yml
# Custom Cop Config
AllCops:
Exclude:
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
- 'test/**/*'
- 'bin/{rails,rake}'
- 'app/helpers/*'
- 'app/channels/**/*'
- !ruby/regexp /old_and_unused\.rb$/
- 'test/**/*'
# Extended LineLength to 130
Layout/LineLength:
Max: 100
# Selected brackets as default SymbolArray Style
Style/SymbolArray:
EnforcedStyle: brackets
# Configuration parameters: IgnoredMethods.
Metrics/AbcSize:
Max: 43
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/MethodLength:
Max: 13
# Custom Exclude Config
# Added exclude to MixinUsage for two bin files.
# 'Setup' uses 'include' statement as top level. Excluded reason: Auto-gen file.
# 'Update' uses 'include' statement as top level. Excluded reason: Auto-gen file.
Style/MixinUsage:
Exclude:
- 'bin/setup'
- 'bin/update'
# Added exclude to ClassAndModuleChildren for test .rb file.
# 'test_helper.rb' uses compact class statement 'ActiveSupport::TestCase'. Excluded reason: Auto-gen file.
Style/ClassAndModuleChildren:
EnforcedStyle: compact
Exclude:
- 'test/test_helper.rb'
- 'app/channels/**/*'
# Added exclude to Documentation for multiple files.
# 'application_helper.rb' has an empty-body module. Excluded reason: Excluded reason: Cant add documentation to empty module.
# 'welcome_helper.rb' has an empty-body module. Excluded reason: Cant add documentation to empty module.
# 'application_mailer.rb' has none top-level class documentation. Excluded reason: Auto-gen file.
# 'application_record.rb' has none top-level class documentation. Excluded reason: Auto-gen file.
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'app/helpers/application_helper.rb'
- 'app/helpers/welcome_helper.rb'
- 'app/mailers/application_mailer.rb'
- 'app/models/application_record.rb'
- 'app/models/*'
# Default Cop Adds
# This Cops where added to Rubocop by the default installation but are not configured by default.
# Enabled them as true. Suggested in Rubocop Autoconfig command.
Style/FrozenStringLiteralComment:
Enabled: false
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true