rley 0.7.06 → 0.8.01

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +362 -62
  3. data/.travis.yml +6 -6
  4. data/CHANGELOG.md +20 -4
  5. data/LICENSE.txt +1 -1
  6. data/README.md +7 -7
  7. data/examples/NLP/engtagger.rb +193 -190
  8. data/examples/NLP/nano_eng/nano_en_demo.rb +7 -11
  9. data/examples/NLP/nano_eng/nano_grammar.rb +21 -21
  10. data/examples/NLP/pico_en_demo.rb +2 -2
  11. data/examples/data_formats/JSON/cli_options.rb +1 -1
  12. data/examples/data_formats/JSON/json_ast_builder.rb +21 -27
  13. data/examples/data_formats/JSON/json_ast_nodes.rb +12 -21
  14. data/examples/data_formats/JSON/json_demo.rb +1 -2
  15. data/examples/data_formats/JSON/json_grammar.rb +13 -13
  16. data/examples/data_formats/JSON/json_lexer.rb +8 -8
  17. data/examples/data_formats/JSON/json_minifier.rb +1 -1
  18. data/examples/general/calc_iter1/calc_ast_builder.rb +13 -10
  19. data/examples/general/calc_iter1/calc_ast_nodes.rb +23 -37
  20. data/examples/general/calc_iter1/calc_grammar.rb +7 -6
  21. data/examples/general/calc_iter1/calc_lexer.rb +6 -4
  22. data/examples/general/calc_iter1/spec/calculator_spec.rb +5 -5
  23. data/examples/general/calc_iter2/calc_ast_builder.rb +5 -3
  24. data/examples/general/calc_iter2/calc_ast_nodes.rb +27 -43
  25. data/examples/general/calc_iter2/calc_grammar.rb +12 -12
  26. data/examples/general/calc_iter2/calc_lexer.rb +11 -10
  27. data/examples/general/calc_iter2/spec/calculator_spec.rb +26 -26
  28. data/examples/general/left.rb +2 -2
  29. data/examples/general/right.rb +2 -2
  30. data/lib/rley.rb +1 -1
  31. data/lib/rley/base/dotted_item.rb +28 -31
  32. data/lib/rley/base/grm_items_builder.rb +6 -0
  33. data/lib/rley/constants.rb +2 -2
  34. data/lib/rley/engine.rb +22 -25
  35. data/lib/rley/formatter/asciitree.rb +3 -3
  36. data/lib/rley/formatter/bracket_notation.rb +1 -8
  37. data/lib/rley/formatter/debug.rb +6 -6
  38. data/lib/rley/formatter/json.rb +2 -2
  39. data/lib/rley/gfg/call_edge.rb +1 -1
  40. data/lib/rley/gfg/edge.rb +5 -5
  41. data/lib/rley/gfg/end_vertex.rb +2 -6
  42. data/lib/rley/gfg/epsilon_edge.rb +1 -5
  43. data/lib/rley/gfg/grm_flow_graph.rb +27 -23
  44. data/lib/rley/gfg/item_vertex.rb +10 -10
  45. data/lib/rley/gfg/non_terminal_vertex.rb +4 -4
  46. data/lib/rley/gfg/scan_edge.rb +1 -1
  47. data/lib/rley/gfg/shortcut_edge.rb +2 -2
  48. data/lib/rley/gfg/start_vertex.rb +4 -8
  49. data/lib/rley/gfg/vertex.rb +43 -39
  50. data/lib/rley/interface.rb +16 -0
  51. data/lib/rley/lexical/token_range.rb +6 -6
  52. data/lib/rley/notation/all_notation_nodes.rb +2 -0
  53. data/lib/rley/notation/ast_builder.rb +191 -0
  54. data/lib/rley/notation/ast_node.rb +44 -0
  55. data/lib/rley/notation/ast_visitor.rb +113 -0
  56. data/lib/rley/notation/grammar.rb +49 -0
  57. data/lib/rley/notation/grammar_builder.rb +504 -0
  58. data/lib/rley/notation/grouping_node.rb +23 -0
  59. data/lib/rley/notation/parser.rb +56 -0
  60. data/lib/rley/notation/sequence_node.rb +35 -0
  61. data/lib/rley/notation/symbol_node.rb +29 -0
  62. data/lib/rley/notation/tokenizer.rb +192 -0
  63. data/lib/rley/parse_forest_visitor.rb +5 -5
  64. data/lib/rley/parse_rep/ast_base_builder.rb +48 -11
  65. data/lib/rley/parse_rep/cst_builder.rb +5 -6
  66. data/lib/rley/parse_rep/parse_forest_builder.rb +22 -18
  67. data/lib/rley/parse_rep/parse_forest_factory.rb +3 -3
  68. data/lib/rley/parse_rep/parse_rep_creator.rb +14 -16
  69. data/lib/rley/parse_rep/parse_tree_builder.rb +4 -4
  70. data/lib/rley/parse_rep/parse_tree_factory.rb +27 -27
  71. data/lib/rley/parse_tree_visitor.rb +1 -1
  72. data/lib/rley/parser/error_reason.rb +4 -5
  73. data/lib/rley/parser/gfg_chart.rb +118 -26
  74. data/lib/rley/parser/gfg_parsing.rb +22 -33
  75. data/lib/rley/parser/parse_entry.rb +25 -31
  76. data/lib/rley/parser/parse_entry_set.rb +19 -16
  77. data/lib/rley/parser/parse_entry_tracker.rb +4 -4
  78. data/lib/rley/parser/parse_tracer.rb +13 -13
  79. data/lib/rley/parser/parse_walker_factory.rb +23 -28
  80. data/lib/rley/ptree/non_terminal_node.rb +7 -5
  81. data/lib/rley/ptree/parse_tree.rb +3 -3
  82. data/lib/rley/ptree/parse_tree_node.rb +5 -5
  83. data/lib/rley/ptree/terminal_node.rb +7 -7
  84. data/lib/rley/rley_error.rb +12 -12
  85. data/lib/rley/sppf/alternative_node.rb +6 -6
  86. data/lib/rley/sppf/composite_node.rb +7 -7
  87. data/lib/rley/sppf/epsilon_node.rb +3 -3
  88. data/lib/rley/sppf/leaf_node.rb +3 -3
  89. data/lib/rley/sppf/parse_forest.rb +16 -16
  90. data/lib/rley/sppf/sppf_node.rb +7 -8
  91. data/lib/rley/sppf/token_node.rb +3 -3
  92. data/lib/rley/syntax/{grammar_builder.rb → base_grammar_builder.rb} +61 -23
  93. data/lib/rley/syntax/grammar.rb +5 -5
  94. data/lib/rley/syntax/grm_symbol.rb +7 -7
  95. data/lib/rley/syntax/match_closest.rb +43 -0
  96. data/lib/rley/syntax/non_terminal.rb +9 -15
  97. data/lib/rley/syntax/production.rb +16 -10
  98. data/lib/rley/syntax/symbol_seq.rb +7 -9
  99. data/lib/rley/syntax/terminal.rb +4 -5
  100. data/lib/rley/syntax/verbatim_symbol.rb +3 -3
  101. data/lib/support/base_tokenizer.rb +19 -18
  102. data/spec/rley/base/dotted_item_spec.rb +2 -2
  103. data/spec/rley/engine_spec.rb +23 -21
  104. data/spec/rley/formatter/asciitree_spec.rb +7 -7
  105. data/spec/rley/formatter/bracket_notation_spec.rb +13 -13
  106. data/spec/rley/formatter/json_spec.rb +1 -1
  107. data/spec/rley/gfg/end_vertex_spec.rb +5 -5
  108. data/spec/rley/gfg/grm_flow_graph_spec.rb +2 -2
  109. data/spec/rley/gfg/item_vertex_spec.rb +10 -10
  110. data/spec/rley/gfg/non_terminal_vertex_spec.rb +3 -3
  111. data/spec/rley/gfg/shortcut_edge_spec.rb +1 -1
  112. data/spec/rley/gfg/start_vertex_spec.rb +5 -5
  113. data/spec/rley/gfg/vertex_spec.rb +3 -3
  114. data/spec/rley/lexical/token_range_spec.rb +16 -16
  115. data/spec/rley/lexical/token_spec.rb +2 -2
  116. data/spec/rley/notation/grammar_builder_spec.rb +302 -0
  117. data/spec/rley/notation/parser_spec.rb +184 -0
  118. data/spec/rley/notation/tokenizer_spec.rb +370 -0
  119. data/spec/rley/parse_forest_visitor_spec.rb +165 -163
  120. data/spec/rley/parse_rep/ambiguous_parse_spec.rb +44 -44
  121. data/spec/rley/parse_rep/ast_builder_spec.rb +6 -7
  122. data/spec/rley/parse_rep/cst_builder_spec.rb +5 -5
  123. data/spec/rley/parse_rep/groucho_spec.rb +24 -26
  124. data/spec/rley/parse_rep/parse_forest_builder_spec.rb +27 -27
  125. data/spec/rley/parse_rep/parse_forest_factory_spec.rb +8 -8
  126. data/spec/rley/parse_rep/parse_tree_factory_spec.rb +3 -3
  127. data/spec/rley/parse_tree_visitor_spec.rb +10 -8
  128. data/spec/rley/parser/dangling_else_spec.rb +445 -0
  129. data/spec/rley/parser/error_reason_spec.rb +6 -6
  130. data/spec/rley/parser/gfg_earley_parser_spec.rb +120 -12
  131. data/spec/rley/parser/gfg_parsing_spec.rb +6 -13
  132. data/spec/rley/parser/parse_entry_spec.rb +19 -19
  133. data/spec/rley/parser/parse_walker_factory_spec.rb +10 -10
  134. data/spec/rley/ptree/non_terminal_node_spec.rb +5 -3
  135. data/spec/rley/ptree/parse_tree_node_spec.rb +4 -4
  136. data/spec/rley/ptree/terminal_node_spec.rb +6 -6
  137. data/spec/rley/sppf/alternative_node_spec.rb +6 -6
  138. data/spec/rley/sppf/non_terminal_node_spec.rb +3 -3
  139. data/spec/rley/sppf/token_node_spec.rb +4 -4
  140. data/spec/rley/support/ambiguous_grammar_helper.rb +4 -5
  141. data/spec/rley/support/grammar_abc_helper.rb +3 -5
  142. data/spec/rley/support/grammar_ambig01_helper.rb +5 -6
  143. data/spec/rley/support/grammar_arr_int_helper.rb +5 -6
  144. data/spec/rley/support/grammar_b_expr_helper.rb +5 -6
  145. data/spec/rley/support/grammar_int_seq_helper.rb +51 -0
  146. data/spec/rley/support/grammar_l0_helper.rb +14 -17
  147. data/spec/rley/support/grammar_pb_helper.rb +8 -7
  148. data/spec/rley/support/grammar_sppf_helper.rb +3 -3
  149. data/spec/rley/syntax/{grammar_builder_spec.rb → base_grammar_builder_spec.rb} +35 -16
  150. data/spec/rley/syntax/grammar_spec.rb +6 -6
  151. data/spec/rley/syntax/grm_symbol_spec.rb +1 -1
  152. data/spec/rley/syntax/match_closest_spec.rb +46 -0
  153. data/spec/rley/syntax/non_terminal_spec.rb +8 -8
  154. data/spec/rley/syntax/production_spec.rb +17 -13
  155. data/spec/rley/syntax/symbol_seq_spec.rb +2 -2
  156. data/spec/rley/syntax/terminal_spec.rb +5 -5
  157. data/spec/rley/syntax/verbatim_symbol_spec.rb +1 -1
  158. data/spec/spec_helper.rb +0 -12
  159. data/spec/support/base_tokenizer_spec.rb +7 -2
  160. metadata +48 -74
  161. data/.simplecov +0 -7
  162. data/lib/rley/parser/parse_state.rb +0 -83
  163. data/lib/rley/parser/parse_state_tracker.rb +0 -59
  164. data/lib/rley/parser/state_set.rb +0 -101
  165. data/spec/rley/parser/parse_state_spec.rb +0 -125
  166. data/spec/rley/parser/parse_tracer_spec.rb +0 -200
  167. data/spec/rley/parser/state_set_spec.rb +0 -130
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 530d84f2a821ca2a7e9a62dde68b6c70107b9539ca4f50842f035691c6b9f858
4
- data.tar.gz: fee6189c812d4062ff148d206806bf9816280babce84b311066edf016406e9f7
3
+ metadata.gz: 5652efd2016050e7a40a94c279fa545a03b69b705bdcc5089a479d72c4743325
4
+ data.tar.gz: c3f46ba853632a95e3c1fbe16f0f77f8e8a07ed3acd69a82297ca13eec9b6ccc
5
5
  SHA512:
6
- metadata.gz: c58d32795908e5b570db16519ce9e3506813bee14f3cf914938625c4820dd7a138b6d1cb18991fc340cf4e6a4777e7b57c293e1c5cd47ae81fde2c884581208b
7
- data.tar.gz: 246245e61c7a2dcda26117f8d3819f85c12dffa0917a400dcff6e22fff805930b9faf4b37c09e0202753bac0f170272db5b818e78c27047bef4a13dc510f94e9
6
+ metadata.gz: 532ca6d76a277e6fd234d66ec74e9ade425a91f8ace039e0dc0636547663ac52f64613001e9c36497d5a0e0d9fe67f09eb2fff80b77d8c2f4950095e58ac3b2e
7
+ data.tar.gz: b288a0345c1696b8987b362ab99dafa4354f94ece73c5c80c87d7a28aa3c3d9ccaf0f516f29cead1707727582e917812435e4254e372aa2d62c110af7aa99a99
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