rubocop-config-oharagroup 1.6.0 → 2.0.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 +3 -0
  3. data/performance.yml +28 -0
  4. data/rspec.yml +74 -0
  5. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e60e44f2925f7166a59819257415195435aed5914baec77ce363cc1d0d4b8328
4
- data.tar.gz: 8099e4604f5878599efd485f3e1b7a874963ffddd70c8db4e9b0a56973ba7d7e
3
+ metadata.gz: f8aa261ea09ac0a498483ca1f0046e7117dd0a4742454a3df3ce57d5082afed8
4
+ data.tar.gz: c632d3c780ec4362f91a8ad2971d75856ab8a4a7956dfa308309f9263e2a9cd8
5
5
  SHA512:
6
- metadata.gz: a812417c86302ff0ee55a4ad92091c778956a73753aaae4b95b4d3b326086d84e3299c71fe256d8dde399635eb7ce591a6a0b2aece0cbf62c5536e37e455a360
7
- data.tar.gz: 8342acb9ffcb9f9762d44cb6db97c7d24e8bb43903319ce93f5e1724222982abb607fc160f8f9a45119bb1b5369805c0ec2ba7fcdd8bebd054f938d9b22a5c25
6
+ metadata.gz: e560c9ff7e6dc7edced49e535c86014f5db3506c9a340b1576f1a642fbb6ec33ee088d1544e2fbb4a24759a37f929cd5c5148e0b481a2ed8c4799171a084ee56
7
+ data.tar.gz: 43486ae1f61fddb387ccb2cef2ac41915777394568740b163b82516ac2773d8f66983f90d197b15a6300133933793ae38809e9bf96fd63373c855457c0f927b8
data/default.yml CHANGED
@@ -40,6 +40,9 @@ Lint/HeredocMethodCallPosition:
40
40
 
41
41
  # Lint/NumberConversion (prefer cast invalid numbers to 0 rather than throw)
42
42
 
43
+ Migration/DepartmentName:
44
+ Enabled: true
45
+
43
46
  Style/AutoResourceCleanup:
44
47
  Enabled: true
45
48
 
data/performance.yml ADDED
@@ -0,0 +1,28 @@
1
+ # ------------------------------------------------------------
2
+ # Cops that rubocop disables by default, but we want to enable
3
+ # ------------------------------------------------------------
4
+
5
+ Performance/CaseWhenSplat:
6
+ Enabled: true
7
+
8
+ Performance/ChainArrayAllocation:
9
+ Enabled: true
10
+
11
+ Performance/OpenStruct:
12
+ Enabled: true
13
+
14
+ # ------------------------------------------------------------
15
+ # END disabled by default cops
16
+ # ------------------------------------------------------------
17
+ # Cops that rubocop enables by default, but we want to disable
18
+ # ------------------------------------------------------------
19
+
20
+ # ------------------------------------------------------------
21
+ # END enabled by default cops
22
+ # ------------------------------------------------------------
23
+ # Cops that we want to reconfigure
24
+ # ------------------------------------------------------------
25
+
26
+ # ------------------------------------------------------------
27
+ # END reconfigured cops
28
+ # ------------------------------------------------------------
data/rspec.yml ADDED
@@ -0,0 +1,74 @@
1
+ # ------------------------------------------------------------
2
+ # Cops that rubocop disables by default, but we want to enable
3
+ # ------------------------------------------------------------
4
+
5
+ # RSpec/AlignLeftLetBrace (not using)
6
+ # RSpec/AlignRightLetBrace (not using)
7
+
8
+ RSpec/Dialect:
9
+ Enabled: true
10
+
11
+ # RSpec/MessageExpectation (enable use of both `allow` and 'expect' for message expectations)
12
+
13
+ RSpec/Pending:
14
+ Enabled: true
15
+
16
+ # ------------------------------------------------------------
17
+ # END disabled by default cops
18
+ # ------------------------------------------------------------
19
+ # Cops that rubocop enables by default, but we want to disable
20
+ # ------------------------------------------------------------
21
+
22
+ # Allow expect_any_instance_of to be used
23
+ RSpec/AnyInstance:
24
+ Enabled: false
25
+
26
+ # Allow any context wording
27
+ RSpec/ContextWording:
28
+ Enabled: false
29
+
30
+ # Allow empty context for shared examples
31
+ RSpec/EmptyExampleGroup:
32
+ Enabled: false
33
+
34
+ # Allow any number of lines in examples
35
+ RSpec/ExampleLength:
36
+ Enabled: false
37
+
38
+ # Prefer 'it should...' wording
39
+ RSpec/ExampleWording:
40
+ Enabled: false
41
+
42
+ # Allow use of expect in before/after hooks
43
+ RSpec/ExpectInHook:
44
+ Enabled: false
45
+
46
+ # Allow stubbing message chains
47
+ RSpec/MessageChain:
48
+ Enabled: false
49
+
50
+ # Prefer `expect().to receive ...` over `allow().to receive ...` + `expect().to have_received ...`
51
+ RSpec/MessageSpies:
52
+ Enabled: false
53
+
54
+ # Allow any number of expect calls
55
+ RSpec/MultipleExpectations:
56
+ Enabled: false
57
+
58
+ # Allow any number of nested groups
59
+ RSpec/NestedGroups:
60
+ Enabled: false
61
+
62
+ # Allow concerns to stub subject
63
+ RSpec/SubjectStub:
64
+ Enabled: false
65
+
66
+ # ------------------------------------------------------------
67
+ # END enabled by default cops
68
+ # ------------------------------------------------------------
69
+ # Cops that we want to reconfigure
70
+ # ------------------------------------------------------------
71
+
72
+ # ------------------------------------------------------------
73
+ # END reconfigured cops
74
+ # ------------------------------------------------------------
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: 1.6.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott O'Hara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-22 00:00:00.000000000 Z
11
+ date: 2019-10-21 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
@@ -19,7 +19,9 @@ files:
19
19
  - LICENSE
20
20
  - default.yml
21
21
  - lib/rubocop-config-oharagroup.rb
22
+ - performance.yml
22
23
  - rails.yml
24
+ - rspec.yml
23
25
  homepage: https://github.com/scottohara/rubocop-config-oharagroup
24
26
  licenses:
25
27
  - MIT
@@ -39,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
41
  - !ruby/object:Gem::Version
40
42
  version: '0'
41
43
  requirements: []
42
- rubygems_version: 3.0.3
44
+ rubygems_version: 3.0.6
43
45
  signing_key:
44
46
  specification_version: 4
45
47
  summary: O'Hara Group Ruby style guide