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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a60c5758c72a10410c0dff3a05e84e7bf8d1b01f
4
- data.tar.gz: 7bd686aa967a7d9f3f429a419a6d90c9dd417462
3
+ metadata.gz: 97f47908decebef1dc56d36293a0d0aca539e648
4
+ data.tar.gz: 65ba06c3f64c394901f969eb4a82df904a14f61e
5
5
  SHA512:
6
- metadata.gz: b9663e4334011a5bf947dc1bcf38dae46cd9798ad453f686b3d10d3f3f605f39e48d3f23a2e66c8f8e80ac0e028a902a9ee6bbf297db0efa439ea2c45dcd054f
7
- data.tar.gz: 3f0abb4603a794ec7f989ad01f7fe478e72d4b5e303577fc3d217319507ec1bd505b7307d6bc195cabfc487a8ae1dfacebc25b76a133b05e305fc5f9f622ac1a
6
+ metadata.gz: 3e32ca4ef11a417772636e4bdd956472db8fe8e88029a39adc1edda49ca823e571f2c7db1e40beb764ae45a242aec5063fd350443a8fad4549b403b7c3a8cedd
7
+ data.tar.gz: d8f429644fb878336d74a6913abf3d3c5516c1384209722464f5ca61f61de8930b1f1ace1a61e0d3e75376ed3ee8622fdcfcc59d6bc5c761613d3deae2fadc80
@@ -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
- # need to be overwriten from the standard Rubocop conventions. This config file
3
- # is the one to inherit from on apps using this gem.
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` style inside tests.
27
- #
28
- # We comment this line since RuboCop seems to have a bug in the loading order
29
- # of the inherited config files. This file is supposed to be loaded in the less
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
- # 'EnforcedStyle: slashes' keeps raising offeses advising the use of '%r'.
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
@@ -1,3 +1,3 @@
1
1
  module ShopStormCops
2
- VERSION = '0.1.2'
2
+ VERSION = '0.2.0'.freeze
3
3
  end
@@ -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 = ['Daniel Madrid', 'Hannes Benson', 'Jory Hatton',
10
- 'Justin Stern', 'Max Rice']
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.35.1'
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.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Daniel Madrid
8
7
  - Hannes Benson
9
8
  - Jory Hatton
10
- - Justin Stern
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: 2016-03-14 00:00:00.000000000 Z
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.35.1
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.35.1
31
+ version: 0.47.1
31
32
  - !ruby/object:Gem::Dependency
32
33
  name: bundler
33
34
  requirement: !ruby/object:Gem::Requirement