forked from SF-WDI-LABS/publify-debugging-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
62 lines (47 loc) · 1.4 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
# Default style guide 'https://github.com/bbatsov/ruby-style-guide'.
AllCops:
Exclude:
- 'bin/**/*'
- 'config/**/*'
- 'db/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
# Include Rails cops
RunRailsCops: true
# Allow if (foo = get_foo) style
Lint/AssignmentInCondition:
AllowSafeAssignment: true
# Documenting all classes is not common in Rails projects.
Style/Documentation:
Enabled: false
# Provides more information, while still being displayable in modern wide-screen.
# TODO: Re-enable once linelength has been fixed everywhere.
# Metrics/LineLength:
# Max: 120
# Allow the use of 'and' 'or' in control structures.
Style/AndOr:
EnforcedStyle: conditionals
# Allow multiple Hash parameters to look similar
Style/BracesAroundHashParameters:
EnforcedStyle: context_dependent
Style/ClassAndModuleChildren:
Enabled: false
Style/CollectionMethods:
Enabled: true
# Place . on the previous line
Style/DotPosition:
EnforcedStyle: trailing
# Do not use unnecessary spacing.
Style/ExtraSpacing:
Enabled: true
# Allows format strings with: format, sprintf or percent.
Style/FormatString:
Enabled: false
# Multi-line operations should be simply indented. Aligning them makes it even
# harder to keep a sane line length.
Style/MultilineOperationIndentation:
EnforcedStyle: indented
# Always use raise to raise exceptions
Style/SignalException:
EnforcedStyle: only_raise
inherit_from: .rubocop_todo.yml