ezcater_rubocop 0.51.0 → 0.51.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a285171c253846a38099f17482b40e814d1983cf
4
- data.tar.gz: 90148c7b0d9efaf68581816cceb154d6f244b8d8
3
+ metadata.gz: 4923badc9279fd54265856fe020fd47617dab709
4
+ data.tar.gz: 52bc1b1b9575ad6fd321cd44a22cc87bd688287c
5
5
  SHA512:
6
- metadata.gz: 65371b15a1f1bc1f706bb446a28929a45c636cb314184a4da0b428bda13f3931299091b11473d3f93ac197aab8368e09f10fe4693f59b25bed131143621a99da
7
- data.tar.gz: 43dc0d4712e4349bd2c378e77d2ffc7ed40fc22bf7b8c47f1716e05a583495f02e71d2d8fa12863d15f4de8d690839a56bad8a13099569350933f611919c44ab
6
+ metadata.gz: 6393da61576ed6db89ce11b96aabca2ece0a4a0090969d9b7edde46684a441bd9136f48fcb1e6dd27720fe852c1030aa6c6ed6694e79f963dd1dc6d51a1e7088
7
+ data.tar.gz: 601e2839e572b4b1768a62d964dc1996e1eaa9555865bed9ba5921c94e5ebb1cf1241ad7cb7a751488dddd83e827828d39f7be86cac594f78dde8d6641595b26
@@ -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
 
@@ -43,6 +43,9 @@ RSpec/MultipleExpectations:
43
43
  RSpec/NestedGroups:
44
44
  Max: 5
45
45
 
46
+ Style/EmptyLiteral:
47
+ Enabled: false
48
+
46
49
  Style/FrozenStringLiteralComment:
47
50
  Enabled: false
48
51
 
@@ -7,6 +7,9 @@ AllCops:
7
7
  Rails:
8
8
  Enabled: true
9
9
 
10
+ Rails/FilePath:
11
+ Enabled: false
12
+
10
13
  Rails/RelativeDateConstant:
11
14
  # Auto-correct is broken for this cops in some cases. It replaces the
12
15
  # constant but does not update references to it.
@@ -1,3 +1,3 @@
1
1
  module EzcaterRubocop
2
- VERSION = "0.51.0".freeze
2
+ VERSION = "0.51.1".freeze
3
3
  end
@@ -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
@@ -33,7 +33,7 @@ module RuboCop
33
33
 
34
34
  # Finish tree navigation to full line for highlighting
35
35
  match_node = match_node.parent while match_node.parent
36
- add_offense(match_node, :expression)
36
+ add_offense(match_node, location: :expression)
37
37
  end
38
38
 
39
39
  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.0
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-13 00:00:00.000000000 Z
11
+ date: 2017-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler