rubocop-cask 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default.yml +4 -1
- data/lib/rubocop/cask/version.rb +1 -1
- data/lib/rubocop/cop/cask/stanza_grouping.rb +3 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 202a5e8f37ed13fd88e1b14e6dbe6aef8c64f8ef
|
4
|
+
data.tar.gz: e7b5fdf0a781ef8cc3b34e99e0ce593609276ff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14da2e18c17149cc2708749127790ba48f51a50a22ee6844c95ec37802b5e76acdc85b49d71069881ee32c8ae0b483e3eac4576a23edb3945248d440a1975ab8
|
7
|
+
data.tar.gz: 368f6fdcee5eadea1f5865ae1d9b8b8f07521716482badd052cb976036123c9b26dfc3d863c09d648ac2bbff073d3a5a14614fa23f53cd79aab086fb09c72522
|
data/config/default.yml
CHANGED
@@ -84,7 +84,10 @@ Style/RegexpLiteral:
|
|
84
84
|
Style/SymbolArray:
|
85
85
|
EnforcedStyle: brackets
|
86
86
|
|
87
|
-
Style/
|
87
|
+
Style/TrailingCommaInArrayLiteral:
|
88
|
+
EnforcedStyleForMultiline: comma
|
89
|
+
|
90
|
+
Style/TrailingCommaInHashLiteral:
|
88
91
|
EnforcedStyleForMultiline: comma
|
89
92
|
|
90
93
|
Style/WordArray:
|
data/lib/rubocop/cask/version.rb
CHANGED
@@ -9,6 +9,7 @@ module RuboCop
|
|
9
9
|
class StanzaGrouping < Cop
|
10
10
|
extend Forwardable
|
11
11
|
include CaskHelp
|
12
|
+
include RangeHelp
|
12
13
|
|
13
14
|
MISSING_LINE_MSG = 'stanza groups should be separated by a single ' \
|
14
15
|
'empty line'.freeze
|
@@ -84,6 +85,8 @@ module RuboCop
|
|
84
85
|
end
|
85
86
|
|
86
87
|
def add_offense(line_index, message:)
|
88
|
+
puts inspect
|
89
|
+
|
87
90
|
line_length = [processed_source[line_index].size, 1].max
|
88
91
|
range = source_range(processed_source.buffer, line_index + 1, 0,
|
89
92
|
line_length)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-cask
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Hagins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: public_suffix
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.53.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.53.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|