getaround-rubocop 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop-rspec.yml +4 -8
- data/.rubocop.yml +13 -18
- data/Gemfile +2 -0
- data/Gemfile.lock +1 -1
- data/exemples/dummy_class.rb +26 -0
- data/getaround-rubocop.gemspec +3 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be2ed05b6f5147c865f3147b0e0a44e68a5779100957e90d0d49ee0ad9c048d0
|
4
|
+
data.tar.gz: f67179dc223331412190c56d07ecd182ed97c3d1a2dbf65cddcf4a7a4103c979
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c55b88bca9c89d9d3dbdaa0e551230ff5e781a94873bd9b3d90b77fb1bb28db3f322338685f434f0488eb96b41b95b92d35d37f4da9fa2ce0917dba63738761
|
7
|
+
data.tar.gz: b91b370afbaa7e4336d20522346bf0aa1b6af3983b84eaf9c2bf76eda34de6f68c531716440089dbb6e0f17888f874229b243d6bc459496296e08dc5342782ee
|
data/.rubocop-rspec.yml
CHANGED
@@ -2,17 +2,13 @@ require:
|
|
2
2
|
- rubocop-rspec
|
3
3
|
|
4
4
|
RSpec/NamedSubject:
|
5
|
-
|
6
|
-
Enabled: false
|
5
|
+
Enabled: false # Increase spec writing complexity
|
7
6
|
|
8
7
|
RSpec/ExampleLength:
|
9
|
-
|
10
|
-
Enabled: false
|
8
|
+
Enabled: false # Exemple length is an unreliable metric.
|
11
9
|
|
12
10
|
RSpec/MultipleExpectations:
|
13
|
-
|
14
|
-
Enabled: false
|
11
|
+
Enabled: false # Exemple count is an unreliable metric.
|
15
12
|
|
16
13
|
RSpec/MessageSpies:
|
17
|
-
|
18
|
-
Enabled: false
|
14
|
+
Enabled: false # Induces unnecessary repetition in the expectation
|
data/.rubocop.yml
CHANGED
@@ -1,29 +1,24 @@
|
|
1
1
|
inherit_gem:
|
2
2
|
relaxed-rubocop: .rubocop.yml
|
3
3
|
|
4
|
-
Style/ClassAndModuleChildren:
|
5
|
-
EnforcedStyle: compact
|
6
|
-
|
7
4
|
Metrics/BlockLength:
|
8
|
-
|
9
|
-
Enabled: false
|
5
|
+
Enabled: false # Length is an unreliable metric.
|
10
6
|
|
11
7
|
Layout/SpaceInsideArrayLiteralBrackets:
|
12
|
-
|
13
|
-
Enabled: false
|
14
|
-
|
15
|
-
Layout/FirstArgumentIndentation:
|
16
|
-
Description: Useless indentation is useless.
|
17
|
-
Enabled: false
|
8
|
+
EnforcedStyle: no_space # Similar to prettier's config.
|
18
9
|
|
19
10
|
Layout/FirstArrayElementIndentation:
|
20
|
-
|
21
|
-
Enabled: false
|
11
|
+
EnforcedStyle: consistent # Consistent with Layout/FirstArgumentIndentation
|
22
12
|
|
23
13
|
Layout/FirstHashElementIndentation:
|
24
|
-
|
25
|
-
|
14
|
+
EnforcedStyle: consistent # Consistent with Layout/FirstArgumentIndentation
|
15
|
+
|
16
|
+
Layout/MultilineMethodCallIndentation:
|
17
|
+
EnforcedStyle: indented # Consistent with Rails style
|
18
|
+
|
19
|
+
Layout/ArgumentAlignment:
|
20
|
+
EnforcedStyle: with_fixed_indentation # Consistent with Rails style
|
26
21
|
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
AllCops:
|
23
|
+
Exclude:
|
24
|
+
- vendor/**/* # Prevent validation of bundler gems
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -0,0 +1,26 @@
|
|
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
|
data/getaround-rubocop.gemspec
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Gem::Specification.new do |gem|
|
2
4
|
gem.name = "getaround-rubocop"
|
3
|
-
gem.version = '0.1.
|
5
|
+
gem.version = '0.1.5'
|
4
6
|
gem.summary = "Backend configuration files"
|
5
7
|
gem.description = "Shared base configuration for Getaround Backend Applications."
|
6
8
|
gem.authors = ["Drivy", "Laurent Humez"]
|
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.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Drivy
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- Gemfile
|
66
66
|
- Gemfile.lock
|
67
67
|
- README.md
|
68
|
+
- exemples/dummy_class.rb
|
68
69
|
- getaround-rubocop.gemspec
|
69
70
|
homepage: https://github.com/drivy
|
70
71
|
licenses:
|