getaround-rubocop 0.1.2 → 0.2.3
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/.rubocop-rspec.yml +6 -8
- data/.rubocop.yml +17 -18
- data/Gemfile +2 -0
- data/Gemfile.lock +24 -18
- data/exemples/dummy_class.rb +29 -0
- data/exemples/spec/dummy_class_spec.rb +7 -0
- data/getaround-rubocop.gemspec +15 -12
- metadata +13 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0691c5ec40e40de8fb28fb83e370ddd66c0a02a8900de91972e40049e26a4e92'
|
4
|
+
data.tar.gz: 1fe516b915edf9e6dd289aaeb81ad9d6aeacf76c27258c2601cdeab020075ac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a75f151e653e0b8d96678b9219e1b43c6bc6f3f4c5af1fb28f59a7a08cfa657028e1e1555d1bbe8b08e0c295d7f9d179fc81e059fe623c0ab7e71cb6a34a93f9
|
7
|
+
data.tar.gz: 774a32dc05f201de04d4d49aa120042de376d4849da4ab702e64e776c4a672cb4862bf5f6a2989c46bc42e66723a273aae7353911d2ea7c8be51efb36a1f4d05
|
data/.rubocop-rspec.yml
CHANGED
@@ -1,18 +1,16 @@
|
|
1
1
|
require:
|
2
2
|
- rubocop-rspec
|
3
3
|
|
4
|
+
inherit_from: .rubocop.yml
|
5
|
+
|
4
6
|
RSpec/NamedSubject:
|
5
|
-
|
6
|
-
Enabled: false
|
7
|
+
Enabled: false # Increase spec writing complexity
|
7
8
|
|
8
9
|
RSpec/ExampleLength:
|
9
|
-
|
10
|
-
Enabled: false
|
10
|
+
Enabled: false # Exemple length is an unreliable metric.
|
11
11
|
|
12
12
|
RSpec/MultipleExpectations:
|
13
|
-
|
14
|
-
Enabled: false
|
13
|
+
Enabled: false # Exemple count is an unreliable metric.
|
15
14
|
|
16
15
|
RSpec/MessageSpies:
|
17
|
-
|
18
|
-
Enabled: false
|
16
|
+
Enabled: false # Induces unnecessary repetition in the expectation
|
data/.rubocop.yml
CHANGED
@@ -1,29 +1,28 @@
|
|
1
1
|
inherit_gem:
|
2
2
|
relaxed-rubocop: .rubocop.yml
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
AllCops:
|
5
|
+
Exclude:
|
6
|
+
- vendor/**/* # Prevent validation of bundler gems
|
7
|
+
NewCops: disable # Ignore "pending" cops
|
6
8
|
|
7
9
|
Metrics/BlockLength:
|
8
|
-
|
9
|
-
|
10
|
+
Enabled: false # Length is an unreliable metric.
|
11
|
+
|
12
|
+
Style/ClassAndModuleChildren:
|
13
|
+
Enabled: false # Neither styles are satisfying in all cases
|
10
14
|
|
11
15
|
Layout/SpaceInsideArrayLiteralBrackets:
|
12
|
-
|
13
|
-
Enabled: false
|
16
|
+
EnforcedStyle: no_space # Similar to prettier's config.
|
14
17
|
|
15
|
-
Layout/
|
16
|
-
|
17
|
-
Enabled: false
|
18
|
+
Layout/FirstArrayElementIndentation:
|
19
|
+
EnforcedStyle: consistent # Consistent with Layout/FirstArgumentIndentation
|
18
20
|
|
19
|
-
Layout/
|
20
|
-
|
21
|
-
Enabled: false
|
21
|
+
Layout/FirstHashElementIndentation:
|
22
|
+
EnforcedStyle: consistent # Consistent with Layout/FirstArgumentIndentation
|
22
23
|
|
23
|
-
Layout/
|
24
|
-
|
25
|
-
Enabled: false
|
24
|
+
Layout/MultilineMethodCallIndentation:
|
25
|
+
EnforcedStyle: indented # Consistent with Rails style
|
26
26
|
|
27
|
-
Layout/
|
28
|
-
|
29
|
-
Enabled: false
|
27
|
+
Layout/ArgumentAlignment:
|
28
|
+
EnforcedStyle: with_fixed_indentation # Consistent with Rails style
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,38 +1,44 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
getaround-rubocop (0.
|
5
|
-
relaxed-rubocop (= 2.
|
6
|
-
rubocop (=
|
4
|
+
getaround-rubocop (0.2.3)
|
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.
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
18
|
-
rubocop (
|
19
|
-
|
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.
|
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, <
|
25
|
-
rubocop-
|
26
|
-
|
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.
|
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)
|
36
42
|
|
37
43
|
BUNDLED WITH
|
38
|
-
2.1.
|
44
|
+
2.1.4
|
@@ -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
|
data/getaround-rubocop.gemspec
CHANGED
@@ -1,18 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Gem::Specification.new do |gem|
|
2
|
-
gem.name
|
3
|
-
gem.version
|
4
|
-
gem.summary
|
5
|
-
gem.description
|
6
|
-
gem.authors
|
7
|
-
gem.email
|
8
|
-
gem.homepage
|
9
|
-
gem.license
|
4
|
+
gem.name = "getaround-rubocop"
|
5
|
+
gem.version = '0.2.3'
|
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
|
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
|
16
|
-
gem.add_runtime_dependency
|
17
|
-
gem.
|
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.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Drivy
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: relaxed-rubocop
|
@@ -17,42 +17,42 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '2.
|
20
|
+
version: '2.5'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '2.
|
27
|
+
version: '2.5'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rubocop
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - '='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 1.3.1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 1.3.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rubocop-rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
49
|
-
type: :
|
48
|
+
version: 2.0.0
|
49
|
+
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 2.0.0
|
56
56
|
description: Shared base configuration for Getaround Backend Applications.
|
57
57
|
email:
|
58
58
|
- oss@drivy.com
|
@@ -65,6 +65,8 @@ files:
|
|
65
65
|
- Gemfile
|
66
66
|
- Gemfile.lock
|
67
67
|
- README.md
|
68
|
+
- exemples/dummy_class.rb
|
69
|
+
- exemples/spec/dummy_class_spec.rb
|
68
70
|
- getaround-rubocop.gemspec
|
69
71
|
homepage: https://github.com/drivy
|
70
72
|
licenses:
|
@@ -76,9 +78,9 @@ require_paths:
|
|
76
78
|
- lib
|
77
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
80
|
requirements:
|
79
|
-
- - "
|
81
|
+
- - "~>"
|
80
82
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
83
|
+
version: '2.6'
|
82
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
85
|
requirements:
|
84
86
|
- - ">="
|