rley 0.7.07 → 0.8.02

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