Skip to content

Commit 83c9d60

Browse files
author
Konstantin Gredeskoul
committed
Attempting to fix broken tests
* it appears that rubocop is unable to find relaxed-rubocop gem's .rubocop.yml file despite it being included in the bazel-bin * for now the simplest solution is to just add the relaxed rubocop's config file to this repo and not worry about it.
1 parent 963b745 commit 83c9d60

File tree

9 files changed

+359
-16
lines changed

9 files changed

+359
-16
lines changed

.relaxed-rubocop-2.4.yml

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# Relaxed.Ruby.Style
2+
## Version 2.4
3+
4+
Style/Alias:
5+
Enabled: false
6+
StyleGuide: https://relaxed.ruby.style/#stylealias
7+
8+
Style/AsciiComments:
9+
Enabled: false
10+
StyleGuide: https://relaxed.ruby.style/#styleasciicomments
11+
12+
Style/BeginBlock:
13+
Enabled: false
14+
StyleGuide: https://relaxed.ruby.style/#stylebeginblock
15+
16+
Style/BlockDelimiters:
17+
Enabled: false
18+
StyleGuide: https://relaxed.ruby.style/#styleblockdelimiters
19+
20+
Style/CommentAnnotation:
21+
Enabled: false
22+
StyleGuide: https://relaxed.ruby.style/#stylecommentannotation
23+
24+
Style/Documentation:
25+
Enabled: false
26+
StyleGuide: https://relaxed.ruby.style/#styledocumentation
27+
28+
Layout/DotPosition:
29+
Enabled: false
30+
StyleGuide: https://relaxed.ruby.style/#layoutdotposition
31+
32+
Style/DoubleNegation:
33+
Enabled: false
34+
StyleGuide: https://relaxed.ruby.style/#styledoublenegation
35+
36+
Style/EndBlock:
37+
Enabled: false
38+
StyleGuide: https://relaxed.ruby.style/#styleendblock
39+
40+
Style/FormatString:
41+
Enabled: false
42+
StyleGuide: https://relaxed.ruby.style/#styleformatstring
43+
44+
Style/IfUnlessModifier:
45+
Enabled: false
46+
StyleGuide: https://relaxed.ruby.style/#styleifunlessmodifier
47+
48+
Style/Lambda:
49+
Enabled: false
50+
StyleGuide: https://relaxed.ruby.style/#stylelambda
51+
52+
Style/ModuleFunction:
53+
Enabled: false
54+
StyleGuide: https://relaxed.ruby.style/#stylemodulefunction
55+
56+
Style/MultilineBlockChain:
57+
Enabled: false
58+
StyleGuide: https://relaxed.ruby.style/#stylemultilineblockchain
59+
60+
Style/NegatedIf:
61+
Enabled: false
62+
StyleGuide: https://relaxed.ruby.style/#stylenegatedif
63+
64+
Style/NegatedWhile:
65+
Enabled: false
66+
StyleGuide: https://relaxed.ruby.style/#stylenegatedwhile
67+
68+
Style/NumericPredicate:
69+
Enabled: false
70+
StyleGuide: https://relaxed.ruby.style/#stylenumericpredicate
71+
72+
Style/ParallelAssignment:
73+
Enabled: false
74+
StyleGuide: https://relaxed.ruby.style/#styleparallelassignment
75+
76+
Style/PercentLiteralDelimiters:
77+
Enabled: false
78+
StyleGuide: https://relaxed.ruby.style/#stylepercentliteraldelimiters
79+
80+
Style/PerlBackrefs:
81+
Enabled: false
82+
StyleGuide: https://relaxed.ruby.style/#styleperlbackrefs
83+
84+
Style/Semicolon:
85+
Enabled: false
86+
StyleGuide: https://relaxed.ruby.style/#stylesemicolon
87+
88+
Style/SignalException:
89+
Enabled: false
90+
StyleGuide: https://relaxed.ruby.style/#stylesignalexception
91+
92+
Style/SingleLineBlockParams:
93+
Enabled: false
94+
StyleGuide: https://relaxed.ruby.style/#stylesinglelineblockparams
95+
96+
Style/SingleLineMethods:
97+
Enabled: false
98+
StyleGuide: https://relaxed.ruby.style/#stylesinglelinemethods
99+
100+
Layout/SpaceBeforeBlockBraces:
101+
Enabled: false
102+
StyleGuide: https://relaxed.ruby.style/#layoutspacebeforeblockbraces
103+
104+
Layout/SpaceInsideParens:
105+
Enabled: false
106+
StyleGuide: https://relaxed.ruby.style/#layoutspaceinsideparens
107+
108+
Layout/LineLength:
109+
Enabled: false
110+
111+
Style/SpecialGlobalVars:
112+
Enabled: false
113+
StyleGuide: https://relaxed.ruby.style/#stylespecialglobalvars
114+
115+
Style/StringLiterals:
116+
Enabled: false
117+
StyleGuide: https://relaxed.ruby.style/#stylestringliterals
118+
119+
Style/TrailingCommaInArguments:
120+
Enabled: false
121+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarguments
122+
123+
Style/TrailingCommaInArrayLiteral:
124+
Enabled: false
125+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarrayliteral
126+
127+
Style/TrailingCommaInHashLiteral:
128+
Enabled: false
129+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainhashliteral
130+
131+
Style/SymbolArray:
132+
Enabled: false
133+
StyleGuide: http://relaxed.ruby.style/#stylesymbolarray
134+
135+
Style/WhileUntilModifier:
136+
Enabled: false
137+
StyleGuide: https://relaxed.ruby.style/#stylewhileuntilmodifier
138+
139+
Style/WordArray:
140+
Enabled: false
141+
StyleGuide: https://relaxed.ruby.style/#stylewordarray
142+
143+
Lint/AmbiguousRegexpLiteral:
144+
Enabled: false
145+
StyleGuide: https://relaxed.ruby.style/#lintambiguousregexpliteral
146+
147+
Lint/AssignmentInCondition:
148+
Enabled: false
149+
StyleGuide: https://relaxed.ruby.style/#lintassignmentincondition
150+
151+
Metrics/AbcSize:
152+
Enabled: false
153+
154+
Metrics/BlockNesting:
155+
Enabled: false
156+
157+
Metrics/ClassLength:
158+
Enabled: false
159+
160+
Metrics/ModuleLength:
161+
Enabled: false
162+
163+
Metrics/CyclomaticComplexity:
164+
Enabled: false
165+
166+
Metrics/MethodLength:
167+
Enabled: false
168+
169+
Metrics/ParameterLists:
170+
Enabled: false
171+
172+
Metrics/PerceivedComplexity:
173+
Enabled: false
174+

.rubocop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
inherit_from: .relaxed-rubocop-2.4.yml
2+
13
AllCops:
24
TargetRubyVersion: 2.6.5
35
Exclude:
@@ -7,6 +9,4 @@ AllCops:
79
- "**/external/**/*"
810
- "**/vendor/bundle/**/*"
911

10-
inherit_gem:
11-
relaxed-rubocop: .rubocop.yml
1212

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
source 'https://rubygems.org'
44

5-
gem 'relaxed-rubocop', '~> 2.4'
6-
gem 'rubocop', '~> 0.77'
5+
gem 'rubocop', '~> 0.78'

Gemfile.lock

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ GEM
77
parser (2.6.5.0)
88
ast (~> 2.4.0)
99
rainbow (3.0.0)
10-
relaxed-rubocop (2.4)
11-
rubocop (0.77.0)
10+
rubocop (0.78.0)
1211
jaro_winkler (~> 1.5.1)
1312
parallel (~> 1.10)
1413
parser (>= 2.6)
@@ -22,8 +21,7 @@ PLATFORMS
2221
ruby
2322

2423
DEPENDENCIES
25-
relaxed-rubocop (~> 2.4)
26-
rubocop (~> 0.77)
24+
rubocop (~> 0.78)
2725

2826
BUNDLED WITH
2927
2.0.2
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# Relaxed.Ruby.Style
2+
## Version 2.4
3+
4+
Style/Alias:
5+
Enabled: false
6+
StyleGuide: https://relaxed.ruby.style/#stylealias
7+
8+
Style/AsciiComments:
9+
Enabled: false
10+
StyleGuide: https://relaxed.ruby.style/#styleasciicomments
11+
12+
Style/BeginBlock:
13+
Enabled: false
14+
StyleGuide: https://relaxed.ruby.style/#stylebeginblock
15+
16+
Style/BlockDelimiters:
17+
Enabled: false
18+
StyleGuide: https://relaxed.ruby.style/#styleblockdelimiters
19+
20+
Style/CommentAnnotation:
21+
Enabled: false
22+
StyleGuide: https://relaxed.ruby.style/#stylecommentannotation
23+
24+
Style/Documentation:
25+
Enabled: false
26+
StyleGuide: https://relaxed.ruby.style/#styledocumentation
27+
28+
Layout/DotPosition:
29+
Enabled: false
30+
StyleGuide: https://relaxed.ruby.style/#layoutdotposition
31+
32+
Style/DoubleNegation:
33+
Enabled: false
34+
StyleGuide: https://relaxed.ruby.style/#styledoublenegation
35+
36+
Style/EndBlock:
37+
Enabled: false
38+
StyleGuide: https://relaxed.ruby.style/#styleendblock
39+
40+
Style/FormatString:
41+
Enabled: false
42+
StyleGuide: https://relaxed.ruby.style/#styleformatstring
43+
44+
Style/IfUnlessModifier:
45+
Enabled: false
46+
StyleGuide: https://relaxed.ruby.style/#styleifunlessmodifier
47+
48+
Style/Lambda:
49+
Enabled: false
50+
StyleGuide: https://relaxed.ruby.style/#stylelambda
51+
52+
Style/ModuleFunction:
53+
Enabled: false
54+
StyleGuide: https://relaxed.ruby.style/#stylemodulefunction
55+
56+
Style/MultilineBlockChain:
57+
Enabled: false
58+
StyleGuide: https://relaxed.ruby.style/#stylemultilineblockchain
59+
60+
Style/NegatedIf:
61+
Enabled: false
62+
StyleGuide: https://relaxed.ruby.style/#stylenegatedif
63+
64+
Style/NegatedWhile:
65+
Enabled: false
66+
StyleGuide: https://relaxed.ruby.style/#stylenegatedwhile
67+
68+
Style/NumericPredicate:
69+
Enabled: false
70+
StyleGuide: https://relaxed.ruby.style/#stylenumericpredicate
71+
72+
Style/ParallelAssignment:
73+
Enabled: false
74+
StyleGuide: https://relaxed.ruby.style/#styleparallelassignment
75+
76+
Style/PercentLiteralDelimiters:
77+
Enabled: false
78+
StyleGuide: https://relaxed.ruby.style/#stylepercentliteraldelimiters
79+
80+
Style/PerlBackrefs:
81+
Enabled: false
82+
StyleGuide: https://relaxed.ruby.style/#styleperlbackrefs
83+
84+
Style/Semicolon:
85+
Enabled: false
86+
StyleGuide: https://relaxed.ruby.style/#stylesemicolon
87+
88+
Style/SignalException:
89+
Enabled: false
90+
StyleGuide: https://relaxed.ruby.style/#stylesignalexception
91+
92+
Style/SingleLineBlockParams:
93+
Enabled: false
94+
StyleGuide: https://relaxed.ruby.style/#stylesinglelineblockparams
95+
96+
Style/SingleLineMethods:
97+
Enabled: false
98+
StyleGuide: https://relaxed.ruby.style/#stylesinglelinemethods
99+
100+
Layout/SpaceBeforeBlockBraces:
101+
Enabled: false
102+
StyleGuide: https://relaxed.ruby.style/#layoutspacebeforeblockbraces
103+
104+
Layout/SpaceInsideParens:
105+
Enabled: false
106+
StyleGuide: https://relaxed.ruby.style/#layoutspaceinsideparens
107+
108+
Layout/LineLength:
109+
Enabled: false
110+
111+
Style/SpecialGlobalVars:
112+
Enabled: false
113+
StyleGuide: https://relaxed.ruby.style/#stylespecialglobalvars
114+
115+
Style/StringLiterals:
116+
Enabled: false
117+
StyleGuide: https://relaxed.ruby.style/#stylestringliterals
118+
119+
Style/TrailingCommaInArguments:
120+
Enabled: false
121+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarguments
122+
123+
Style/TrailingCommaInArrayLiteral:
124+
Enabled: false
125+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarrayliteral
126+
127+
Style/TrailingCommaInHashLiteral:
128+
Enabled: false
129+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainhashliteral
130+
131+
Style/SymbolArray:
132+
Enabled: false
133+
StyleGuide: http://relaxed.ruby.style/#stylesymbolarray
134+
135+
Style/WhileUntilModifier:
136+
Enabled: false
137+
StyleGuide: https://relaxed.ruby.style/#stylewhileuntilmodifier
138+
139+
Style/WordArray:
140+
Enabled: false
141+
StyleGuide: https://relaxed.ruby.style/#stylewordarray
142+
143+
Lint/AmbiguousRegexpLiteral:
144+
Enabled: false
145+
StyleGuide: https://relaxed.ruby.style/#lintambiguousregexpliteral
146+
147+
Lint/AssignmentInCondition:
148+
Enabled: false
149+
StyleGuide: https://relaxed.ruby.style/#lintassignmentincondition
150+
151+
Metrics/AbcSize:
152+
Enabled: false
153+
154+
Metrics/BlockNesting:
155+
Enabled: false
156+
157+
Metrics/ClassLength:
158+
Enabled: false
159+
160+
Metrics/ModuleLength:
161+
Enabled: false
162+
163+
Metrics/CyclomaticComplexity:
164+
Enabled: false
165+
166+
Metrics/MethodLength:
167+
Enabled: false
168+
169+
Metrics/ParameterLists:
170+
Enabled: false
171+
172+
Metrics/PerceivedComplexity:
173+
Enabled: false
174+

0 commit comments

Comments
 (0)