-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
68 lines (67 loc) · 1.71 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
---
require:
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
Layout/AlignParameters:
# Customize to allow first parameter on same line
EnforcedStyle: with_fixed_indentation
Layout/MultilineMethodCallBraceLayout:
EnforcedStyle: new_line
Metrics/BlockLength:
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'
Metrics/LineLength:
Max: 100
Metrics/ModuleLength:
Exclude:
- 'spec/**/*.rb'
Metrics/LineLength:
Max: 100
Naming/MemoizedInstanceVariableName:
Severity: error
Naming/PredicateName:
# Method define macros for dynamically generated method.
MethodDefinitionMacros:
- define_method
- define_singleton_method
- field
RSpec/NestedGroups:
# Default of 3 is too hardcore, since there is user login, etc.)
Max: 5
RSpec/ExampleLength:
# Default of 5 is too hardcore)
Max: 20
RSpec/MultipleExpectations:
# We can use several expect not inside an aggregate failures to be used like rescue clause
# (eg intercept there is an included resource before mathcing the resource to a payload)
Max: 2
Style/AndOr:
# Whether `and` and `or` are banned only in conditionals (conditionals)
# or completely (always).
EnforcedStyle: conditionals
Style/CommentAnnotation:
Keywords:
- TODO
- TOTHINKABOUT
- TODO
- SECURITY
- FIXME
- OPTIMIZE
- HACK
- REVIEW
Style/Copyright:
Notice: '^Copyright (\(c\) )?2[0-9]{3} .+'
AutocorrectNotice: 'Copyright (c) 2017-2018 My Job Glasses'
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma