sevencop 0.40.0 → 0.40.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/config/default.yml +1 -1
- data/lib/rubocop/cop/sevencop/rspec_matcher_consistent_parentheses.rb +3 -3
- data/lib/sevencop/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9d291c9bf0ec6bb349a6f7a70ebca387c933ddb9ca4a84bfa34f8906b044d68
|
4
|
+
data.tar.gz: 3d005e1c0636815cf76667e80866a48f6279bfbbbe251f58920f356728ad96ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be809d23bb893cbbff03f3bdd6a95f79db7aac41f3920defba5f55393b71f24b44cb0fd178f4e2920e00e94fbc9f724b73d7ee4d76c53bbca43a266cb053e1ca
|
7
|
+
data.tar.gz: 66342ee1af89275c848a4c8c11ff06337fbfefb53a659c350621cdc5b0bc7fb784a1ee58cf77fcf1556bb2e1b8ca8e7ac896c10a02eee67ab6d3716850004a66
|
data/Gemfile.lock
CHANGED
data/config/default.yml
CHANGED
@@ -139,7 +139,7 @@ Sevencop/RSpecExamplesInSameGroup:
|
|
139
139
|
|
140
140
|
Sevencop/RSpecMatcherConsistentParentheses:
|
141
141
|
Description: |
|
142
|
-
Keep
|
142
|
+
Keep consistent parentheses style in RSpec matchers.
|
143
143
|
Enabled: false
|
144
144
|
Include:
|
145
145
|
- "**/spec/**/*.rb"
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module RuboCop
|
4
4
|
module Cop
|
5
5
|
module Sevencop
|
6
|
-
# Keep
|
6
|
+
# Keep consistent parentheses style in RSpec matchers.
|
7
7
|
#
|
8
8
|
# @example
|
9
9
|
# # bad
|
@@ -14,7 +14,7 @@ module RuboCop
|
|
14
14
|
class RSpecMatcherConsistentParentheses < Base
|
15
15
|
extend AutoCorrector
|
16
16
|
|
17
|
-
MSG = 'Keep
|
17
|
+
MSG = 'Keep consistent parentheses style in RSpec matchers.'
|
18
18
|
|
19
19
|
RESTRICT_ON_SEND = %i[to].freeze
|
20
20
|
|
@@ -43,7 +43,7 @@ module RuboCop
|
|
43
43
|
# @param [RuboCop::AST::Node, nil] node
|
44
44
|
# @return [Boolean]
|
45
45
|
def inconsistent?(node)
|
46
|
-
node
|
46
|
+
node&.send_type? && missing_parentheses?(node)
|
47
47
|
end
|
48
48
|
|
49
49
|
# @param [RuboCop::AST::SendNode] node
|
data/lib/sevencop/version.rb
CHANGED