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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbd6ae46cb126fe3f3916ac816e95792d7bbd5f9ec51764d094eb1fff4b4a12f
4
- data.tar.gz: c79b0968e467e7dfb8e707f34655c66bad0e4e47db6fecec64ef71232cbdbb2d
3
+ metadata.gz: be2ed05b6f5147c865f3147b0e0a44e68a5779100957e90d0d49ee0ad9c048d0
4
+ data.tar.gz: f67179dc223331412190c56d07ecd182ed97c3d1a2dbf65cddcf4a7a4103c979
5
5
  SHA512:
6
- metadata.gz: dcfeccf1213b7acf3d5ca5ae4d2d2d497162bf84e7408eab37d18a5d46725a8f7d69e8c393ba57aed707b8b40cc9a0d23a6852c6a8b46dda8f1af190aa90691e
7
- data.tar.gz: b544b8f4e3c3593d32b5c6cd6d84e31e09a1643206f48a8acfb6e06ef7f92174ea2082e9a3024599a4d3cf96637ee8b27467ebb33189e4d8b7ff54d4613ee9e6
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
- Description: No justification to why this is better.
6
- Enabled: false
5
+ Enabled: false # Increase spec writing complexity
7
6
 
8
7
  RSpec/ExampleLength:
9
- Description: Exemple length is an unreliable metric.
10
- Enabled: false
8
+ Enabled: false # Exemple length is an unreliable metric.
11
9
 
12
10
  RSpec/MultipleExpectations:
13
- Description: Exemple count is an unreliable metric.
14
- Enabled: false
11
+ Enabled: false # Exemple count is an unreliable metric.
15
12
 
16
13
  RSpec/MessageSpies:
17
- Description: Induces unnecessary repetition in the expectation
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
- Description: Length is an unreliable metric.
9
- Enabled: false
5
+ Enabled: false # Length is an unreliable metric.
10
6
 
11
7
  Layout/SpaceInsideArrayLiteralBrackets:
12
- Description: Similar to prettier's config.
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
- Description: Useless indentation is useless.
21
- Enabled: false
11
+ EnforcedStyle: consistent # Consistent with Layout/FirstArgumentIndentation
22
12
 
23
13
  Layout/FirstHashElementIndentation:
24
- Description: Useless indentation is useless.
25
- Enabled: false
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
- Layout/FirstParameterIndentation:
28
- Description: Useless indentation is useless.
29
- Enabled: false
22
+ AllCops:
23
+ Exclude:
24
+ - vendor/**/* # Prevent validation of bundler gems
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
 
3
5
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- getaround-rubocop (0.1.4)
4
+ getaround-rubocop (0.1.5)
5
5
  relaxed-rubocop (= 2.5)
6
6
  rubocop (= 0.80.1)
7
7
 
@@ -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
@@ -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.4'
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
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: