rley 0.7.03 → 0.7.08

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 (174) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +362 -62
  3. data/.travis.yml +6 -7
  4. data/CHANGELOG.md +20 -1
  5. data/LICENSE.txt +1 -1
  6. data/README.md +6 -7
  7. data/Rakefile +2 -0
  8. data/appveyor.yml +2 -4
  9. data/examples/NLP/benchmark_pico_en.rb +2 -0
  10. data/examples/NLP/engtagger.rb +193 -188
  11. data/examples/NLP/nano_eng/nano_en_demo.rb +2 -0
  12. data/examples/NLP/nano_eng/nano_grammar.rb +7 -5
  13. data/examples/NLP/pico_en_demo.rb +2 -0
  14. data/examples/data_formats/JSON/cli_options.rb +3 -1
  15. data/examples/data_formats/JSON/json_ast_builder.rb +14 -9
  16. data/examples/data_formats/JSON/json_ast_nodes.rb +14 -21
  17. data/examples/data_formats/JSON/json_demo.rb +2 -0
  18. data/examples/data_formats/JSON/json_grammar.rb +4 -2
  19. data/examples/data_formats/JSON/json_lexer.rb +10 -8
  20. data/examples/data_formats/JSON/json_minifier.rb +3 -1
  21. data/examples/general/calc_iter1/calc_ast_builder.rb +15 -10
  22. data/examples/general/calc_iter1/calc_ast_nodes.rb +25 -37
  23. data/examples/general/calc_iter1/calc_demo.rb +2 -0
  24. data/examples/general/calc_iter1/calc_grammar.rb +4 -2
  25. data/examples/general/calc_iter1/calc_lexer.rb +8 -4
  26. data/examples/general/calc_iter1/spec/calculator_spec.rb +7 -5
  27. data/examples/general/calc_iter2/calc_ast_builder.rb +7 -3
  28. data/examples/general/calc_iter2/calc_ast_nodes.rb +29 -43
  29. data/examples/general/calc_iter2/calc_demo.rb +2 -0
  30. data/examples/general/calc_iter2/calc_grammar.rb +5 -3
  31. data/examples/general/calc_iter2/calc_lexer.rb +13 -10
  32. data/examples/general/calc_iter2/spec/calculator_spec.rb +28 -26
  33. data/examples/general/left.rb +4 -2
  34. data/examples/general/right.rb +4 -2
  35. data/lib/rley.rb +2 -0
  36. data/lib/rley/base/base_parser.rb +2 -0
  37. data/lib/rley/base/dotted_item.rb +38 -41
  38. data/lib/rley/base/grm_items_builder.rb +2 -0
  39. data/lib/rley/constants.rb +5 -3
  40. data/lib/rley/engine.rb +22 -24
  41. data/lib/rley/formatter/asciitree.rb +6 -4
  42. data/lib/rley/formatter/base_formatter.rb +2 -0
  43. data/lib/rley/formatter/bracket_notation.rb +3 -8
  44. data/lib/rley/formatter/debug.rb +8 -6
  45. data/lib/rley/formatter/json.rb +4 -2
  46. data/lib/rley/gfg/call_edge.rb +3 -1
  47. data/lib/rley/gfg/edge.rb +7 -5
  48. data/lib/rley/gfg/end_vertex.rb +4 -6
  49. data/lib/rley/gfg/epsilon_edge.rb +3 -5
  50. data/lib/rley/gfg/grm_flow_graph.rb +31 -25
  51. data/lib/rley/gfg/item_vertex.rb +12 -22
  52. data/lib/rley/gfg/non_terminal_vertex.rb +6 -4
  53. data/lib/rley/gfg/return_edge.rb +2 -0
  54. data/lib/rley/gfg/scan_edge.rb +3 -1
  55. data/lib/rley/gfg/shortcut_edge.rb +4 -2
  56. data/lib/rley/gfg/start_vertex.rb +6 -8
  57. data/lib/rley/gfg/vertex.rb +47 -41
  58. data/lib/rley/lexical/token.rb +3 -1
  59. data/lib/rley/lexical/token_range.rb +8 -6
  60. data/lib/rley/parse_forest_visitor.rb +7 -5
  61. data/lib/rley/parse_rep/ast_base_builder.rb +11 -11
  62. data/lib/rley/parse_rep/cst_builder.rb +7 -4
  63. data/lib/rley/parse_rep/parse_forest_builder.rb +36 -25
  64. data/lib/rley/parse_rep/parse_forest_factory.rb +5 -3
  65. data/lib/rley/parse_rep/parse_rep_creator.rb +18 -13
  66. data/lib/rley/parse_rep/parse_tree_builder.rb +15 -15
  67. data/lib/rley/parse_rep/parse_tree_factory.rb +27 -25
  68. data/lib/rley/parse_tree_visitor.rb +3 -1
  69. data/lib/rley/parser/error_reason.rb +9 -8
  70. data/lib/rley/parser/gfg_chart.rb +54 -22
  71. data/lib/rley/parser/gfg_earley_parser.rb +3 -1
  72. data/lib/rley/parser/gfg_parsing.rb +51 -31
  73. data/lib/rley/parser/parse_entry.rb +29 -33
  74. data/lib/rley/parser/parse_entry_set.rb +32 -27
  75. data/lib/rley/parser/parse_entry_tracker.rb +6 -4
  76. data/lib/rley/parser/parse_state.rb +18 -21
  77. data/lib/rley/parser/parse_state_tracker.rb +6 -4
  78. data/lib/rley/parser/parse_tracer.rb +15 -13
  79. data/lib/rley/parser/parse_walker_factory.rb +28 -29
  80. data/lib/rley/parser/state_set.rb +11 -10
  81. data/lib/rley/ptree/non_terminal_node.rb +10 -6
  82. data/lib/rley/ptree/parse_tree.rb +6 -4
  83. data/lib/rley/ptree/parse_tree_node.rb +7 -5
  84. data/lib/rley/ptree/terminal_node.rb +9 -7
  85. data/lib/rley/rley_error.rb +12 -10
  86. data/lib/rley/sppf/alternative_node.rb +8 -6
  87. data/lib/rley/sppf/composite_node.rb +9 -7
  88. data/lib/rley/sppf/epsilon_node.rb +5 -3
  89. data/lib/rley/sppf/leaf_node.rb +5 -3
  90. data/lib/rley/sppf/non_terminal_node.rb +2 -0
  91. data/lib/rley/sppf/parse_forest.rb +19 -17
  92. data/lib/rley/sppf/sppf_node.rb +9 -8
  93. data/lib/rley/sppf/token_node.rb +5 -3
  94. data/lib/rley/syntax/grammar.rb +7 -5
  95. data/lib/rley/syntax/grammar_builder.rb +11 -9
  96. data/lib/rley/syntax/grm_symbol.rb +8 -6
  97. data/lib/rley/syntax/literal.rb +2 -0
  98. data/lib/rley/syntax/non_terminal.rb +11 -15
  99. data/lib/rley/syntax/production.rb +13 -11
  100. data/lib/rley/syntax/symbol_seq.rb +10 -10
  101. data/lib/rley/syntax/terminal.rb +6 -5
  102. data/lib/rley/syntax/verbatim_symbol.rb +5 -3
  103. data/lib/support/base_tokenizer.rb +23 -20
  104. data/spec/rley/base/dotted_item_spec.rb +4 -2
  105. data/spec/rley/base/grm_items_builder_spec.rb +2 -0
  106. data/spec/rley/engine_spec.rb +47 -9
  107. data/spec/rley/formatter/asciitree_spec.rb +11 -9
  108. data/spec/rley/formatter/bracket_notation_spec.rb +16 -14
  109. data/spec/rley/formatter/debug_spec.rb +4 -2
  110. data/spec/rley/formatter/json_spec.rb +5 -3
  111. data/spec/rley/gfg/call_edge_spec.rb +2 -0
  112. data/spec/rley/gfg/edge_spec.rb +2 -0
  113. data/spec/rley/gfg/end_vertex_spec.rb +7 -5
  114. data/spec/rley/gfg/epsilon_edge_spec.rb +2 -0
  115. data/spec/rley/gfg/grm_flow_graph_spec.rb +2 -0
  116. data/spec/rley/gfg/item_vertex_spec.rb +12 -10
  117. data/spec/rley/gfg/non_terminal_vertex_spec.rb +5 -3
  118. data/spec/rley/gfg/return_edge_spec.rb +2 -0
  119. data/spec/rley/gfg/scan_edge_spec.rb +2 -0
  120. data/spec/rley/gfg/shortcut_edge_spec.rb +3 -1
  121. data/spec/rley/gfg/start_vertex_spec.rb +7 -5
  122. data/spec/rley/gfg/vertex_spec.rb +5 -3
  123. data/spec/rley/lexical/token_range_spec.rb +18 -16
  124. data/spec/rley/lexical/token_spec.rb +4 -2
  125. data/spec/rley/parse_forest_visitor_spec.rb +167 -163
  126. data/spec/rley/parse_rep/ambiguous_parse_spec.rb +46 -44
  127. data/spec/rley/parse_rep/ast_builder_spec.rb +8 -6
  128. data/spec/rley/parse_rep/cst_builder_spec.rb +7 -5
  129. data/spec/rley/parse_rep/groucho_spec.rb +25 -25
  130. data/spec/rley/parse_rep/parse_forest_builder_spec.rb +28 -26
  131. data/spec/rley/parse_rep/parse_forest_factory_spec.rb +8 -6
  132. data/spec/rley/parse_rep/parse_tree_factory_spec.rb +4 -2
  133. data/spec/rley/parse_tree_visitor_spec.rb +12 -8
  134. data/spec/rley/parser/error_reason_spec.rb +8 -6
  135. data/spec/rley/parser/gfg_chart_spec.rb +17 -4
  136. data/spec/rley/parser/gfg_earley_parser_spec.rb +16 -11
  137. data/spec/rley/parser/gfg_parsing_spec.rb +41 -252
  138. data/spec/rley/parser/parse_entry_set_spec.rb +2 -0
  139. data/spec/rley/parser/parse_entry_spec.rb +21 -19
  140. data/spec/rley/parser/parse_state_spec.rb +7 -5
  141. data/spec/rley/parser/parse_tracer_spec.rb +16 -14
  142. data/spec/rley/parser/parse_walker_factory_spec.rb +10 -8
  143. data/spec/rley/parser/state_set_spec.rb +24 -22
  144. data/spec/rley/ptree/non_terminal_node_spec.rb +7 -3
  145. data/spec/rley/ptree/parse_tree_node_spec.rb +6 -4
  146. data/spec/rley/ptree/parse_tree_spec.rb +2 -0
  147. data/spec/rley/ptree/terminal_node_spec.rb +8 -6
  148. data/spec/rley/sppf/alternative_node_spec.rb +8 -6
  149. data/spec/rley/sppf/non_terminal_node_spec.rb +5 -3
  150. data/spec/rley/sppf/token_node_spec.rb +6 -4
  151. data/spec/rley/support/ambiguous_grammar_helper.rb +5 -4
  152. data/spec/rley/support/expectation_helper.rb +2 -0
  153. data/spec/rley/support/grammar_abc_helper.rb +4 -4
  154. data/spec/rley/support/grammar_ambig01_helper.rb +6 -5
  155. data/spec/rley/support/grammar_arr_int_helper.rb +6 -5
  156. data/spec/rley/support/grammar_b_expr_helper.rb +6 -5
  157. data/spec/rley/support/grammar_helper.rb +2 -0
  158. data/spec/rley/support/grammar_l0_helper.rb +15 -16
  159. data/spec/rley/support/grammar_pb_helper.rb +8 -5
  160. data/spec/rley/support/grammar_sppf_helper.rb +3 -1
  161. data/spec/rley/syntax/grammar_builder_spec.rb +7 -5
  162. data/spec/rley/syntax/grammar_spec.rb +8 -6
  163. data/spec/rley/syntax/grm_symbol_spec.rb +3 -1
  164. data/spec/rley/syntax/literal_spec.rb +2 -0
  165. data/spec/rley/syntax/non_terminal_spec.rb +10 -8
  166. data/spec/rley/syntax/production_spec.rb +15 -13
  167. data/spec/rley/syntax/symbol_seq_spec.rb +4 -2
  168. data/spec/rley/syntax/terminal_spec.rb +7 -5
  169. data/spec/rley/syntax/verbatim_symbol_spec.rb +3 -1
  170. data/spec/spec_helper.rb +2 -12
  171. data/spec/support/base_tokenizer_spec.rb +9 -2
  172. metadata +21 -63
  173. data/.simplecov +0 -7
  174. data/Gemfile +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a63420880d532cd1ad4bcef4ff01cbe51de63734f5e30ecc8ffc34338079a3da
4
- data.tar.gz: 0712f56c42b467cbe571c069e5c856817a856c73eb3608531517b28f61f9682a
3
+ metadata.gz: 7377b66e5bac6ee813506829f53a32d694e9a01eaee5f55deec4475a710305d7
4
+ data.tar.gz: 7f972ad8f29be409a12cb61ae095177d8f9f2594fe9b7eb0ef1a931de0729c9c
5
5
  SHA512:
6
- metadata.gz: b1d6824b1e67e3a6b12f262b6e8badc8036fb09cd503de1866834400d23fa815120d71cf5474bd1fef61249836f319f121cc3cf61aff1cef001f7f122d0877e4
7
- data.tar.gz: '081b167f0616abc747e9e90fbf24025e57d1442cd34699e5afd55224042264c4c15f3bcdac1e29b9760f2deba38f113f26da4d119886fc57f099395bd88407a3'
6
+ metadata.gz: d9e888ca1df16c7421df180c551879e6d066f9f848db2135be637951c7edfe928d693be8b1e22753c10b546198351650cc6dfd1acf14837597979f2e0a589715
7
+ data.tar.gz: 4ea2a4c50e66321a00d828264052df58e83beb69ccc13fe9cda7dd9b648eee58f4332510867fef291006e2378f2c25ce85fff95ac11a7ed367578cee567b3b34
data/.rubocop.yml CHANGED
@@ -1,128 +1,428 @@
1
1
  AllCops:
2
2
  Exclude:
3
- - 'features/**/*'
4
3
  - 'exp/**/*'
5
- - 'gems/**/*'
6
- - 'refs/**/*'
4
+ - 'demo/**/*'
7
5
 
8
- # This is disabled because some demos use UTF-8
9
- AsciiComments:
10
- Enabled: false
6
+ Gemspec/DateAssignment:
7
+ Enabled: true
11
8
 
12
- Attr:
9
+ Layout/ArgumentAlignment:
13
10
  Enabled: false
14
11
 
15
- BlockComments:
16
- Enabled: false
12
+ Layout/ArrayAlignment:
13
+ Enabled: true
14
+ EnforcedStyle: with_fixed_indentation
17
15
 
18
- CaseIndentation:
19
- EnforcedStyle: end
20
- IndentOneStep: true
16
+ Layout/CaseIndentation:
17
+ Enabled: false
21
18
 
22
- # Rubocop enforces the use of is_a? instead of kind_of?
23
- # Which is contrary to modelling practice.
24
- ClassCheck:
19
+ Layout/ClosingHeredocIndentation:
25
20
  Enabled: false
26
21
 
27
- ClassLength:
28
- Max: 250
29
- CountComments: false
22
+ Layout/CommentIndentation:
23
+ Enabled: false
30
24
 
31
- ConstantName:
25
+ Layout/ElseAlignment:
32
26
  Enabled: false
33
27
 
34
- CyclomaticComplexity:
28
+ Layout/EmptyLines:
35
29
  Enabled: false
36
30
 
37
- DefWithParentheses:
31
+ Layout/EndAlignment:
38
32
  Enabled: false
39
33
 
40
- Documentation:
34
+ Layout/EndOfLine:
35
+ Enabled: true
36
+ EnforcedStyle: lf
37
+
38
+ Layout/FirstArgumentIndentation:
41
39
  Enabled: false
42
40
 
43
- EmptyLines:
41
+ Layout/HashAlignment:
44
42
  Enabled: false
45
43
 
46
- Encoding:
44
+ Layout/IndentationWidth:
47
45
  Enabled: false
48
46
 
49
- EndOfLine:
47
+ Layout/IndentationConsistency:
48
+ Enabled: true
49
+
50
+ Layout/HeredocIndentation:
50
51
  Enabled: false
51
- # SupportedStyles: lf
52
52
 
53
+ Layout/MultilineHashBraceLayout:
54
+ Enabled: true
55
+
56
+ Layout/MultilineMethodCallBraceLayout:
57
+ Enabled: true
58
+ EnforcedStyle: same_line
59
+
60
+ Layout/SpaceAroundOperators:
61
+ Enabled: true
62
+
63
+ Layout/SpaceBeforeBrackets:
64
+ Enabled: true
65
+
66
+ Layout/SpaceInsideParens:
67
+ Enabled: true
68
+
69
+ Layout/IndentationStyle:
70
+ Enabled: true
71
+
72
+ Layout/SpaceAroundMethodCallOperator:
73
+ Enabled: true
74
+
75
+ Layout/TrailingEmptyLines:
76
+ Enabled: true
77
+
78
+ Layout/TrailingWhitespace:
79
+ Enabled: true
80
+
81
+ Lint/AmbiguousAssignment:
82
+ Enabled: true
83
+
84
+ Lint/DeprecatedConstants:
85
+ Enabled: true
86
+
87
+ Lint/DuplicateBranch:
88
+ Enabled: true
89
+
90
+ Lint/DuplicateRegexpCharacterClassElement:
91
+ Enabled: true
92
+
93
+ Lint/EmptyBlock:
94
+ Enabled: true
53
95
 
54
- IndentationWidth:
96
+ Lint/EmptyClass:
55
97
  Enabled: false
56
-
57
- Layout/BlockAlignment:
98
+
99
+ Lint/LambdaWithoutLiteralBlock:
100
+ Enabled: true
101
+
102
+ Lint/Loop:
103
+ Enabled: true
104
+
105
+ Lint/NoReturnInBeginEndBlocks:
106
+ Enabled: true
107
+
108
+ Lint/NumberedParameterAssignment:
109
+ Enabled: true
110
+
111
+ Lint/OrAssignmentToConstant:
112
+ Enabled: true
113
+
114
+ Lint/RaiseException:
115
+ Enabled: true
116
+
117
+ Lint/RedundantDirGlobSort:
118
+ Enabled: true
119
+
120
+ Lint/RescueException:
121
+ Enabled: true
122
+
123
+ Lint/StructNewOverride:
124
+ Enabled: true
125
+
126
+ Lint/SymbolConversion:
127
+ Enabled: true
128
+
129
+ Lint/ToEnumArguments:
130
+ Enabled: true
131
+
132
+ Lint/TripleQuotes:
133
+ Enabled: true
134
+
135
+ Lint/UnexpectedBlockArity:
136
+ Enabled: true
137
+
138
+ Lint/UnmodifiedReduceAccumulator:
139
+ Enabled: true
140
+
141
+ Lint/UnusedMethodArgument:
142
+ Enabled: true
143
+
144
+ Lint/UselessAccessModifier:
145
+ Enabled: true
146
+
147
+ Lint/Void:
58
148
  Enabled: false
59
149
 
60
- Layout/ClosingHeredocIndentation:
150
+ Lint/UselessAssignment:
151
+ Enabled: true
152
+
153
+ Metrics/AbcSize:
61
154
  Enabled: false
62
-
63
- # Enabled after end of support of Rubies < 2.3
64
- Layout/IndentHeredoc:
155
+
156
+ Metrics/BlockLength:
157
+ Enabled: true
158
+ Max: 350
159
+
160
+ Metrics/BlockNesting:
161
+ Enabled: true
162
+ Max: 5
163
+
164
+ Metrics/ClassLength:
165
+ Enabled: true
166
+ Max: 450
167
+
168
+ Metrics/CyclomaticComplexity:
65
169
  Enabled: false
66
170
 
67
- Layout/SpaceInsideArrayLiteralBrackets:
68
- Enabled: false
69
-
70
- Metrics/AbcSize:
71
- Max: 50
171
+ Layout/LineLength:
172
+ Enabled: false
173
+ Max: 90
72
174
 
73
- # Avoid methods longer than 50 lines of code
74
175
  Metrics/MethodLength:
75
- Max: 50
76
- CountComments: false
176
+ Enabled: true
177
+ Max: 60
77
178
 
78
- # Avoid modules longer than 200 lines of code
79
179
  Metrics/ModuleLength:
80
- CountComments: false
81
- Max: 200
180
+ Enabled: true
181
+ Max: 500
82
182
 
83
183
  Metrics/PerceivedComplexity:
184
+ Enabled: false
185
+
186
+ Naming/ConstantName:
187
+ Enabled: false
188
+
189
+ Naming/ClassAndModuleCamelCase:
190
+ Enabled: false
191
+
192
+ Naming/BlockParameterName:
84
193
  Enabled: true
85
- Max: 50
86
-
87
- # Disable this because it produces false negatives
88
- Naming/HeredocDelimiterNaming:
194
+
195
+ Naming/MethodParameterName:
89
196
  Enabled: false
90
197
 
91
198
  Naming/MethodName:
92
199
  Enabled: false
93
200
 
94
- Naming/UncommunicativeMethodParamName:
201
+ Naming/VariableName:
202
+ Enabled: false
203
+
204
+ Style/AccessorGrouping:
205
+ Enabled: false
206
+
207
+ Style/Alias:
208
+ Enabled: true
209
+
210
+ Style/ArgumentsForwarding:
211
+ Enabled: true
212
+
213
+ Style/AsciiComments:
214
+ Enabled: false
215
+
216
+ Style/BarePercentLiterals:
217
+ Enabled: false
218
+
219
+ Style/BlockComments:
95
220
  Enabled: false
96
221
 
97
- NonNilCheck:
222
+ Style/CharacterLiteral:
98
223
  Enabled: false
99
224
 
100
- NumericLiterals:
225
+ Style/ClassCheck:
101
226
  Enabled: false
102
227
 
103
- RaiseArgs:
228
+ Style/ClassVars:
104
229
  Enabled: false
105
230
 
106
- RedundantReturn:
231
+ Style/CollectionCompact:
232
+ Enabled: true
233
+
234
+ Style/ColonMethodCall:
235
+ Enabled: false
236
+
237
+ Style/CommentAnnotation:
107
238
  Enabled: false
108
239
 
109
240
  Style/CommentedKeyword:
110
241
  Enabled: false
111
-
112
- Style/ConditionalAssignment:
242
+
243
+ Style/ConditionalAssignment:
244
+ Enabled: false
245
+
246
+ Style/DefWithParentheses:
247
+ Enabled: true
248
+
249
+ Style/Documentation:
250
+ Enabled: false
251
+
252
+ Style/DocumentDynamicEvalDefinition:
253
+ Enabled: true
254
+
255
+ Style/ExpandPathArguments:
256
+ Enabled: false
257
+
258
+ Style/ExponentialNotation:
259
+ Enabled: true
260
+
261
+ Style/GuardClause:
262
+ Enabled: false
263
+
264
+ Style/HashEachMethods:
265
+ Enabled: true
266
+
267
+ Style/HashExcept:
268
+ Enabled: true
269
+
270
+ Style/HashTransformKeys:
271
+ Enabled: true
272
+
273
+ Style/HashTransformValues:
274
+ Enabled: true
275
+
276
+ Style/IfUnlessModifier:
113
277
  Enabled: false
114
-
115
- Style/Lambda:
278
+
279
+ Style/InverseMethods:
116
280
  Enabled: false
117
-
281
+
118
282
  Style/MissingRespondToMissing:
119
283
  Enabled: false
120
284
 
121
- TrailingWhitespace:
285
+ Style/NegatedIfElseCondition:
286
+ Enabled: true
287
+
288
+ Style/Next:
289
+ Enabled: false
290
+
291
+ Style/NilLambda:
292
+ Enabled: true
293
+
294
+ Style/NumericLiterals:
295
+ Enabled: false
296
+
297
+ Style/RaiseArgs:
298
+ Enabled: true
299
+
300
+ Style/RedundantArgument:
301
+ Enabled: true
302
+
303
+ Style/RedundantReturn:
304
+ Enabled: false
305
+
306
+ Style/RedundantSelf:
307
+ Enabled: true
308
+
309
+ Style/RegexpLiteral:
310
+ Enabled: false
311
+
312
+ Style/PercentLiteralDelimiters:
313
+ Enabled: false
314
+
315
+ Style/StderrPuts:
122
316
  Enabled: false
123
317
 
124
- VariableName:
318
+ Style/StringLiterals:
319
+ Enabled: true
320
+
321
+ Style/SwapValues:
322
+ Enabled: true
323
+
324
+ Style/TernaryParentheses:
125
325
  Enabled: false
126
326
 
127
- VariableNumber:
128
- Enabled: false
327
+ Style/UnlessElse:
328
+ Enabled: false
329
+
330
+ # Rubocop complains when it doesn't find an explicit setting for the following cops:
331
+ Layout/EmptyLinesAroundAttributeAccessor:
332
+ Enabled: true
333
+
334
+ Lint/BinaryOperatorWithIdenticalOperands:
335
+ Enabled: true
336
+
337
+ Lint/DeprecatedOpenSSLConstant:
338
+ Enabled: true
339
+
340
+ Lint/DuplicateElsifCondition:
341
+ Enabled: true
342
+
343
+ Lint/DuplicateRescueException:
344
+ Enabled: true
345
+
346
+ Lint/EmptyConditionalBody:
347
+ Enabled: true
348
+
349
+ Lint/FloatComparison:
350
+ Enabled: true
351
+
352
+ Lint/MissingSuper:
353
+ Enabled: true
354
+
355
+ Lint/MixedRegexpCaptureTypes:
356
+ Enabled: true
357
+
358
+ Lint/OutOfRangeRegexpRef:
359
+ Enabled: true
360
+
361
+ Lint/SelfAssignment:
362
+ Enabled: true
363
+
364
+ Lint/TopLevelReturnWithArgument:
365
+ Enabled: true
366
+
367
+ Lint/UnreachableLoop:
368
+ Enabled: true
369
+
370
+ Style/ArrayCoercion:
371
+ Enabled: true
372
+
373
+ Style/BisectedAttrAccessor:
374
+ Enabled: true
375
+
376
+ Style/CaseLikeIf:
377
+ Enabled: true
378
+
379
+ Style/EndlessMethod:
380
+ Enabled: true
381
+
382
+ Style/ExplicitBlockArgument:
383
+ Enabled: true
384
+
385
+ Style/GlobalStdStream:
386
+ Enabled: true
387
+
388
+ Style/HashAsLastArrayItem:
389
+ Enabled: true
390
+
391
+ Style/HashConversion:
392
+ Enabled: true
393
+
394
+ Style/HashLikeCase:
395
+ Enabled: true
396
+
397
+ Style/IfWithBooleanLiteralBranches:
398
+ Enabled: true
399
+
400
+ Style/OptionalBooleanParameter:
401
+ Enabled: true
402
+
403
+ Style/RedundantAssignment:
404
+ Enabled: true
405
+
406
+ Style/RedundantFetchBlock:
407
+ Enabled: true
408
+
409
+ Style/RedundantFileExtensionInRequire:
410
+ Enabled: true
411
+
412
+ Style/RedundantRegexpCharacterClass:
413
+ Enabled: true
414
+
415
+ Style/RedundantRegexpEscape:
416
+ Enabled: true
417
+
418
+ Style/SingleArgumentDig:
419
+ Enabled: true
420
+
421
+ Style/SlicingWithRange:
422
+ Enabled: true
423
+
424
+ Style/StringChars:
425
+ Enabled: true
426
+
427
+ Style/StringConcatenation:
428
+ Enabled: true