rubocop-cask 0.6.1 → 0.7.0
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/config/default.yml +57 -0
- data/lib/rubocop/cask/version.rb +1 -1
- data/spec/project_spec.rb +5 -1
- data/spec/spec_helper.rb +1 -2
- 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: dbc20c10c904e85b5435cb66eb293b5755f99a3f
|
4
|
+
data.tar.gz: 18e221eef63f6bcf2aa5f528da5a737f94bfb80c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c523902a6c35dc1c39ac5255922a02bab5b7a2977f1c976797abde9a2129e431421cec877f4358caea60a9000af2d77a72ca376f5a029058507fc52bbbcc1136
|
7
|
+
data.tar.gz: 9e10a050c4c8ed8967d131d62e78925bd24e3ea0f7cfd0f72d00bceac32f4aab910a61cb04eecb42125a797bd709ca0f3edcffb24d4edf8ea43dd3fed61c2456
|
data/config/default.yml
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
###
|
2
|
+
### RuboCop Cask cops
|
3
|
+
###
|
4
|
+
|
1
5
|
Cask/NoDslVersion:
|
2
6
|
Description: 'Do not use the deprecated DSL version syntax in your cask header.'
|
3
7
|
Enabled: true
|
@@ -9,3 +13,56 @@ Cask/StanzaGrouping:
|
|
9
13
|
Cask/StanzaOrder:
|
10
14
|
Description: 'Ensure that cask stanzas are sorted correctly. More info at https://github.com/caskroom/homebrew-cask/blob/master/CONTRIBUTING.md#stanza-order'
|
11
15
|
Enabled: true
|
16
|
+
|
17
|
+
###
|
18
|
+
### RuboCop cops
|
19
|
+
###
|
20
|
+
|
21
|
+
Metrics/LineLength:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
Performance/StringReplacement:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Style/AlignHash:
|
28
|
+
EnforcedHashRocketStyle: table
|
29
|
+
EnforcedColonStyle: table
|
30
|
+
|
31
|
+
Style/BarePercentLiterals:
|
32
|
+
EnforcedStyle: percent_q
|
33
|
+
|
34
|
+
Style/Documentation:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Style/EmptyElse:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Style/FileName:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Style/HashSyntax:
|
44
|
+
EnforcedStyle: ruby19_no_mixed_keys
|
45
|
+
|
46
|
+
Style/IndentArray:
|
47
|
+
EnforcedStyle: align_brackets
|
48
|
+
|
49
|
+
Style/IndentHash:
|
50
|
+
EnforcedStyle: align_braces
|
51
|
+
|
52
|
+
Style/PercentLiteralDelimiters:
|
53
|
+
PreferredDelimiters:
|
54
|
+
'%': '{}'
|
55
|
+
'%i': '{}'
|
56
|
+
'%q': '{}'
|
57
|
+
'%Q': '{}'
|
58
|
+
'%r': '{}'
|
59
|
+
'%s': '()'
|
60
|
+
'%w': '[]'
|
61
|
+
'%W': '[]'
|
62
|
+
'%x': '()'
|
63
|
+
|
64
|
+
Style/RegexpLiteral:
|
65
|
+
EnforcedStyle: percent_r
|
66
|
+
|
67
|
+
Style/TrailingCommaInLiteral:
|
68
|
+
EnforcedStyleForMultiline: comma
|
data/lib/rubocop/cask/version.rb
CHANGED
data/spec/project_spec.rb
CHANGED
@@ -15,8 +15,12 @@ describe 'RuboCop Project' do
|
|
15
15
|
RuboCop::ConfigLoader.load_file('config/default.yml')
|
16
16
|
end
|
17
17
|
|
18
|
+
let(:cask_config_keys) do
|
19
|
+
default_config.keys.select { |k| k.start_with?('Cask/') }
|
20
|
+
end
|
21
|
+
|
18
22
|
it 'has configuration for all cops' do
|
19
|
-
expect(
|
23
|
+
expect(cask_config_keys.sort).to eq(cop_names.sort)
|
20
24
|
end
|
21
25
|
|
22
26
|
it 'has a nicely formatted description for all cops' do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
require 'rubocop'
|
2
|
+
require 'rubocop/rspec/support'
|
2
3
|
|
3
4
|
project_path = File.join(File.dirname(__FILE__), '..')
|
4
|
-
rubocop_path = File.dirname(File.dirname(Gem.find_files('rubocop.rb').first))
|
5
|
-
Dir["#{rubocop_path}/spec/support/**/*.rb"].each { |f| require f }
|
6
5
|
Dir["#{project_path}/spec/support/**/*.rb"].each { |f| require f }
|
7
6
|
|
8
7
|
RSpec.configure do |config|
|
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.7.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: 2016-
|
11
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.41.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.41.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|