Skip to content

Commit e2fb431

Browse files
committed
Fix for last commit!
1 parent c5f127c commit e2fb431

File tree

2 files changed

+92
-1
lines changed

2 files changed

+92
-1
lines changed

.rubocop.yml

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# This is the configuration used to check the rubocop source code.
2+
3+
#require: rbocop/cop/internal_affairs
4+
5+
AllCops:
6+
# Include common Ruby source files.
7+
Exclude:
8+
- 'spec/**/*'
9+
- 'zero-params_processor.gemspec'
10+
- 'Gemfile'
11+
- 'bin/**/*'
12+
DisplayCopNames: true
13+
TargetRubyVersion: 2.4
14+
TargetRailsVersion: 5.1
15+
16+
Style/FrozenStringLiteralComment:
17+
Enabled: false
18+
19+
Metrics/LineLength:
20+
Max: 1200
21+
22+
Metrics/ClassLength:
23+
Max: 1200
24+
25+
Metrics/MethodLength:
26+
Max: 1200
27+
28+
Metrics/ModuleLength:
29+
Max: 1200
30+
31+
Metrics/BlockLength:
32+
Max: 1200
33+
34+
Style/Documentation:
35+
Enabled: false
36+
37+
Layout/SpaceInsideBrackets:
38+
Enabled: false
39+
40+
Layout/SpaceInsideHashLiteralBraces:
41+
Enabled: false
42+
43+
Layout/SpaceInsidePercentLiteralDelimiters:
44+
Enabled: false
45+
46+
Style/AsciiComments:
47+
Enabled: false
48+
49+
Layout/IndentHash:
50+
Enabled: false
51+
52+
Layout/AlignHash:
53+
Enabled: false
54+
55+
Style/HashSyntax:
56+
Enabled: false
57+
58+
Style/ClassAndModuleChildren:
59+
Enabled: false
60+
61+
Layout/EmptyLines:
62+
Enabled: false
63+
64+
Lint/UnneededSplatExpansion:
65+
Enabled: false
66+
67+
#Style/StringLiterals:
68+
# Enabled: true
69+
# EnforcedStyle: double_quotes
70+
71+
72+
73+
74+
Style/UnneededPercentQ:
75+
Enabled: false
76+
77+
Style/RedundantSelf:
78+
Enabled: false
79+
80+
Metrics/CyclomaticComplexity:
81+
Enabled: false
82+
83+
Metrics/AbcSize:
84+
Enabled: false
85+
86+
Metrics/PerceivedComplexity:
87+
Enabled: false
88+
89+
# False positives
90+
Layout/EmptyLineBetweenDefs:
91+
Enabled: false

lib/oas_objs/helpers.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def reducx(*values)
2222
end
2323

2424
def to_processed(who)
25-
return processed if truly_present?(@assign)
25+
return processed unless truly_present?(@assign)
2626

2727
if who.is_a?(Symbol)
2828
send("#{who}=", @assign)

0 commit comments

Comments
 (0)