ezcater_rubocop 0.51.0 → 0.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/conf/rubocop.yml +3 -0
- data/conf/rubocop_rails.yml +3 -0
- data/lib/ezcater_rubocop/version.rb +1 -1
- data/lib/rubocop/cop/ezcater/private_attr.rb +2 -2
- data/lib/rubocop/cop/ezcater/rspec_dot_not_self_dot.rb +1 -1
- data/lib/rubocop/cop/ezcater/rspec_require_browser_mock.rb +1 -1
- data/lib/rubocop/cop/ezcater/rspec_require_feature_flag_mock.rb +1 -1
- data/lib/rubocop/cop/ezcater/style_dig.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4923badc9279fd54265856fe020fd47617dab709
|
4
|
+
data.tar.gz: 52bc1b1b9575ad6fd321cd44a22cc87bd688287c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6393da61576ed6db89ce11b96aabca2ece0a4a0090969d9b7edde46684a441bd9136f48fcb1e6dd27720fe852c1030aa6c6ed6694e79f963dd1dc6d51a1e7088
|
7
|
+
data.tar.gz: 601e2839e572b4b1768a62d964dc1996e1eaa9555865bed9ba5921c94e5ebb1cf1241ad7cb7a751488dddd83e827828d39f7be86cac594f78dde8d6641595b26
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# ezcater_rubocop
|
2
2
|
|
3
|
+
## v0.51.1
|
4
|
+
- Disable `Rails/FilePath` cop.
|
5
|
+
- Disable `Style/EmptyLiteral` cop.
|
6
|
+
|
7
|
+
## v0.51.0
|
8
|
+
- Update to rubocop v0.51.0 and rubocop-rspec v1.20.0.
|
9
|
+
- Disable new cop `RSpec/ContextWording`.
|
10
|
+
- Disable `Style/StderrPuts` for `bin/yarn`.
|
11
|
+
|
3
12
|
## v0.50.5
|
4
13
|
- Configure `RSpec/NestedGroups` with a `Max` value of 5.
|
5
14
|
|
data/conf/rubocop.yml
CHANGED
data/conf/rubocop_rails.yml
CHANGED
@@ -76,8 +76,8 @@ module RuboCop
|
|
76
76
|
current_visibility = node.method_name
|
77
77
|
elsif ACCESS_AFFECTED_METHODS.include?(node.method_name) && current_visibility != :public
|
78
78
|
add_offense(node,
|
79
|
-
:expression,
|
80
|
-
format_message(current_visibility, node.method_name))
|
79
|
+
location: :expression,
|
80
|
+
message: format_message(current_visibility, node.method_name))
|
81
81
|
end
|
82
82
|
elsif node.kwbegin_type?
|
83
83
|
check_scope(node, current_visibility)
|
@@ -25,7 +25,7 @@ module RuboCop
|
|
25
25
|
|
26
26
|
def on_send(node)
|
27
27
|
example_group_match(node) do |doc|
|
28
|
-
add_offense(doc, :expression, MSG) if doc.source.match?(SELF_DOT_REGEXP)
|
28
|
+
add_offense(doc, location: :expression, message: MSG) if doc.source.match?(SELF_DOT_REGEXP)
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
@@ -37,7 +37,7 @@ module RuboCop
|
|
37
37
|
|
38
38
|
# Finish tree navigation to full line for highlighting
|
39
39
|
match_node = match_node.parent while match_node.parent
|
40
|
-
add_offense(match_node, :expression, MSG % node.source)
|
40
|
+
add_offense(match_node, location: :expression, message: MSG % node.source)
|
41
41
|
end
|
42
42
|
|
43
43
|
private
|
@@ -30,7 +30,7 @@ module RuboCop
|
|
30
30
|
match_node = node
|
31
31
|
# walk to outermost access node
|
32
32
|
match_node = match_node.parent while access_node?(match_node.parent)
|
33
|
-
add_offense(match_node, :expression, MSG)
|
33
|
+
add_offense(match_node, location: :expression, message: MSG)
|
34
34
|
end
|
35
35
|
|
36
36
|
def autocorrect(node)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezcater_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.51.
|
4
|
+
version: 0.51.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ezCater, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|