1
- inherit_from : .rubocop_rspec_base.yml
2
-
3
- # Over time we'd like to get this down, but this is what we're at now.
4
- LineLength :
5
- Max : 186
6
-
7
- # Over time we'd like to get this down, but this is what we're at now.
8
- MethodLength :
9
- Max : 50
1
+ inherit_from :
2
+ - .rubocop_todo.yml
3
+ - .rubocop_rspec_base.yml
10
4
11
5
# We use spaces, so it's less of a change to stick with that.
12
- SpaceAroundEqualsInParameterDefault :
6
+ Layout/ SpaceAroundEqualsInParameterDefault :
13
7
EnforcedStyle : space
14
8
15
9
# ###############################################################################
@@ -21,24 +15,24 @@ AllCops:
21
15
# Templates are really ERB which Rubocop does not parse
22
16
- ' lib/generators/rspec/*/templates/**/*'
23
17
24
- FileName :
18
+ Naming/ FileName :
25
19
Exclude :
26
20
# We break convention here so that when bundler requires the gem, which
27
21
# uses the gem name, things work without user configuration.
28
22
- lib/rspec-rails.rb
29
23
30
- HandleExceptions :
24
+ Lint/SuppressedException :
31
25
Exclude :
32
26
# RSpec is tightly coupled to capybara right now, this should be
33
27
# re-evaluted in the future. For now we allow the empty rescue
34
28
- lib/rspec/rails/vendor/capybara.rb
35
29
36
- IfUnlessModifier :
30
+ Style/ IfUnlessModifier :
37
31
Exclude :
38
32
# Allow single line statement as the style matches the remainder of the file
39
33
- lib/rspec/rails/vendor/capybara.rb
40
34
41
- PerlBackrefs :
35
+ Style/ PerlBackrefs :
42
36
Exclude :
43
37
# We probably can refactor the backref out, but for now excluding it since
44
38
# we can't use named matches in 1.8.7
@@ -50,7 +44,7 @@ Style/AccessModifierDeclarations:
50
44
Naming/MemoizedInstanceVariableName :
51
45
Enabled : false
52
46
53
- Naming/UncommunicativeMethodParamName :
47
+ Naming/MethodParameterName :
54
48
Enabled : false
55
49
56
50
Metrics/PerceivedComplexity :
@@ -65,7 +59,7 @@ Lint/AssignmentInCondition:
65
59
Lint/EmptyExpression :
66
60
Enabled : false
67
61
68
- Layout/AlignHash :
62
+ Layout/HashAlignment :
69
63
Enabled : false
70
64
71
65
Naming/RescuedExceptionsVariableName :
0 commit comments