rubocop-config-oharagroup 1.6.0 → 2.3.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 +54 -127
- data/performance.yml +5 -0
- data/rails.yml +5 -25
- data/rake.yml +5 -0
- data/rspec.yml +67 -0
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebf62ae966f14c91194c97c7e86835d3d86be6593587ef5019d6266769b55c7c
|
4
|
+
data.tar.gz: becbe2880c3b7bd1bf52f20d9f9b831daa3457c48742a4c757fba9eb7052822c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b476569c5280464bcbc5ed536b7d902fd003fdd8664c9a4a4d06101b92d69b758aa41f75e20db5bbefbfb4f233ed450d731768bb7a781c4aa7191dddcda0066
|
7
|
+
data.tar.gz: '0718e0057f31b9ac41ade6342e2819789469358a25e00d5aea551cc3aaf13d22e868edd391d7e3d39b486b5f3cd4ad6849d07c09317d1da06b813127170aafe8'
|
data/default.yml
CHANGED
@@ -1,154 +1,81 @@
|
|
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/FirstHashElementLineBreak:
|
15
|
-
Enabled: true
|
16
|
-
|
17
|
-
Layout/FirstMethodArgumentLineBreak:
|
18
|
-
Enabled: true
|
19
|
-
|
20
|
-
Layout/FirstMethodParameterLineBreak:
|
21
|
-
Enabled: true
|
22
|
-
|
23
|
-
Layout/HeredocArgumentClosingParenthesis:
|
24
|
-
Enabled: true
|
25
|
-
|
26
|
-
Layout/MultilineArrayLineBreaks:
|
27
|
-
Enabled: true
|
28
|
-
|
29
|
-
Layout/MultilineAssignmentLayout:
|
30
|
-
Enabled: true
|
31
|
-
|
32
|
-
Layout/MultilineHashKeyLineBreaks:
|
33
|
-
Enabled: true
|
34
|
-
|
35
|
-
Layout/MultilineMethodArgumentLineBreaks:
|
36
|
-
Enabled: true
|
37
|
-
|
38
|
-
Lint/HeredocMethodCallPosition:
|
39
|
-
Enabled: true
|
40
|
-
|
41
|
-
# Lint/NumberConversion (prefer cast invalid numbers to 0 rather than throw)
|
42
|
-
|
43
|
-
Style/AutoResourceCleanup:
|
44
|
-
Enabled: true
|
45
|
-
|
46
|
-
Style/CollectionMethods:
|
47
|
-
Enabled: true
|
48
|
-
|
49
|
-
Style/ConstantVisibility:
|
50
|
-
Enabled: true
|
51
|
-
|
52
|
-
Style/Copyright:
|
53
|
-
Enabled: true
|
54
|
-
Notice: 'Copyright \(c\) 2016 Scott O.Hara, oharagroup.net'
|
55
|
-
|
56
|
-
Style/DateTime:
|
57
|
-
Enabled: true
|
58
|
-
|
59
|
-
# Style/DocumentationMethod (disabled due to no documentation)
|
60
|
-
|
61
|
-
Style/ImplicitRuntimeError:
|
62
|
-
Enabled: true
|
63
|
-
|
64
|
-
# Style/InlineComment (disabled due to use of inline comments)
|
65
|
-
|
66
|
-
Style/IpAddresses:
|
67
|
-
Enabled: true
|
68
|
-
|
69
|
-
# Style/MethodCallWithArgsParentheses (prefer no parens)
|
70
|
-
|
71
|
-
Style/MethodCalledOnDoEndBlock:
|
72
|
-
Enabled: true
|
73
|
-
|
74
|
-
# Style/MissingElse (else not required)
|
75
|
-
|
76
|
-
Style/MultilineMethodSignature:
|
77
|
-
Enabled: true
|
78
|
-
|
79
|
-
Style/OptionHash:
|
80
|
-
Enabled: true
|
81
|
-
|
82
|
-
Style/ReturnNil:
|
83
|
-
Enabled: true
|
84
|
-
|
85
|
-
Style/Send:
|
86
|
-
Enabled: true
|
87
|
-
|
88
|
-
Style/SingleLineBlockParams:
|
89
|
-
Enabled: true
|
90
|
-
|
91
|
-
# Style/StringHashKeys (disabled because JSON used heavily with string keys)
|
92
|
-
|
93
|
-
Style/StringMethods:
|
94
|
-
Enabled: true
|
15
|
+
# Prefer tabs over spaces
|
16
|
+
Layout/IndentationStyle:
|
17
|
+
EnforcedStyle: tabs
|
95
18
|
|
96
|
-
#
|
97
|
-
|
98
|
-
|
99
|
-
# Cops that rubocop enables by default, but we want to disable
|
100
|
-
# ------------------------------------------------------------
|
19
|
+
# Use single tab for indentation
|
20
|
+
Layout/IndentationWidth:
|
21
|
+
Width: 1
|
101
22
|
|
102
|
-
#
|
103
|
-
Layout/
|
23
|
+
# Don't enforce max line length
|
24
|
+
Layout/LineLength:
|
104
25
|
Enabled: false
|
105
26
|
|
106
|
-
#
|
107
|
-
|
27
|
+
# Allow redundant line breaks for readability
|
28
|
+
Layout/RedundantLineBreak:
|
108
29
|
Enabled: false
|
109
30
|
|
110
|
-
#
|
111
|
-
|
31
|
+
# Allow chained method calls after single line blocks
|
32
|
+
Layout/SingleLineBlockChain:
|
112
33
|
Enabled: false
|
113
34
|
|
114
|
-
#
|
115
|
-
|
116
|
-
|
35
|
+
# Don't allow spaces inside literal hash braces
|
36
|
+
Layout/SpaceInsideHashLiteralBraces:
|
37
|
+
EnforcedStyle: no_space
|
117
38
|
|
118
|
-
|
39
|
+
# Prefer cast invalid numbers to 0 rather than throw
|
40
|
+
Lint/NumberConversion:
|
119
41
|
Enabled: false
|
120
42
|
|
121
|
-
|
43
|
+
# Disable metrics department
|
44
|
+
Metrics:
|
122
45
|
Enabled: false
|
123
46
|
|
124
|
-
|
47
|
+
# Allow block comment in spec_helper
|
48
|
+
Style/BlockComments:
|
125
49
|
Enabled: false
|
126
50
|
|
127
|
-
|
128
|
-
|
51
|
+
# Prefer `class << self` to `self.method_name`
|
52
|
+
Style/ClassMethodsDefinitions:
|
53
|
+
EnforcedStyle: self_class
|
129
54
|
|
130
|
-
|
131
|
-
|
55
|
+
Style/Copyright:
|
56
|
+
Notice: 'Copyright \(c\) 2016 Scott O.Hara, oharagroup.net'
|
132
57
|
|
133
|
-
|
58
|
+
# Don't require documentation comment for public methods
|
59
|
+
Style/DocumentationMethod:
|
134
60
|
Enabled: false
|
135
61
|
|
136
|
-
|
62
|
+
# Allow trailing inline comments
|
63
|
+
Style/InlineComment:
|
137
64
|
Enabled: false
|
138
65
|
|
139
|
-
#
|
140
|
-
#
|
141
|
-
|
142
|
-
|
143
|
-
# ------------------------------------------------------------
|
66
|
+
# Omit parens where possible
|
67
|
+
# TODO - check if we can leave this enabled and switch EnforcedStyle: omit_parentheses
|
68
|
+
Style/MethodCallWithArgsParentheses:
|
69
|
+
Enabled: false
|
144
70
|
|
145
|
-
#
|
146
|
-
|
147
|
-
|
71
|
+
# Else not required
|
72
|
+
Style/MissingElse:
|
73
|
+
Enabled: false
|
148
74
|
|
149
|
-
|
150
|
-
|
75
|
+
# Only require parens where absolutely necessary
|
76
|
+
Style/NestedParenthesizedCalls:
|
77
|
+
Enabled: false
|
151
78
|
|
152
|
-
#
|
153
|
-
|
154
|
-
|
79
|
+
# Disabled because JSON used heavily with string keys
|
80
|
+
Style/StringHashKeys:
|
81
|
+
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.3.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: 2021-11-13 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,8 +42,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '0'
|
41
44
|
requirements: []
|
42
|
-
rubygems_version: 3.
|
43
|
-
signing_key:
|
45
|
+
rubygems_version: 3.2.31
|
46
|
+
signing_key:
|
44
47
|
specification_version: 4
|
45
48
|
summary: O'Hara Group Ruby style guide
|
46
49
|
test_files: []
|