shop_storm_cops 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/shop_storm_cops/rubocop/shared_cops.yml +21 -22
- data/lib/shop_storm_cops/version.rb +1 -1
- data/shop_storm_cops.gemspec +3 -3
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97f47908decebef1dc56d36293a0d0aca539e648
|
4
|
+
data.tar.gz: 65ba06c3f64c394901f969eb4a82df904a14f61e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e32ca4ef11a417772636e4bdd956472db8fe8e88029a39adc1edda49ca823e571f2c7db1e40beb764ae45a242aec5063fd350443a8fad4549b403b7c3a8cedd
|
7
|
+
data.tar.gz: d8f429644fb878336d74a6913abf3d3c5516c1384209722464f5ca61f61de8930b1f1ace1a61e0d3e75376ed3ee8622fdcfcc59d6bc5c761613d3deae2fadc80
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 0.2.0
|
2
|
+
|
3
|
+
* Update the rubocop version to ~> 0.47.1
|
4
|
+
* Update max line length convention to 120 chars
|
5
|
+
* Exclude Metrics/BlockLength cop from test files
|
6
|
+
* Exclude Style/ClassAndModuleChildren cop from test files -- exclude inherance in RuboCop is fixed
|
7
|
+
in this version already.
|
8
|
+
|
1
9
|
## 0.1.2
|
2
10
|
|
3
11
|
* Freeze the rubocop version to ~> 0.35.1
|
@@ -1,12 +1,14 @@
|
|
1
|
-
# Rubocop config file with the fundamentals SkyVerge's coding conventions which
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Rubocop config file with the fundamentals SkyVerge's coding conventions which need to be
|
2
|
+
# overwriten from the standard Rubocop conventions. This config file is the one to inherit from on
|
3
|
+
# apps using this gem.
|
4
4
|
|
5
5
|
AllCops:
|
6
|
-
RunRailsCops: true
|
7
6
|
DisplayStyleGuide: true
|
8
7
|
DisplayCopNames: true
|
9
8
|
|
9
|
+
Rails:
|
10
|
+
Enabled: true
|
11
|
+
|
10
12
|
# Lint Cops
|
11
13
|
|
12
14
|
Lint/AmbiguousRegexpLiteral:
|
@@ -15,6 +17,15 @@ Lint/AmbiguousRegexpLiteral:
|
|
15
17
|
Lint/HandleExceptions:
|
16
18
|
Enabled: false
|
17
19
|
|
20
|
+
# Metric Cops
|
21
|
+
|
22
|
+
Metrics/BlockLength:
|
23
|
+
Exclude:
|
24
|
+
- 'test/**/*.rb'
|
25
|
+
|
26
|
+
Metrics/LineLength:
|
27
|
+
Max: 120
|
28
|
+
|
18
29
|
# Style Cops
|
19
30
|
|
20
31
|
Style/AccessModifierIndentation:
|
@@ -23,30 +34,18 @@ Style/AccessModifierIndentation:
|
|
23
34
|
Style/Documentation:
|
24
35
|
Enabled: false
|
25
36
|
|
26
|
-
# Allow compact `Module::Class`
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
# precedence way, so Cops configured into .rubocop_todo.yml should overwrite it.
|
31
|
-
# However that's not the real behaviour (bug), and it's specially problematic
|
32
|
-
# in this Cop, the only one setting an Exclude parameter in this file.
|
33
|
-
#
|
34
|
-
# Style/ClassAndModuleChildren:
|
35
|
-
# Exclude:
|
36
|
-
# - 'test/**/*'
|
37
|
+
# Allow compact `Module::Class` only inside tests.
|
38
|
+
Style/ClassAndModuleChildren:
|
39
|
+
Exclude:
|
40
|
+
- 'test/**/*'
|
37
41
|
|
38
42
|
Style/FormatString:
|
39
43
|
EnforcedStyle: sprintf
|
40
44
|
|
41
|
-
# Disabled regex literal style cop which seems to not work properly. Forcing
|
42
|
-
#
|
45
|
+
# Disabled regex literal style cop which seems to not work properly. Forcing EnforcedStyle: slashes
|
46
|
+
# keeps raising offeses advising the use of '%r'.
|
43
47
|
Style/RegexpLiteral:
|
44
48
|
Enabled: false
|
45
49
|
|
46
50
|
Style/SignalException:
|
47
51
|
EnforcedStyle: only_raise
|
48
|
-
|
49
|
-
# Sometimes we align first args when many related methods are called together
|
50
|
-
# like in /config/routes.rb
|
51
|
-
Style/SingleSpaceBeforeFirstArg:
|
52
|
-
Enabled: false
|
data/shop_storm_cops.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'shop_storm_cops/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'shop_storm_cops'
|
8
8
|
spec.version = ShopStormCops::VERSION
|
9
|
-
spec.authors = ['
|
10
|
-
'Justin Stern'
|
9
|
+
spec.authors = ['Hannes Benson', 'Jory Hatton', 'Lucas Lessa', 'Daniel Madrid', 'Max Rice',
|
10
|
+
'Justin Stern']
|
11
11
|
spec.email = ['help@shopstorm.com']
|
12
12
|
spec.summary = 'Ruby coding convention tools used in ShopStorm'
|
13
13
|
spec.homepage = 'https://github.com/skyverge/shopstorm-cops'
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.required_ruby_version = '>= 2.0.0'
|
22
22
|
|
23
|
-
spec.add_runtime_dependency 'rubocop', '~> 0.
|
23
|
+
spec.add_runtime_dependency 'rubocop', '~> 0.47.1'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
26
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shop_storm_cops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Daniel Madrid
|
8
7
|
- Hannes Benson
|
9
8
|
- Jory Hatton
|
10
|
-
-
|
9
|
+
- Lucas Lessa
|
10
|
+
- Daniel Madrid
|
11
11
|
- Max Rice
|
12
|
+
- Justin Stern
|
12
13
|
autorequire:
|
13
14
|
bindir: exe
|
14
15
|
cert_chain: []
|
15
|
-
date:
|
16
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
16
17
|
dependencies:
|
17
18
|
- !ruby/object:Gem::Dependency
|
18
19
|
name: rubocop
|
@@ -20,14 +21,14 @@ dependencies:
|
|
20
21
|
requirements:
|
21
22
|
- - "~>"
|
22
23
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.
|
24
|
+
version: 0.47.1
|
24
25
|
type: :runtime
|
25
26
|
prerelease: false
|
26
27
|
version_requirements: !ruby/object:Gem::Requirement
|
27
28
|
requirements:
|
28
29
|
- - "~>"
|
29
30
|
- !ruby/object:Gem::Version
|
30
|
-
version: 0.
|
31
|
+
version: 0.47.1
|
31
32
|
- !ruby/object:Gem::Dependency
|
32
33
|
name: bundler
|
33
34
|
requirement: !ruby/object:Gem::Requirement
|