forked from sf-wdi-40/publify-debugging-lab
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.rubocop.yml
81 lines (62 loc) · 1.88 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
# Default style guide 'https://github.com/bbatsov/ruby-style-guide'.
AllCops:
Exclude:
- 'bin/**/*'
- 'config/**/*'
- 'db/**/*'
- 'tmp/**/*'
- 'publify_core/**/*'
- 'publify_amazon_sidebar/**/*'
- 'publify_textfilter_code/**/*'
Rails:
Enabled: 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
# This cop doesn't detect use of break yet
Style/EachWithObject:
Enabled: false
# Do not use unnecessary spacing.
Style/ExtraSpacing:
Enabled: true
# Allows format strings with: format, sprintf or percent.
Style/FormatString:
Enabled: false
# TODO: Re-enable and fix offenses
Style/GuardClause:
Enabled: false
# Multi-line operations should be simply indented. Aligning them makes it even
# harder to keep a sane line length.
Style/MultilineMethodCallIndentation:
EnforcedStyle: indented
# 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
# Allow meaningful names for single-line reduce etc.
Style/SingleLineBlockParams:
Enabled: false
inherit_from: .rubocop_todo.yml