forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
76 lines (58 loc) · 1.46 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
AllCops:
Exclude:
- 'bin/**/*'
- 'config/environments/*'
- 'config/routes.rb'
- 'db/**/*'
- 'Vagrantfile'
# Multi-line method chaining should be done with leading dots.
Layout/DotPosition:
EnforcedStyle: leading
# Prefer single-quoted strings when you don't need string interpolation or
# special symbols.
Style/StringLiterals:
EnforcedStyle: single_quotes
# Prefer specific method aliases over others
Style/CollectionMethods:
# Mapping from undesired method to desired_method
# e.g. to use `detect` over `find`:
#
# CollectionMethods:
# PreferredMethods:
# find: detect
PreferredMethods:
find:
detect: 'find'
# Disable to allow method chaining aligned at the '.'
Layout/MultilineOperationIndentation:
Enabled: false
Lint/UnusedMethodArgument:
AllowUnusedKeywordArguments: true
# Disable ABC code complexity metric
Metrics/AbcSize:
Enabled: false
# Disable max block length for rspec blocks
Metrics/BlockLength:
ExcludedMethods: ['describe', 'context', 'shared_examples', 'shared_context']
Layout/LineLength:
Max: 120
Metrics/MethodLength:
Max: 50
Style/FrozenStringLiteralComment:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/Next:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/RedundantSelf:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/ParallelAssignment:
Enabled: false
Style/AsciiComments:
Enabled: false