Skip to content

Commit ab3537a

Browse files
stoivokoic
authored andcommitted
Revert "Autocorrect violations of Layout/AlignHash Cop"
This reverts commit da8c541.
1 parent 5180fa2 commit ab3537a

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

.rubocop.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ Style/IpAddresses:
3232
Exclude:
3333
- spec/rubocop/cop/style/ip_addresses_spec.rb
3434

35+
Layout/AlignHash:
36+
EnforcedHashRocketStyle:
37+
- key
38+
- table
39+
EnforcedColonStyle:
40+
- key
41+
- table
42+
3543
Layout/EndOfLine:
3644
EnforcedStyle: lf
3745

lib/rubocop/cop/rails/refute_methods.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ class RefuteMethods < Cop
2121
MSG = 'Prefer `%<assert_method>s` over `%<refute_method>s`.'
2222

2323
CORRECTIONS = {
24-
refute: 'assert_not',
25-
refute_empty: 'assert_not_empty',
26-
refute_equal: 'assert_not_equal',
27-
refute_in_delta: 'assert_not_in_delta',
28-
refute_in_epsilon: 'assert_not_in_epsilon',
29-
refute_includes: 'assert_not_includes',
24+
refute: 'assert_not',
25+
refute_empty: 'assert_not_empty',
26+
refute_equal: 'assert_not_equal',
27+
refute_in_delta: 'assert_not_in_delta',
28+
refute_in_epsilon: 'assert_not_in_epsilon',
29+
refute_includes: 'assert_not_includes',
3030
refute_instance_of: 'assert_not_instance_of',
31-
refute_kind_of: 'assert_not_kind_of',
32-
refute_nil: 'assert_not_nil',
33-
refute_operator: 'assert_not_operator',
34-
refute_predicate: 'assert_not_predicate',
35-
refute_respond_to: 'assert_not_respond_to',
36-
refute_same: 'assert_not_same',
37-
refute_match: 'assert_no_match'
31+
refute_kind_of: 'assert_not_kind_of',
32+
refute_nil: 'assert_not_nil',
33+
refute_operator: 'assert_not_operator',
34+
refute_predicate: 'assert_not_predicate',
35+
refute_respond_to: 'assert_not_respond_to',
36+
refute_same: 'assert_not_same',
37+
refute_match: 'assert_no_match'
3838
}.freeze
3939

4040
OFFENSIVE_METHODS = CORRECTIONS.keys.freeze

0 commit comments

Comments
 (0)