rubocop-config-oharagroup 2.1.0 → 2.2.0

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/default.yml +4 -0
  3. data/rake.yml +5 -0
  4. data/rspec.yml +12 -4
  5. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53cf720e797e715a0c08e3a77f8633ae721090a29f75d1f44ed5cdecf49b658c
4
- data.tar.gz: 35365bef8ef355e06aa071307309096c2d293a47acec0f1af26f6aedaff895c5
3
+ metadata.gz: 17f0f57c5487c335b44d6cef84250c438371383e43857a8e37183151e2bffb57
4
+ data.tar.gz: d2d74f4caf6e7a9030781ea020526a32da485adef03587578cf2ff6a5135fde3
5
5
  SHA512:
6
- metadata.gz: 7a0df05c7d866984ceb1fa21ce5ad350daa9c06406d0bb161bb2157c8154c2653d510650712af5282dbba33748750107dc73d36c3045d485ca3ee36923e01043
7
- data.tar.gz: 95d39a30f675793926f70b8446648c6e16b33a14238e63c8d300f9371a3683c52dc292c40c049326cb4c919427c06f4408c6467f23d5d11f75a9488601f2c7ec
6
+ metadata.gz: b7d620313fcf685a3b1b9894c6ded86c61e4277a1a8ffd7e783715dba4d2a5a16636d9c33c98d572cc3c593e52db1aa0dd024001ee1dbd9810125adb2afedc69
7
+ data.tar.gz: 322c9935d6342cdeb8b74d561b4cbd6a207e190af6d1e25014828e4c5139805a2edc2d96d09b218ea52b6487e3e2bd709fa6c4446a350902b0ea3136d4ebc875
@@ -40,6 +40,10 @@ Metrics:
40
40
  Style/BlockComments:
41
41
  Enabled: false
42
42
 
43
+ # Prefer `class << self` to `self.method_name`
44
+ Style/ClassMethodsDefinitions:
45
+ EnforcedStyle: self_class
46
+
43
47
  Style/Copyright:
44
48
  Notice: 'Copyright \(c\) 2016 Scott O.Hara, oharagroup.net'
45
49
 
@@ -0,0 +1,5 @@
1
+ AllCops:
2
+ DisplayStyleGuide: true
3
+ ExtraDetails: true
4
+ EnabledByDefault: true
5
+ NewCops: enable
data/rspec.yml CHANGED
@@ -34,14 +34,14 @@ RSpec/ExampleWording:
34
34
  RSpec/ExpectInHook:
35
35
  Enabled: false
36
36
 
37
- # Enable use of both `allow` and 'expect' for message expectations
38
- RSpec/MessageExpectation:
39
- Enabled: false
40
-
41
37
  # Allow stubbing message chains
42
38
  RSpec/MessageChain:
43
39
  Enabled: false
44
40
 
41
+ # Enable use of both `allow` and 'expect' for message expectations
42
+ RSpec/MessageExpectation:
43
+ Enabled: false
44
+
45
45
  # Prefer `expect().to receive ...` over `allow().to receive ...` + `expect().to have_received ...`
46
46
  RSpec/MessageSpies:
47
47
  Enabled: false
@@ -50,10 +50,18 @@ RSpec/MessageSpies:
50
50
  RSpec/MultipleExpectations:
51
51
  Enabled: false
52
52
 
53
+ # Allow any number of let/subject calls
54
+ RSpec/MultipleMemoizedHelpers:
55
+ Enabled: false
56
+
53
57
  # Allow any number of nested groups
54
58
  RSpec/NestedGroups:
55
59
  Enabled: false
56
60
 
61
+ # Allow `expect().to receive().with().and_return ...`
62
+ RSpec/StubbedMock:
63
+ Enabled: false
64
+
57
65
  # Allow concerns to stub subject
58
66
  RSpec/SubjectStub:
59
67
  Enabled: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-config-oharagroup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott O'Hara
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2020-12-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rubocop shared configuration for all O'Hara Group ruby projects
14
14
  email: scott@oharagroup.net
@@ -21,12 +21,13 @@ files:
21
21
  - lib/rubocop-config-oharagroup.rb
22
22
  - performance.yml
23
23
  - rails.yml
24
+ - rake.yml
24
25
  - rspec.yml
25
26
  homepage: https://github.com/scottohara/rubocop-config-oharagroup
26
27
  licenses:
27
28
  - MIT
28
29
  metadata: {}
29
- post_install_message:
30
+ post_install_message:
30
31
  rdoc_options: []
31
32
  require_paths:
32
33
  - lib
@@ -41,8 +42,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
42
  - !ruby/object:Gem::Version
42
43
  version: '0'
43
44
  requirements: []
44
- rubygems_version: 3.1.3
45
- signing_key:
45
+ rubygems_version: 3.2.1
46
+ signing_key:
46
47
  specification_version: 4
47
48
  summary: O'Hara Group Ruby style guide
48
49
  test_files: []