getaround-rubocop 0.1.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0aad9fcf00a7bb13e4e3bed710504d3c1b67c89b98f3158d1fe728345bcc56d2
4
- data.tar.gz: 23c14c99711b5ce8c5d09076f46f05b72afcf4cee7cb5a477afbac55352e31a7
3
+ metadata.gz: 874541b6ed5d1a488c7da55e1abd3bbce05e1183c6111d325e2a5a6c1996364c
4
+ data.tar.gz: b8205900d3926b7a13590b12e168db36f355fe18de1bb4779531bc9a1b88267c
5
5
  SHA512:
6
- metadata.gz: bcbdfd0734a5b12a034b8bbfefd93e526aa1dee28d6b5bb57069011a0fbb10261f56286389e154339dc961649b2334b8e5ad5910591e010916662b1e73f884df
7
- data.tar.gz: 375502a4474c478561afd2317f85bcc8272574de3eb051d4f5d4d775515a0741ed54476b71b57c5503cfb31b3effbaa0975f5685d97fc7c97b9c834a42c23dff
6
+ metadata.gz: 741af37575b58f75e673fa14f0cd9a474a09a138d680455e2c8c6dbf5ac77583887772ff546e10feddcc7192d419c2aca5b22111213c78fd1dd4f6a735f55dd4
7
+ data.tar.gz: baf105339de6957966a7150df1ea9a0ac24eab6f39fefaca3bc7b40195ab2ff78ca1c388508ef766121e5ea74b5a8875b1a7d00d0f90623fb090e6fcbce09be7
@@ -1,18 +1,16 @@
1
1
  require:
2
2
  - rubocop-rspec
3
3
 
4
+ inherit_from: .rubocop.yml
5
+
4
6
  RSpec/NamedSubject:
5
- Description: No justification to why this is better.
6
- Enabled: false
7
+ Enabled: false # Increase spec writing complexity
7
8
 
8
9
  RSpec/ExampleLength:
9
- Description: Exemple length is an unreliable metric.
10
- Enabled: false
10
+ Enabled: false # Exemple length is an unreliable metric.
11
11
 
12
12
  RSpec/MultipleExpectations:
13
- Description: Exemple count is an unreliable metric.
14
- Enabled: false
13
+ Enabled: false # Exemple count is an unreliable metric.
15
14
 
16
15
  RSpec/MessageSpies:
17
- Description: Induces unnecessary repetition in the expectation
18
- Enabled: false
16
+ Enabled: false # Induces unnecessary repetition in the expectation
@@ -1,33 +1,28 @@
1
1
  inherit_gem:
2
2
  relaxed-rubocop: .rubocop.yml
3
3
 
4
- Style/FrozenStringLiteralComment:
5
- Description: Useless in ruby > 2.3
6
- Enabled: false
7
-
8
- Style/ClassAndModuleChildren:
9
- EnforcedStyle: compact
4
+ AllCops:
5
+ Exclude:
6
+ - vendor/**/* # Prevent validation of bundler gems
7
+ NewCops: disable # Ignore "pending" cops
10
8
 
11
9
  Metrics/BlockLength:
12
- Description: Length is an unreliable metric.
13
- Enabled: false
10
+ Enabled: false # Length is an unreliable metric.
11
+
12
+ Style/ClassAndModuleChildren:
13
+ Enabled: false # Neither styles are satisfying in all cases
14
14
 
15
15
  Layout/SpaceInsideArrayLiteralBrackets:
16
- Description: Similar to prettier's config.
17
- Enabled: false
16
+ EnforcedStyle: no_space # Similar to prettier's config.
18
17
 
19
- Layout/IndentFirstArgument:
20
- Description: Useless indentation is useless.
21
- Enabled: false
18
+ Layout/FirstArrayElementIndentation:
19
+ EnforcedStyle: consistent # Consistent with Layout/FirstArgumentIndentation
22
20
 
23
- Layout/IndentFirstArrayElement:
24
- Description: Useless indentation is useless.
25
- Enabled: false
21
+ Layout/FirstHashElementIndentation:
22
+ EnforcedStyle: consistent # Consistent with Layout/FirstArgumentIndentation
26
23
 
27
- Layout/IndentFirstHashElement:
28
- Description: Useless indentation is useless.
29
- Enabled: false
24
+ Layout/MultilineMethodCallIndentation:
25
+ EnforcedStyle: indented # Consistent with Rails style
30
26
 
31
- Layout/IndentFirstParameter:
32
- Description: Useless indentation is useless.
33
- Enabled: false
27
+ Layout/ArgumentAlignment:
28
+ EnforcedStyle: with_fixed_indentation # Consistent with Rails style
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
 
3
5
  gemspec
@@ -1,38 +1,44 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- getaround-rubocop (0.1.0)
5
- relaxed-rubocop (~> 2.4, >= 2.4.0)
6
- rubocop (~> 0.75, >= 0.75.0)
4
+ getaround-rubocop (0.2.1)
5
+ relaxed-rubocop (= 2.5)
6
+ rubocop (= 1.3.1)
7
+ rubocop-rspec (= 2.0.0)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
- ast (2.4.0)
12
- jaro_winkler (1.5.4)
13
- parallel (1.18.0)
14
- parser (2.6.5.0)
15
- ast (~> 2.4.0)
12
+ ast (2.4.1)
13
+ parallel (1.20.0)
14
+ parser (2.7.2.0)
15
+ ast (~> 2.4.1)
16
16
  rainbow (3.0.0)
17
- relaxed-rubocop (2.4)
18
- rubocop (0.76.0)
19
- jaro_winkler (~> 1.5.1)
17
+ regexp_parser (1.8.2)
18
+ relaxed-rubocop (2.5)
19
+ rexml (3.2.4)
20
+ rubocop (1.3.1)
20
21
  parallel (~> 1.10)
21
- parser (>= 2.6)
22
+ parser (>= 2.7.1.5)
22
23
  rainbow (>= 2.2.2, < 4.0)
24
+ regexp_parser (>= 1.8)
25
+ rexml
26
+ rubocop-ast (>= 1.1.1)
23
27
  ruby-progressbar (~> 1.7)
24
- unicode-display_width (>= 1.4.0, < 1.7)
25
- rubocop-rspec (1.36.0)
26
- rubocop (>= 0.68.1)
28
+ unicode-display_width (>= 1.4.0, < 2.0)
29
+ rubocop-ast (1.1.1)
30
+ parser (>= 2.7.1.5)
31
+ rubocop-rspec (2.0.0)
32
+ rubocop (~> 1.0)
33
+ rubocop-ast (>= 1.1.0)
27
34
  ruby-progressbar (1.10.1)
28
- unicode-display_width (1.6.0)
35
+ unicode-display_width (1.7.0)
29
36
 
30
37
  PLATFORMS
31
38
  ruby
32
39
 
33
40
  DEPENDENCIES
34
41
  getaround-rubocop!
35
- rubocop-rspec (~> 1.36, >= 0.36.0)
36
42
 
37
43
  BUNDLED WITH
38
- 2.0.2
44
+ 2.1.4
data/README.md CHANGED
@@ -24,9 +24,6 @@ inherit_gem:
24
24
  In your `.rubocop.yml`:
25
25
 
26
26
  ```
27
- require:
28
- - rubocop-rspec
29
-
30
27
  inherit_gem:
31
28
  getaround-rubocop:
32
29
  - .rubocop.yml
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DummyModule
4
+ class DummyClass
5
+ def empty_method(*args); end
6
+
7
+ def dummy_caller_inline
8
+ empty_method({ key: value }, [nil, nil])
9
+ end
10
+
11
+ def dummy_caller_spread
12
+ empty_method({
13
+ key1: 'value1',
14
+ key2: 'value2',
15
+ }, [
16
+ nil,
17
+ nil,
18
+ ])
19
+ end
20
+
21
+ def dummy_caller_multiline
22
+ empty_method({ key1: 'value1', key2: 'value2' },
23
+ [nil, nil])
24
+ end
25
+ end
26
+ end
27
+
28
+ module DummyModule::InlineClass
29
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ describe DummyClass do
4
+ it 'does things' do
5
+ expect(1 + 1).to eq(2)
6
+ end
7
+ end
@@ -1,18 +1,21 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Gem::Specification.new do |gem|
2
- gem.name = "getaround-rubocop"
3
- gem.version = '0.1.1'
4
- gem.summary = "Backend configuration files"
5
- gem.description = "Shared base configuration for Getaround Backend Applications."
6
- gem.authors = ["Drivy", "Laurent Humez"]
7
- gem.email = ["oss@drivy.com"]
8
- gem.homepage = "https://github.com/drivy"
9
- gem.license = "MIT"
4
+ gem.name = "getaround-rubocop"
5
+ gem.version = '0.2.2'
6
+ gem.summary = "Backend configuration files"
7
+ gem.description = "Shared base configuration for Getaround Backend Applications."
8
+ gem.authors = ["Drivy", "Laurent Humez"]
9
+ gem.email = ["oss@drivy.com"]
10
+ gem.homepage = "https://github.com/drivy"
11
+ gem.license = "MIT"
12
+ gem.required_ruby_version = '~> 2.6'
10
13
 
11
- gem.files = Dir.chdir(File.expand_path(__dir__)) do
14
+ gem.files = Dir.chdir(File.expand_path(__dir__)) do
12
15
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
13
16
  end
14
17
 
15
- gem.add_runtime_dependency "relaxed-rubocop", '~> 2.4', '>= 2.4.0'
16
- gem.add_runtime_dependency "rubocop", '~> 0.75', '>= 0.75.0'
17
- gem.add_development_dependency 'rubocop-rspec', '~> 1.36', '>= 0.36.0'
18
+ gem.add_runtime_dependency 'relaxed-rubocop', '= 2.5'
19
+ gem.add_runtime_dependency 'rubocop', '= 1.3.1'
20
+ gem.add_runtime_dependency 'rubocop-rspec', '= 2.0.0'
18
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getaround-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drivy
@@ -9,68 +9,50 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-11-06 00:00:00.000000000 Z
12
+ date: 2020-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: relaxed-rubocop
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 2.4.0
21
- - - "~>"
22
- - !ruby/object:Gem::Version
23
- version: '2.4'
20
+ version: '2.5'
24
21
  type: :runtime
25
22
  prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
27
24
  requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- version: 2.4.0
31
- - - "~>"
25
+ - - '='
32
26
  - !ruby/object:Gem::Version
33
- version: '2.4'
27
+ version: '2.5'
34
28
  - !ruby/object:Gem::Dependency
35
29
  name: rubocop
36
30
  requirement: !ruby/object:Gem::Requirement
37
31
  requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 0.75.0
41
- - - "~>"
32
+ - - '='
42
33
  - !ruby/object:Gem::Version
43
- version: '0.75'
34
+ version: 1.3.1
44
35
  type: :runtime
45
36
  prerelease: false
46
37
  version_requirements: !ruby/object:Gem::Requirement
47
38
  requirements:
48
- - - ">="
39
+ - - '='
49
40
  - !ruby/object:Gem::Version
50
- version: 0.75.0
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '0.75'
41
+ version: 1.3.1
54
42
  - !ruby/object:Gem::Dependency
55
43
  name: rubocop-rspec
56
44
  requirement: !ruby/object:Gem::Requirement
57
45
  requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: 0.36.0
61
- - - "~>"
46
+ - - '='
62
47
  - !ruby/object:Gem::Version
63
- version: '1.36'
64
- type: :development
48
+ version: 2.0.0
49
+ type: :runtime
65
50
  prerelease: false
66
51
  version_requirements: !ruby/object:Gem::Requirement
67
52
  requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- version: 0.36.0
71
- - - "~>"
53
+ - - '='
72
54
  - !ruby/object:Gem::Version
73
- version: '1.36'
55
+ version: 2.0.0
74
56
  description: Shared base configuration for Getaround Backend Applications.
75
57
  email:
76
58
  - oss@drivy.com
@@ -83,6 +65,8 @@ files:
83
65
  - Gemfile
84
66
  - Gemfile.lock
85
67
  - README.md
68
+ - exemples/dummy_class.rb
69
+ - exemples/spec/dummy_class_spec.rb
86
70
  - getaround-rubocop.gemspec
87
71
  homepage: https://github.com/drivy
88
72
  licenses:
@@ -94,9 +78,9 @@ require_paths:
94
78
  - lib
95
79
  required_ruby_version: !ruby/object:Gem::Requirement
96
80
  requirements:
97
- - - ">="
81
+ - - "~>"
98
82
  - !ruby/object:Gem::Version
99
- version: '0'
83
+ version: '2.6'
100
84
  required_rubygems_version: !ruby/object:Gem::Requirement
101
85
  requirements:
102
86
  - - ">="