rubocop-config-oharagroup 1.4.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.
- checksums.yaml +4 -4
- data/default.yml +48 -120
- data/performance.yml +5 -0
- data/rails.yml +5 -25
- data/rake.yml +5 -0
- data/rspec.yml +67 -0
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17f0f57c5487c335b44d6cef84250c438371383e43857a8e37183151e2bffb57
|
4
|
+
data.tar.gz: d2d74f4caf6e7a9030781ea020526a32da485adef03587578cf2ff6a5135fde3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7d620313fcf685a3b1b9894c6ded86c61e4277a1a8ffd7e783715dba4d2a5a16636d9c33c98d572cc3c593e52db1aa0dd024001ee1dbd9810125adb2afedc69
|
7
|
+
data.tar.gz: 322c9935d6342cdeb8b74d561b4cbd6a207e190af6d1e25014828e4c5139805a2edc2d96d09b218ea52b6487e3e2bd709fa6c4446a350902b0ea3136d4ebc875
|
data/default.yml
CHANGED
@@ -1,145 +1,73 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
AllCops:
|
2
|
+
DisplayStyleGuide: true
|
3
|
+
ExtraDetails: true
|
4
|
+
EnabledByDefault: true
|
5
|
+
NewCops: enable
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
+
# Use consistent indentation for arrays even in method calls
|
8
|
+
Layout/FirstArrayElementIndentation:
|
9
|
+
EnforcedStyle: consistent
|
7
10
|
|
8
|
-
|
9
|
-
|
11
|
+
# Use consistent indentation for hashes even in method calls
|
12
|
+
Layout/FirstHashElementIndentation:
|
13
|
+
EnforcedStyle: consistent
|
10
14
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
Layout/FirstArrayElementLineBreak:
|
15
|
-
Enabled: true
|
16
|
-
|
17
|
-
Layout/FirstHashElementLineBreak:
|
18
|
-
Enabled: true
|
19
|
-
|
20
|
-
Layout/FirstMethodArgumentLineBreak:
|
21
|
-
Enabled: true
|
22
|
-
|
23
|
-
Layout/FirstMethodParameterLineBreak:
|
24
|
-
Enabled: true
|
25
|
-
|
26
|
-
Layout/MultilineAssignmentLayout:
|
27
|
-
Enabled: true
|
28
|
-
|
29
|
-
# Lint/NumberConversion (prefer cast invalid numbers to 0 rather than throw)
|
30
|
-
|
31
|
-
Performance/CaseWhenSplat:
|
32
|
-
Enabled: true
|
33
|
-
|
34
|
-
Performance/ChainArrayAllocation:
|
35
|
-
Enabled: true
|
36
|
-
|
37
|
-
Style/AutoResourceCleanup:
|
38
|
-
Enabled: true
|
39
|
-
|
40
|
-
Style/CollectionMethods:
|
41
|
-
Enabled: true
|
42
|
-
|
43
|
-
Style/Copyright:
|
44
|
-
Enabled: true
|
45
|
-
Notice: 'Copyright \(c\) 2016 Scott O.Hara, oharagroup.net'
|
46
|
-
|
47
|
-
Style/DateTime:
|
48
|
-
Enabled: true
|
49
|
-
|
50
|
-
# Style/DocumentationMethod (disabled due to no documentation)
|
51
|
-
|
52
|
-
Style/ImplicitRuntimeError:
|
53
|
-
Enabled: true
|
54
|
-
|
55
|
-
# Style/InlineComment (disabled due to use of inline comments)
|
56
|
-
|
57
|
-
Style/IpAddresses:
|
58
|
-
Enabled: true
|
59
|
-
|
60
|
-
# Style/MethodCallWithArgsParentheses (prefer no parens)
|
61
|
-
|
62
|
-
Style/MethodCalledOnDoEndBlock:
|
63
|
-
Enabled: true
|
64
|
-
|
65
|
-
# Style/MissingElse (else not required)
|
66
|
-
|
67
|
-
Style/MultilineMethodSignature:
|
68
|
-
Enabled: true
|
69
|
-
|
70
|
-
Style/OptionHash:
|
71
|
-
Enabled: true
|
72
|
-
|
73
|
-
Style/ReturnNil:
|
74
|
-
Enabled: true
|
75
|
-
|
76
|
-
Style/Send:
|
77
|
-
Enabled: true
|
78
|
-
|
79
|
-
Style/SingleLineBlockParams:
|
80
|
-
Enabled: true
|
81
|
-
|
82
|
-
# Style/StringHashKeys (disabled because JSON used heavily with string keys)
|
83
|
-
|
84
|
-
Style/StringMethods:
|
85
|
-
Enabled: true
|
15
|
+
# Prefer tabs over spaces
|
16
|
+
Layout/IndentationStyle:
|
17
|
+
EnforcedStyle: tabs
|
86
18
|
|
87
|
-
#
|
88
|
-
|
89
|
-
|
90
|
-
# Cops that rubocop enables by default, but we want to disable
|
91
|
-
# ------------------------------------------------------------
|
19
|
+
# Use single tab for indentation
|
20
|
+
Layout/IndentationWidth:
|
21
|
+
Width: 1
|
92
22
|
|
93
|
-
#
|
94
|
-
Layout/
|
23
|
+
# Don't enforce max line length
|
24
|
+
Layout/LineLength:
|
95
25
|
Enabled: false
|
96
26
|
|
97
|
-
#
|
98
|
-
|
99
|
-
|
27
|
+
# Don't allow spaces inside literal hash braces
|
28
|
+
Layout/SpaceInsideHashLiteralBraces:
|
29
|
+
EnforcedStyle: no_space
|
100
30
|
|
101
|
-
#
|
102
|
-
|
31
|
+
# Prefer cast invalid numbers to 0 rather than throw
|
32
|
+
Lint/NumberConversion:
|
103
33
|
Enabled: false
|
104
34
|
|
105
|
-
# Disable metrics
|
106
|
-
Metrics
|
35
|
+
# Disable metrics department
|
36
|
+
Metrics:
|
107
37
|
Enabled: false
|
108
38
|
|
109
|
-
|
39
|
+
# Allow block comment in spec_helper
|
40
|
+
Style/BlockComments:
|
110
41
|
Enabled: false
|
111
42
|
|
112
|
-
|
113
|
-
|
43
|
+
# Prefer `class << self` to `self.method_name`
|
44
|
+
Style/ClassMethodsDefinitions:
|
45
|
+
EnforcedStyle: self_class
|
114
46
|
|
115
|
-
|
116
|
-
|
47
|
+
Style/Copyright:
|
48
|
+
Notice: 'Copyright \(c\) 2016 Scott O.Hara, oharagroup.net'
|
117
49
|
|
118
|
-
|
50
|
+
# Don't require documentation comment for public methods
|
51
|
+
Style/DocumentationMethod:
|
119
52
|
Enabled: false
|
120
53
|
|
121
|
-
|
54
|
+
# Allow trailing inline comments
|
55
|
+
Style/InlineComment:
|
122
56
|
Enabled: false
|
123
57
|
|
124
|
-
|
58
|
+
# Omit parens where possible
|
59
|
+
# TODO - check if we can leave this enabled and switch EnforcedStyle: omit_parentheses
|
60
|
+
Style/MethodCallWithArgsParentheses:
|
125
61
|
Enabled: false
|
126
62
|
|
127
|
-
|
63
|
+
# Else not required
|
64
|
+
Style/MissingElse:
|
128
65
|
Enabled: false
|
129
66
|
|
130
|
-
#
|
131
|
-
|
132
|
-
|
133
|
-
# Cops that we want to reconfigure
|
134
|
-
# ------------------------------------------------------------
|
135
|
-
|
136
|
-
# Changed from 2 (spaces) to 1 (tab)
|
137
|
-
Layout/IndentationWidth:
|
138
|
-
Width: 1
|
139
|
-
|
140
|
-
Layout/SpaceInsideHashLiteralBraces:
|
141
|
-
EnforcedStyle: no_space
|
67
|
+
# Only require parens where absolutely necessary
|
68
|
+
Style/NestedParenthesizedCalls:
|
69
|
+
Enabled: false
|
142
70
|
|
143
|
-
#
|
144
|
-
|
145
|
-
|
71
|
+
# Disabled because JSON used heavily with string keys
|
72
|
+
Style/StringHashKeys:
|
73
|
+
Enabled: false
|
data/performance.yml
ADDED
data/rails.yml
CHANGED
@@ -1,25 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
Enabled: true
|
7
|
-
|
8
|
-
Rails/SaveBang:
|
9
|
-
Enabled: true
|
10
|
-
|
11
|
-
# ------------------------------------------------------------
|
12
|
-
# END disabled by default cops
|
13
|
-
# ------------------------------------------------------------
|
14
|
-
# Cops that rubocop enables by default, but we want to disable
|
15
|
-
# ------------------------------------------------------------
|
16
|
-
|
17
|
-
# ------------------------------------------------------------
|
18
|
-
# END enabled by default cops
|
19
|
-
# ------------------------------------------------------------
|
20
|
-
# Cops that we want to reconfigure
|
21
|
-
# ------------------------------------------------------------
|
22
|
-
|
23
|
-
# ------------------------------------------------------------
|
24
|
-
# END reconfigured cops
|
25
|
-
# ------------------------------------------------------------
|
1
|
+
AllCops:
|
2
|
+
DisplayStyleGuide: true
|
3
|
+
ExtraDetails: true
|
4
|
+
EnabledByDefault: true
|
5
|
+
NewCops: enable
|
data/rake.yml
ADDED
data/rspec.yml
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
AllCops:
|
2
|
+
DisplayStyleGuide: true
|
3
|
+
ExtraDetails: true
|
4
|
+
EnabledByDefault: true
|
5
|
+
NewCops: enable
|
6
|
+
|
7
|
+
# Don't enforce alignment of braces
|
8
|
+
RSpec/AlignLeftLetBrace:
|
9
|
+
Enabled: false
|
10
|
+
RSpec/AlignRightLetBrace:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
# Allow expect_any_instance_of to be used
|
14
|
+
RSpec/AnyInstance:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
# Allow any context wording
|
18
|
+
RSpec/ContextWording:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
# Allow empty context for shared examples
|
22
|
+
RSpec/EmptyExampleGroup:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
# Allow any number of lines in examples
|
26
|
+
RSpec/ExampleLength:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
# Prefer 'it should...' wording
|
30
|
+
RSpec/ExampleWording:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
# Allow use of expect in before/after hooks
|
34
|
+
RSpec/ExpectInHook:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
# Allow stubbing message chains
|
38
|
+
RSpec/MessageChain:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
# Enable use of both `allow` and 'expect' for message expectations
|
42
|
+
RSpec/MessageExpectation:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
# Prefer `expect().to receive ...` over `allow().to receive ...` + `expect().to have_received ...`
|
46
|
+
RSpec/MessageSpies:
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
# Allow any number of expect calls
|
50
|
+
RSpec/MultipleExpectations:
|
51
|
+
Enabled: false
|
52
|
+
|
53
|
+
# Allow any number of let/subject calls
|
54
|
+
RSpec/MultipleMemoizedHelpers:
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
# Allow any number of nested groups
|
58
|
+
RSpec/NestedGroups:
|
59
|
+
Enabled: false
|
60
|
+
|
61
|
+
# Allow `expect().to receive().with().and_return ...`
|
62
|
+
RSpec/StubbedMock:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
# Allow concerns to stub subject
|
66
|
+
RSpec/SubjectStub:
|
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:
|
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:
|
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
|
@@ -19,12 +19,15 @@ files:
|
|
19
19
|
- LICENSE
|
20
20
|
- default.yml
|
21
21
|
- lib/rubocop-config-oharagroup.rb
|
22
|
+
- performance.yml
|
22
23
|
- rails.yml
|
24
|
+
- rake.yml
|
25
|
+
- rspec.yml
|
23
26
|
homepage: https://github.com/scottohara/rubocop-config-oharagroup
|
24
27
|
licenses:
|
25
28
|
- MIT
|
26
29
|
metadata: {}
|
27
|
-
post_install_message:
|
30
|
+
post_install_message:
|
28
31
|
rdoc_options: []
|
29
32
|
require_paths:
|
30
33
|
- lib
|
@@ -39,9 +42,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '0'
|
41
44
|
requirements: []
|
42
|
-
|
43
|
-
|
44
|
-
signing_key:
|
45
|
+
rubygems_version: 3.2.1
|
46
|
+
signing_key:
|
45
47
|
specification_version: 4
|
46
48
|
summary: O'Hara Group Ruby style guide
|
47
49
|
test_files: []
|