rubocop-cask 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/cask/version.rb +1 -1
- data/lib/rubocop/cop/cask/license_unknown_comment.rb +2 -4
- data/lib/rubocop/cop/cask/official_download_host_comment.rb +0 -0
- data/lib/rubocop/cop/cask/stanza_grouping.rb +0 -1
- data/spec/rubocop/cop/cask/license_unknown_comment_spec.rb +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93ee69cb3bda02db58d3d0a80d05777c8fbba9b2
|
4
|
+
data.tar.gz: 629c266189384ea91ee6c0b49c4d2ae8ddfd5234
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf0e65bf5b65523765923c60eac2f66eb4941f6d9e24a57d7221a7f034b82f1b178d09330d57afc0d1ceb5a40d98c838ec3c44c6982ee7538899e23d1881912e
|
7
|
+
data.tar.gz: c673de132548bac8f80f9e39925cd1b408124a8838fe2b8e642a9a52a21d05199d0898d309cedde5a1b40126b3d149b6c1f591f74b91792f1f9ab98efb4df9fe
|
data/lib/rubocop/cask/version.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'pry'
|
2
|
-
|
3
1
|
module RuboCop
|
4
2
|
module Cop
|
5
3
|
module Cask
|
@@ -10,8 +8,8 @@ module RuboCop
|
|
10
8
|
|
11
9
|
COMMENT_TEXT = '# TODO: change license and remove this comment; ' \
|
12
10
|
"':unknown' is a machine-generated placeholder"
|
13
|
-
MISSING_MSG = "Missing required comment: `#{COMMENT_TEXT}
|
14
|
-
INLINE_MSG =
|
11
|
+
MISSING_MSG = "Missing required comment: `#{COMMENT_TEXT}`"
|
12
|
+
INLINE_MSG = 'Comment belongs on the same line as `license :unknown`'
|
15
13
|
|
16
14
|
def on_cask(cask_block)
|
17
15
|
license_stanza = cask_block.stanzas.find(&:license?)
|
File without changes
|
@@ -48,7 +48,7 @@ describe RuboCop::Cop::Cask::LicenseUnknownComment do
|
|
48
48
|
end
|
49
49
|
let(:expected_offenses) do
|
50
50
|
[{
|
51
|
-
message:
|
51
|
+
message: 'Comment belongs on the same line as `license :unknown`',
|
52
52
|
severity: :convention,
|
53
53
|
line: 2,
|
54
54
|
column: 2,
|
@@ -71,7 +71,7 @@ describe RuboCop::Cop::Cask::LicenseUnknownComment do
|
|
71
71
|
end
|
72
72
|
let(:expected_offenses) do
|
73
73
|
[{
|
74
|
-
message: "Missing required comment: `#{license_unknown_comment}
|
74
|
+
message: "Missing required comment: `#{license_unknown_comment}`",
|
75
75
|
severity: :convention,
|
76
76
|
line: 2,
|
77
77
|
column: 2,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-cask
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Hagins
|
@@ -50,6 +50,7 @@ files:
|
|
50
50
|
- lib/rubocop/cop/cask/license_unknown_comment.rb
|
51
51
|
- lib/rubocop/cop/cask/mixin/cask_help.rb
|
52
52
|
- lib/rubocop/cop/cask/no_dsl_version.rb
|
53
|
+
- lib/rubocop/cop/cask/official_download_host_comment.rb
|
53
54
|
- lib/rubocop/cop/cask/stanza_grouping.rb
|
54
55
|
- lib/rubocop/cop/cask/stanza_order.rb
|
55
56
|
- spec/project_spec.rb
|