expressir 2.2.1 → 2.3.1

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 (191) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.rubocop_todo.yml +681 -78
  4. data/Gemfile +4 -1
  5. data/README.adoc +63 -26
  6. data/benchmark/srl_benchmark.rb +399 -0
  7. data/benchmark/srl_native_benchmark.rb +146 -0
  8. data/benchmark/srl_ruby_benchmark.rb +132 -0
  9. data/expressir.gemspec +3 -2
  10. data/lib/expressir/benchmark.rb +1 -1
  11. data/lib/expressir/changes/item_change.rb +0 -2
  12. data/lib/expressir/changes/mapping_change.rb +0 -2
  13. data/lib/expressir/changes/schema_change.rb +0 -3
  14. data/lib/expressir/changes/version_change.rb +0 -4
  15. data/lib/expressir/changes.rb +5 -6
  16. data/lib/expressir/cli.rb +10 -24
  17. data/lib/expressir/commands/changes.rb +0 -2
  18. data/lib/expressir/commands/changes_import_eengine.rb +2 -5
  19. data/lib/expressir/commands/changes_validate.rb +0 -2
  20. data/lib/expressir/commands/format.rb +1 -1
  21. data/lib/expressir/commands/manifest.rb +0 -7
  22. data/lib/expressir/commands/package.rb +16 -29
  23. data/lib/expressir/commands/validate.rb +0 -2
  24. data/lib/expressir/commands/validate_ascii.rb +0 -1
  25. data/lib/expressir/commands/validate_load.rb +1 -1
  26. data/lib/expressir/commands.rb +20 -0
  27. data/lib/expressir/config.rb +0 -2
  28. data/lib/expressir/coverage.rb +11 -4
  29. data/lib/expressir/eengine/arm_compare_report.rb +1 -5
  30. data/lib/expressir/eengine/changes_section.rb +1 -4
  31. data/lib/expressir/eengine/compare_report.rb +1 -13
  32. data/lib/expressir/eengine/mim_compare_report.rb +1 -5
  33. data/lib/expressir/eengine/modified_object.rb +1 -3
  34. data/lib/expressir/eengine.rb +9 -0
  35. data/lib/expressir/errors.rb +3 -5
  36. data/lib/expressir/express/builder.rb +82 -24
  37. data/lib/expressir/express/builder_registry.rb +411 -0
  38. data/lib/expressir/express/builders/attribute_decl_builder.rb +0 -6
  39. data/lib/expressir/express/builders/built_in_builder.rb +5 -18
  40. data/lib/expressir/express/builders/constant_builder.rb +4 -19
  41. data/lib/expressir/express/builders/declaration_builder.rb +0 -4
  42. data/lib/expressir/express/builders/derive_clause_builder.rb +0 -2
  43. data/lib/expressir/express/builders/derived_attr_builder.rb +0 -2
  44. data/lib/expressir/express/builders/domain_rule_builder.rb +0 -2
  45. data/lib/expressir/express/builders/entity_decl_builder.rb +11 -13
  46. data/lib/expressir/express/builders/explicit_attr_builder.rb +5 -8
  47. data/lib/expressir/express/builders/expression_builder.rb +25 -67
  48. data/lib/expressir/express/builders/function_decl_builder.rb +20 -18
  49. data/lib/expressir/express/builders/interface_builder.rb +0 -20
  50. data/lib/expressir/express/builders/inverse_attr_builder.rb +0 -2
  51. data/lib/expressir/express/builders/inverse_attr_type_builder.rb +0 -6
  52. data/lib/expressir/express/builders/inverse_clause_builder.rb +0 -2
  53. data/lib/expressir/express/builders/literal_builder.rb +1 -15
  54. data/lib/expressir/express/builders/procedure_decl_builder.rb +20 -19
  55. data/lib/expressir/express/builders/qualifier_builder.rb +0 -27
  56. data/lib/expressir/express/builders/reference_builder.rb +1 -10
  57. data/lib/expressir/express/builders/rule_decl_builder.rb +21 -19
  58. data/lib/expressir/express/builders/schema_body_decl_builder.rb +0 -4
  59. data/lib/expressir/express/builders/schema_decl_builder.rb +7 -13
  60. data/lib/expressir/express/builders/schema_version_builder.rb +0 -6
  61. data/lib/expressir/express/builders/simple_id_builder.rb +1 -10
  62. data/lib/expressir/express/builders/statement_builder.rb +4 -32
  63. data/lib/expressir/express/builders/subtype_constraint_builder.rb +6 -30
  64. data/lib/expressir/express/builders/syntax_builder.rb +18 -7
  65. data/lib/expressir/express/builders/type_builder.rb +3 -45
  66. data/lib/expressir/express/builders/type_decl_builder.rb +1 -7
  67. data/lib/expressir/express/builders/unique_clause_builder.rb +1 -3
  68. data/lib/expressir/express/builders/unique_rule_builder.rb +0 -2
  69. data/lib/expressir/express/builders/where_clause_builder.rb +1 -3
  70. data/lib/expressir/express/builders.rb +47 -35
  71. data/lib/expressir/express/error.rb +0 -3
  72. data/lib/expressir/express/formatter.rb +17 -19
  73. data/lib/expressir/express/formatters/data_types_formatter.rb +295 -293
  74. data/lib/expressir/express/formatters/declarations_formatter.rb +617 -615
  75. data/lib/expressir/express/formatters/expressions_formatter.rb +146 -144
  76. data/lib/expressir/express/formatters/literals_formatter.rb +35 -33
  77. data/lib/expressir/express/formatters/references_formatter.rb +34 -32
  78. data/lib/expressir/express/formatters/remark_formatter.rb +174 -209
  79. data/lib/expressir/express/formatters/remark_item_formatter.rb +18 -16
  80. data/lib/expressir/express/formatters/statements_formatter.rb +190 -188
  81. data/lib/expressir/express/formatters/supertype_expressions_formatter.rb +41 -39
  82. data/lib/expressir/express/formatters.rb +22 -0
  83. data/lib/expressir/express/parser.rb +266 -47
  84. data/lib/expressir/express/pretty_formatter.rb +68 -47
  85. data/lib/expressir/express/remark_attacher.rb +254 -162
  86. data/lib/expressir/express/streaming_builder.rb +0 -3
  87. data/lib/expressir/express/transformer/remark_handling.rb +1 -3
  88. data/lib/expressir/express.rb +29 -0
  89. data/lib/expressir/manifest/resolver.rb +0 -3
  90. data/lib/expressir/manifest/validator.rb +0 -3
  91. data/lib/expressir/manifest.rb +6 -0
  92. data/lib/expressir/model/cache.rb +1 -1
  93. data/lib/expressir/model/concerns.rb +19 -0
  94. data/lib/expressir/model/data_types/aggregate.rb +1 -1
  95. data/lib/expressir/model/data_types/array.rb +1 -1
  96. data/lib/expressir/model/data_types/bag.rb +1 -1
  97. data/lib/expressir/model/data_types/binary.rb +1 -1
  98. data/lib/expressir/model/data_types/boolean.rb +1 -1
  99. data/lib/expressir/model/data_types/enumeration.rb +1 -1
  100. data/lib/expressir/model/data_types/enumeration_item.rb +1 -1
  101. data/lib/expressir/model/data_types/generic.rb +1 -1
  102. data/lib/expressir/model/data_types/generic_entity.rb +1 -1
  103. data/lib/expressir/model/data_types/integer.rb +1 -1
  104. data/lib/expressir/model/data_types/list.rb +1 -1
  105. data/lib/expressir/model/data_types/logical.rb +1 -1
  106. data/lib/expressir/model/data_types/number.rb +1 -1
  107. data/lib/expressir/model/data_types/real.rb +1 -1
  108. data/lib/expressir/model/data_types/select.rb +1 -1
  109. data/lib/expressir/model/data_types/set.rb +1 -1
  110. data/lib/expressir/model/data_types/string.rb +1 -1
  111. data/lib/expressir/model/data_types.rb +25 -0
  112. data/lib/expressir/model/declarations/attribute.rb +1 -1
  113. data/lib/expressir/model/declarations/constant.rb +1 -1
  114. data/lib/expressir/model/declarations/derived_attribute.rb +1 -1
  115. data/lib/expressir/model/declarations/entity.rb +4 -1
  116. data/lib/expressir/model/declarations/function.rb +3 -1
  117. data/lib/expressir/model/declarations/informal_proposition_rule.rb +2 -1
  118. data/lib/expressir/model/declarations/interface.rb +1 -1
  119. data/lib/expressir/model/declarations/interface_item.rb +1 -1
  120. data/lib/expressir/model/declarations/interfaced_item.rb +1 -1
  121. data/lib/expressir/model/declarations/inverse_attribute.rb +1 -1
  122. data/lib/expressir/model/declarations/parameter.rb +1 -1
  123. data/lib/expressir/model/declarations/procedure.rb +3 -1
  124. data/lib/expressir/model/declarations/remark_item.rb +1 -1
  125. data/lib/expressir/model/declarations/rule.rb +4 -1
  126. data/lib/expressir/model/declarations/schema.rb +2 -1
  127. data/lib/expressir/model/declarations/schema_version.rb +1 -1
  128. data/lib/expressir/model/declarations/schema_version_item.rb +1 -1
  129. data/lib/expressir/model/declarations/subtype_constraint.rb +1 -1
  130. data/lib/expressir/model/declarations/type.rb +4 -1
  131. data/lib/expressir/model/declarations/unique_rule.rb +1 -1
  132. data/lib/expressir/model/declarations/variable.rb +1 -1
  133. data/lib/expressir/model/declarations/where_rule.rb +1 -1
  134. data/lib/expressir/model/declarations.rb +31 -0
  135. data/lib/expressir/model/dependency_resolver.rb +0 -2
  136. data/lib/expressir/model/exp_file.rb +39 -0
  137. data/lib/expressir/model/expressions/aggregate_initializer.rb +1 -1
  138. data/lib/expressir/model/expressions/aggregate_initializer_item.rb +1 -1
  139. data/lib/expressir/model/expressions/binary_expression.rb +1 -1
  140. data/lib/expressir/model/expressions/entity_constructor.rb +1 -1
  141. data/lib/expressir/model/expressions/function_call.rb +1 -1
  142. data/lib/expressir/model/expressions/interval.rb +1 -1
  143. data/lib/expressir/model/expressions/query_expression.rb +1 -1
  144. data/lib/expressir/model/expressions/unary_expression.rb +1 -1
  145. data/lib/expressir/model/expressions.rb +18 -0
  146. data/lib/expressir/model/identifier.rb +5 -1
  147. data/lib/expressir/model/indexes.rb +11 -0
  148. data/lib/expressir/model/literals/binary.rb +1 -1
  149. data/lib/expressir/model/literals/integer.rb +1 -1
  150. data/lib/expressir/model/literals/logical.rb +1 -1
  151. data/lib/expressir/model/literals/real.rb +1 -1
  152. data/lib/expressir/model/literals/string.rb +1 -1
  153. data/lib/expressir/model/literals.rb +13 -0
  154. data/lib/expressir/model/model_element.rb +7 -15
  155. data/lib/expressir/model/references/attribute_reference.rb +1 -1
  156. data/lib/expressir/model/references/group_reference.rb +1 -1
  157. data/lib/expressir/model/references/index_reference.rb +1 -1
  158. data/lib/expressir/model/references/simple_reference.rb +1 -1
  159. data/lib/expressir/model/references.rb +12 -0
  160. data/lib/expressir/model/remark_info.rb +1 -7
  161. data/lib/expressir/model/repository.rb +76 -41
  162. data/lib/expressir/model/repository_validator.rb +0 -2
  163. data/lib/expressir/model/search_engine.rb +12 -35
  164. data/lib/expressir/model/statements/alias.rb +1 -1
  165. data/lib/expressir/model/statements/assignment.rb +1 -1
  166. data/lib/expressir/model/statements/case.rb +1 -1
  167. data/lib/expressir/model/statements/case_action.rb +1 -1
  168. data/lib/expressir/model/statements/compound.rb +1 -1
  169. data/lib/expressir/model/statements/escape.rb +1 -1
  170. data/lib/expressir/model/statements/if.rb +1 -1
  171. data/lib/expressir/model/statements/null.rb +1 -1
  172. data/lib/expressir/model/statements/procedure_call.rb +1 -1
  173. data/lib/expressir/model/statements/repeat.rb +1 -1
  174. data/lib/expressir/model/statements/return.rb +1 -1
  175. data/lib/expressir/model/statements/skip.rb +1 -1
  176. data/lib/expressir/model/statements.rb +20 -0
  177. data/lib/expressir/model/supertype_expressions/binary_supertype_expression.rb +1 -1
  178. data/lib/expressir/model/supertype_expressions/oneof_supertype_expression.rb +1 -1
  179. data/lib/expressir/model/supertype_expressions.rb +12 -0
  180. data/lib/expressir/model.rb +28 -4
  181. data/lib/expressir/package/builder.rb +35 -4
  182. data/lib/expressir/package/metadata.rb +0 -2
  183. data/lib/expressir/package/reader.rb +0 -1
  184. data/lib/expressir/package.rb +8 -0
  185. data/lib/expressir/schema_manifest.rb +5 -7
  186. data/lib/expressir/schema_manifest_entry.rb +3 -5
  187. data/lib/expressir/transformer.rb +7 -0
  188. data/lib/expressir/version.rb +1 -1
  189. data/lib/expressir.rb +23 -171
  190. metadata +46 -6
  191. data/lib/expressir/express/builders/token_builder.rb +0 -15
data/.rubocop_todo.yml CHANGED
@@ -1,31 +1,359 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2026-03-12 10:28:38 UTC using RuboCop version 1.85.1.
3
+ # on 2026-03-31 03:29:04 UTC using RuboCop version 1.86.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 1
10
- Gemspec/RequiredRubyVersion:
9
+ # Offense count: 2
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
12
+ Gemspec/OrderedDependencies:
11
13
  Exclude:
12
14
  - 'expressir.gemspec'
13
15
 
16
+ # Offense count: 14
17
+ # This cop supports safe autocorrection (--autocorrect).
18
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
19
+ # SupportedStyles: with_first_argument, with_fixed_indentation
20
+ Layout/ArgumentAlignment:
21
+ Exclude:
22
+ - 'benchmark/srl_benchmark.rb'
23
+ - 'debug_simple_use_clause.rb'
24
+ - 'debug_use_clause.rb'
25
+ - 'lib/expressir/express/parser.rb'
26
+ - 'lib/expressir/express/remark_attacher.rb'
27
+ - 'spec/expressir/model/repository_validator_spec.rb'
28
+ - 'tmp_compare.rb'
29
+ - 'tmp_mem_profile.rb'
30
+
31
+ # Offense count: 4
32
+ # This cop supports safe autocorrection (--autocorrect).
33
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
34
+ # SupportedStyles: with_first_element, with_fixed_indentation
35
+ Layout/ArrayAlignment:
36
+ Exclude:
37
+ - 'benchmark/memory_profiler.rb'
38
+ - 'lib/expressir/express/parser.rb'
39
+ - 'spec/expressir/model/search_engine_advanced_spec.rb'
40
+
41
+ # Offense count: 10
42
+ # This cop supports safe autocorrection (--autocorrect).
43
+ # Configuration parameters: EnforcedStyleAlignWith.
44
+ # SupportedStylesAlignWith: start_of_line, begin
45
+ Layout/BeginEndAlignment:
46
+ Exclude:
47
+ - 'benchmark/memory_isolation_test.rb'
48
+ - 'benchmark/memory_objectspace_test.rb'
49
+ - 'tmp_compare.rb'
50
+ - 'tmp_test_no_transform.rb'
51
+
52
+ # Offense count: 22
53
+ # This cop supports safe autocorrection (--autocorrect).
54
+ # Configuration parameters: EnforcedStyleAlignWith.
55
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
56
+ Layout/BlockAlignment:
57
+ Exclude:
58
+ - 'benchmark/dense_cache_test.rb'
59
+ - 'benchmark/malloc_trim_test.rb'
60
+ - 'benchmark/memory_heap_prep.rb'
61
+ - 'benchmark/memory_isolation_test.rb'
62
+ - 'benchmark/memory_objectspace_test.rb'
63
+ - 'benchmark/quick_mem_test.rb'
64
+ - 'benchmark/srl_benchmark.rb'
65
+ - 'debug_model.rb'
66
+ - 'debug_use_clause3.rb'
67
+ - 'lib/expressir/express/builders/entity_decl_builder.rb'
68
+ - 'lib/expressir/package/builder.rb'
69
+ - 'spec/expressir/commands/package_nil_guards_spec.rb'
70
+ - 'spec/expressir/model/repository_validator_spec.rb'
71
+
72
+ # Offense count: 22
73
+ # This cop supports safe autocorrection (--autocorrect).
74
+ Layout/BlockEndNewline:
75
+ Exclude:
76
+ - 'benchmark/dense_cache_test.rb'
77
+ - 'benchmark/malloc_trim_test.rb'
78
+ - 'benchmark/memory_heap_prep.rb'
79
+ - 'benchmark/memory_isolation_test.rb'
80
+ - 'benchmark/memory_objectspace_test.rb'
81
+ - 'benchmark/quick_mem_test.rb'
82
+ - 'benchmark/srl_benchmark.rb'
83
+ - 'debug_model.rb'
84
+ - 'debug_use_clause3.rb'
85
+ - 'lib/expressir/express/builders/entity_decl_builder.rb'
86
+ - 'lib/expressir/package/builder.rb'
87
+ - 'spec/expressir/commands/package_nil_guards_spec.rb'
88
+ - 'spec/expressir/model/repository_validator_spec.rb'
89
+
90
+ # Offense count: 2
91
+ # This cop supports safe autocorrection (--autocorrect).
92
+ Layout/ClosingParenthesisIndentation:
93
+ Exclude:
94
+ - 'lib/expressir/express/parser.rb'
95
+
14
96
  # Offense count: 1
15
97
  # This cop supports safe autocorrection (--autocorrect).
98
+ # Configuration parameters: AllowForAlignment.
99
+ Layout/CommentIndentation:
100
+ Exclude:
101
+ - 'spec/expressir/model/indexes/reference_index_spec.rb'
102
+
103
+ # Offense count: 7
104
+ # This cop supports safe autocorrection (--autocorrect).
105
+ Layout/ElseAlignment:
106
+ Exclude:
107
+ - 'debug_use_clause3.rb'
108
+ - 'lib/expressir/express/builders/function_decl_builder.rb'
109
+ - 'lib/expressir/express/builders/procedure_decl_builder.rb'
110
+ - 'lib/expressir/express/builders/rule_decl_builder.rb'
111
+
112
+ # Offense count: 6
113
+ # This cop supports safe autocorrection (--autocorrect).
114
+ Layout/EmptyLineAfterGuardClause:
115
+ Exclude:
116
+ - 'lib/expressir/express/builder.rb'
117
+ - 'lib/expressir/model/repository.rb'
118
+ - 'lib/expressir/model/search_engine.rb'
119
+ - 'tmp_mem2.rb'
120
+ - 'tmp_mem_with_opt.rb'
121
+
122
+ # Offense count: 1
123
+ # This cop supports safe autocorrection (--autocorrect).
124
+ # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
125
+ Layout/EmptyLineBetweenDefs:
126
+ Exclude:
127
+ - 'lib/expressir/express/remark_attacher.rb'
128
+
129
+ # Offense count: 12
130
+ # This cop supports safe autocorrection (--autocorrect).
131
+ Layout/EmptyLines:
132
+ Exclude:
133
+ - 'lib/expressir/changes/item_change.rb'
134
+ - 'lib/expressir/changes/mapping_change.rb'
135
+ - 'lib/expressir/changes/schema_change.rb'
136
+ - 'lib/expressir/changes/version_change.rb'
137
+ - 'lib/expressir/eengine/arm_compare_report.rb'
138
+ - 'lib/expressir/eengine/changes_section.rb'
139
+ - 'lib/expressir/eengine/mim_compare_report.rb'
140
+ - 'lib/expressir/eengine/modified_object.rb'
141
+ - 'lib/expressir/express/remark_attacher.rb'
142
+ - 'lib/expressir/package/metadata.rb'
143
+ - 'lib/expressir/schema_manifest.rb'
144
+ - 'lib/expressir/schema_manifest_entry.rb'
145
+
146
+ # Offense count: 1
147
+ # This cop supports safe autocorrection (--autocorrect).
148
+ Layout/EmptyLinesAfterModuleInclusion:
149
+ Exclude:
150
+ - 'benchmark/malloc_trim_test.rb'
151
+
152
+ # Offense count: 6
153
+ # This cop supports safe autocorrection (--autocorrect).
154
+ # Configuration parameters: EnforcedStyle.
155
+ # SupportedStyles: empty_lines, no_empty_lines
156
+ Layout/EmptyLinesAroundBlockBody:
157
+ Exclude:
158
+ - 'benchmark/perf_regression.rb'
159
+ - 'benchmark/validate_load_benchmark.rb'
160
+ - 'lib/expressir/express/parser.rb'
161
+
162
+ # Offense count: 3
163
+ # This cop supports safe autocorrection (--autocorrect).
164
+ Layout/EmptyLinesAroundMethodBody:
165
+ Exclude:
166
+ - 'benchmark/srl_benchmark.rb'
167
+ - 'debug_simple_use.rb'
168
+
169
+ # Offense count: 7
170
+ # This cop supports safe autocorrection (--autocorrect).
171
+ # Configuration parameters: EnforcedStyleAlignWith.
172
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
173
+ Layout/EndAlignment:
174
+ Exclude:
175
+ - 'debug_use_clause3.rb'
176
+ - 'lib/expressir/express/builders/function_decl_builder.rb'
177
+ - 'lib/expressir/express/builders/procedure_decl_builder.rb'
178
+ - 'lib/expressir/express/builders/rule_decl_builder.rb'
179
+
180
+ # Offense count: 3
181
+ # This cop supports safe autocorrection (--autocorrect).
16
182
  # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
17
183
  Layout/ExtraSpacing:
18
184
  Exclude:
19
- - 'lib/expressir/benchmark.rb'
185
+ - 'benchmark/srl_benchmark.rb'
186
+ - 'lib/expressir/express/parser.rb'
187
+ - 'tmp_test_no_transform.rb'
188
+
189
+ # Offense count: 2
190
+ # This cop supports safe autocorrection (--autocorrect).
191
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
192
+ # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
193
+ Layout/FirstArgumentIndentation:
194
+ Exclude:
195
+ - 'lib/expressir/express/parser.rb'
196
+
197
+ # Offense count: 2
198
+ # This cop supports safe autocorrection (--autocorrect).
199
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
200
+ # SupportedStyles: special_inside_parentheses, consistent, align_brackets
201
+ Layout/FirstArrayElementIndentation:
202
+ Exclude:
203
+ - 'spec/expressir/model/repository_validator_spec.rb'
204
+
205
+ # Offense count: 21
206
+ # This cop supports safe autocorrection (--autocorrect).
207
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
208
+ # SupportedHashRocketStyles: key, separator, table
209
+ # SupportedColonStyles: key, separator, table
210
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
211
+ Layout/HashAlignment:
212
+ Exclude:
213
+ - 'benchmark/srl_benchmark.rb'
214
+ - 'benchmark/srl_native_benchmark.rb'
215
+ - 'benchmark/srl_ruby_benchmark.rb'
216
+ - 'benchmark/validate_load_benchmark.rb'
217
+ - 'lib/expressir/express/parser.rb'
218
+ - 'lib/expressir/model/exp_file.rb'
219
+ - 'spec/expressir/model/model_element_spec.rb'
20
220
 
21
- # Offense count: 990
221
+ # Offense count: 1
222
+ # This cop supports safe autocorrection (--autocorrect).
223
+ Layout/HeredocIndentation:
224
+ Exclude:
225
+ - 'debug_simple_use.rb'
226
+
227
+ # Offense count: 28
228
+ # This cop supports safe autocorrection (--autocorrect).
229
+ # Configuration parameters: EnforcedStyle.
230
+ # SupportedStyles: normal, indented_internal_methods
231
+ Layout/IndentationConsistency:
232
+ Exclude:
233
+ - 'benchmark/dense_cache_test.rb'
234
+ - 'benchmark/malloc_trim_test.rb'
235
+ - 'benchmark/memory_heap_prep.rb'
236
+ - 'benchmark/memory_isolation_test.rb'
237
+ - 'benchmark/memory_objectspace_test.rb'
238
+ - 'benchmark/quick_mem_test.rb'
239
+ - 'tmp_mem_with_opt.rb'
240
+
241
+ # Offense count: 70
242
+ # This cop supports safe autocorrection (--autocorrect).
243
+ # Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
244
+ # SupportedStylesAlignWith: start_of_line, relative_to_receiver
245
+ Layout/IndentationWidth:
246
+ Enabled: false
247
+
248
+ # Offense count: 1127
22
249
  # This cop supports safe autocorrection (--autocorrect).
23
250
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
24
251
  # URISchemes: http, https
25
252
  Layout/LineLength:
26
253
  Enabled: false
27
254
 
28
- # Offense count: 8
255
+ # Offense count: 1
256
+ # This cop supports safe autocorrection (--autocorrect).
257
+ # Configuration parameters: EnforcedStyle.
258
+ # SupportedStyles: symmetrical, new_line, same_line
259
+ Layout/MultilineArrayBraceLayout:
260
+ Exclude:
261
+ - 'spec/expressir/model/repository_validator_spec.rb'
262
+
263
+ # Offense count: 6
264
+ # This cop supports safe autocorrection (--autocorrect).
265
+ Layout/MultilineBlockLayout:
266
+ Exclude:
267
+ - 'benchmark/dense_cache_test.rb'
268
+ - 'benchmark/malloc_trim_test.rb'
269
+ - 'benchmark/memory_heap_prep.rb'
270
+ - 'benchmark/memory_isolation_test.rb'
271
+ - 'benchmark/memory_objectspace_test.rb'
272
+ - 'benchmark/quick_mem_test.rb'
273
+
274
+ # Offense count: 1
275
+ # This cop supports safe autocorrection (--autocorrect).
276
+ # Configuration parameters: EnforcedStyle.
277
+ # SupportedStyles: symmetrical, new_line, same_line
278
+ Layout/MultilineMethodCallBraceLayout:
279
+ Exclude:
280
+ - 'lib/expressir/express/parser.rb'
281
+
282
+ # Offense count: 2
283
+ # This cop supports safe autocorrection (--autocorrect).
284
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
285
+ # SupportedStyles: aligned, indented
286
+ Layout/MultilineOperationIndentation:
287
+ Exclude:
288
+ - 'benchmark/memory_objectspace_test.rb'
289
+
290
+ # Offense count: 15
291
+ # This cop supports safe autocorrection (--autocorrect).
292
+ Layout/RescueEnsureAlignment:
293
+ Exclude:
294
+ - 'benchmark/memory_isolation_test.rb'
295
+ - 'benchmark/memory_objectspace_test.rb'
296
+ - 'benchmark/perf_regression.rb'
297
+ - 'benchmark/srl_benchmark.rb'
298
+ - 'benchmark/validate_load_benchmark.rb'
299
+ - 'lib/expressir/express/parser.rb'
300
+ - 'tmp_compare.rb'
301
+ - 'tmp_test_no_transform.rb'
302
+
303
+ # Offense count: 3
304
+ # This cop supports safe autocorrection (--autocorrect).
305
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
306
+ # SupportedStylesForExponentOperator: space, no_space
307
+ # SupportedStylesForRationalLiterals: space, no_space
308
+ Layout/SpaceAroundOperators:
309
+ Exclude:
310
+ - 'benchmark/dense_cache_test.rb'
311
+ - 'benchmark/srl_benchmark.rb'
312
+ - 'tmp_compare.rb'
313
+
314
+ # Offense count: 4
315
+ # This cop supports safe autocorrection (--autocorrect).
316
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
317
+ # SupportedStyles: space, no_space, compact
318
+ # SupportedStylesForEmptyBraces: space, no_space
319
+ Layout/SpaceInsideHashLiteralBraces:
320
+ Exclude:
321
+ - 'tmp_mem_profile.rb'
322
+
323
+ # Offense count: 10
324
+ # This cop supports safe autocorrection (--autocorrect).
325
+ # Configuration parameters: EnforcedStyle.
326
+ # SupportedStyles: final_newline, final_blank_line
327
+ Layout/TrailingEmptyLines:
328
+ Exclude:
329
+ - 'benchmark/perf_regression.rb'
330
+ - 'debug_model.rb'
331
+ - 'debug_ruby_parser.rb'
332
+ - 'debug_simple_use.rb'
333
+ - 'debug_simple_use_clause.rb'
334
+ - 'debug_use_clause.rb'
335
+ - 'debug_use_clause2.rb'
336
+ - 'debug_use_clause3.rb'
337
+ - 'debug_use_clause4.rb'
338
+ - 'measure_mem.rb'
339
+
340
+ # Offense count: 49
341
+ # This cop supports safe autocorrection (--autocorrect).
342
+ # Configuration parameters: AllowInHeredoc.
343
+ Layout/TrailingWhitespace:
344
+ Enabled: false
345
+
346
+ # Offense count: 19
347
+ # This cop supports safe autocorrection (--autocorrect).
348
+ Lint/AmbiguousOperatorPrecedence:
349
+ Exclude:
350
+ - 'benchmark/malloc_trim_test.rb'
351
+ - 'benchmark/memory_isolation_test.rb'
352
+ - 'benchmark/memory_leak_detector.rb'
353
+ - 'benchmark/memory_objectspace_test.rb'
354
+ - 'benchmark/validate_load_benchmark.rb'
355
+
356
+ # Offense count: 9
29
357
  # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
30
358
  Lint/DuplicateBranch:
31
359
  Exclude:
@@ -47,6 +375,30 @@ Lint/DuplicateMethods:
47
375
  Exclude:
48
376
  - 'lib/expressir/commands/validate_ascii.rb'
49
377
 
378
+ # Offense count: 11
379
+ # This cop supports unsafe autocorrection (--autocorrect-all).
380
+ Lint/RedundantDirGlobSort:
381
+ Exclude:
382
+ - 'benchmark/malloc_trim_test.rb'
383
+ - 'benchmark/memory_heap_prep.rb'
384
+ - 'benchmark/memory_isolation_test.rb'
385
+ - 'benchmark/memory_leak_detector.rb'
386
+ - 'benchmark/memory_objectspace_test.rb'
387
+ - 'benchmark/perf_regression.rb'
388
+ - 'benchmark/quick_mem_test.rb'
389
+ - 'benchmark/srl_benchmark.rb'
390
+ - 'benchmark/srl_native_benchmark.rb'
391
+ - 'benchmark/srl_ruby_benchmark.rb'
392
+ - 'benchmark/validate_load_benchmark.rb'
393
+
394
+ # Offense count: 3
395
+ # This cop supports safe autocorrection (--autocorrect).
396
+ Lint/RedundantRequireStatement:
397
+ Exclude:
398
+ - 'lib/expressir/commands/validate_ascii.rb'
399
+ - 'lib/expressir/express/remark_attacher.rb'
400
+ - 'lib/expressir/express/transformer/remark_handling.rb'
401
+
50
402
  # Offense count: 2
51
403
  # Configuration parameters: AllowedPatterns.
52
404
  # AllowedPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
@@ -56,49 +408,82 @@ Lint/UnreachableLoop:
56
408
 
57
409
  # Offense count: 2
58
410
  # This cop supports safe autocorrection (--autocorrect).
411
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
412
+ Lint/UnusedBlockArgument:
413
+ Exclude:
414
+ - 'benchmark/memory_heap_prep.rb'
415
+ - 'benchmark/memory_profiler.rb'
416
+
417
+ # Offense count: 4
418
+ # This cop supports safe autocorrection (--autocorrect).
59
419
  # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
60
420
  # NotImplementedExceptions: NotImplementedError
61
421
  Lint/UnusedMethodArgument:
62
422
  Exclude:
423
+ - 'benchmark/srl_benchmark.rb'
63
424
  - 'lib/expressir/express/cache.rb'
64
425
  - 'lib/expressir/express/parser.rb'
65
426
 
66
- # Offense count: 227
427
+ # Offense count: 12
428
+ # This cop supports safe autocorrection (--autocorrect).
429
+ Lint/UselessAssignment:
430
+ Exclude:
431
+ - 'benchmark/dense_cache_test.rb'
432
+ - 'benchmark/memory_isolation_test.rb'
433
+ - 'benchmark/memory_leak_detector.rb'
434
+ - 'benchmark/memory_profiler.rb'
435
+ - 'benchmark/perf_regression.rb'
436
+ - 'benchmark/srl_benchmark.rb'
437
+ - 'spec/expressir/express/pretty_formatter_spec.rb'
438
+ - 'spec/expressir/model/indexes/type_index_spec.rb'
439
+ - 'tmp_mem2.rb'
440
+ - 'tmp_mem_profile.rb'
441
+ - 'tmp_mem_with_opt.rb'
442
+
443
+ # Offense count: 244
67
444
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
68
445
  Metrics/AbcSize:
69
446
  Enabled: false
70
447
 
71
- # Offense count: 8
448
+ # Offense count: 11
72
449
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
73
450
  # AllowedMethods: refine
74
451
  Metrics/BlockLength:
75
- Max: 98
452
+ Max: 106
76
453
 
77
454
  # Offense count: 14
78
455
  # Configuration parameters: CountBlocks, CountModifierForms.
79
456
  Metrics/BlockNesting:
80
457
  Max: 6
81
458
 
82
- # Offense count: 189
459
+ # Offense count: 198
83
460
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
84
461
  Metrics/CyclomaticComplexity:
85
462
  Enabled: false
86
463
 
87
- # Offense count: 276
464
+ # Offense count: 291
88
465
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
89
466
  Metrics/MethodLength:
90
- Max: 170
467
+ Max: 167
91
468
 
92
469
  # Offense count: 6
93
470
  # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
94
471
  Metrics/ParameterLists:
95
472
  Max: 8
96
473
 
97
- # Offense count: 162
474
+ # Offense count: 171
98
475
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
99
476
  Metrics/PerceivedComplexity:
100
477
  Enabled: false
101
478
 
479
+ # Offense count: 4
480
+ # This cop supports safe autocorrection (--autocorrect).
481
+ # Configuration parameters: EnforcedStyle, BlockForwardingName.
482
+ # SupportedStyles: anonymous, explicit
483
+ Naming/BlockForwarding:
484
+ Exclude:
485
+ - 'lib/expressir/model/repository.rb'
486
+
102
487
  # Offense count: 4
103
488
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
104
489
  # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
@@ -125,17 +510,21 @@ Naming/VariableNumber:
125
510
  - 'spec/expressir/commands/validate_ascii_spec.rb'
126
511
  - 'spec/expressir/express/pretty_formatter_spec.rb'
127
512
 
128
- # Offense count: 2
513
+ # Offense count: 6
129
514
  # Configuration parameters: MinSize.
130
515
  Performance/CollectionLiteralInLoop:
131
516
  Exclude:
517
+ - 'benchmark/memory_profiler.rb'
518
+ - 'lib/expressir/express/parser.rb'
519
+ - 'lib/expressir/express/remark_attacher.rb'
132
520
  - 'lib/expressir/express/streaming_builder.rb'
133
521
 
134
- # Offense count: 5
522
+ # Offense count: 8
135
523
  Performance/FixedSize:
136
524
  Exclude:
137
525
  - 'lib/expressir/express/formatters/data_types_formatter.rb'
138
526
  - 'lib/expressir/express/formatters/declarations_formatter.rb'
527
+ - 'lib/expressir/express/parser.rb'
139
528
 
140
529
  # Offense count: 6
141
530
  Performance/MapMethodChain:
@@ -180,12 +569,21 @@ RSpec/DescribeMethod:
180
569
  - 'spec/expressir/model/repository_statistics_spec.rb'
181
570
  - 'spec/expressir/model/search_engine_advanced_spec.rb'
182
571
 
183
- # Offense count: 465
572
+ # Offense count: 2
573
+ # This cop supports unsafe autocorrection (--autocorrect-all).
574
+ # Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
575
+ # SupportedStyles: described_class, explicit
576
+ RSpec/DescribedClass:
577
+ Exclude:
578
+ - 'spec/expressir/model/model_element_spec.rb'
579
+ - 'spec/expressir/model/repository_spec.rb'
580
+
581
+ # Offense count: 452
184
582
  # Configuration parameters: CountAsOne.
185
583
  RSpec/ExampleLength:
186
- Max: 123
584
+ Max: 122
187
585
 
188
- # Offense count: 51
586
+ # Offense count: 44
189
587
  # Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
190
588
  RSpec/IndexedLet:
191
589
  Exclude:
@@ -215,57 +613,36 @@ RSpec/IteratedExpectation:
215
613
  Exclude:
216
614
  - 'spec/expressir/model/search_engine_advanced_spec.rb'
217
615
 
218
- # Offense count: 2
219
- # Configuration parameters: EnforcedStyle.
616
+ # Offense count: 1
617
+ # Configuration parameters: .
220
618
  # SupportedStyles: have_received, receive
221
619
  RSpec/MessageSpies:
222
- Exclude:
223
- - 'spec/expressir/model/repository_validator_spec.rb'
224
- - 'spec/expressir/model/search_engine_spec.rb'
620
+ EnforcedStyle: receive
225
621
 
226
- # Offense count: 580
622
+ # Offense count: 582
227
623
  RSpec/MultipleExpectations:
228
624
  Max: 114
229
625
 
230
- # Offense count: 117
626
+ # Offense count: 111
231
627
  # Configuration parameters: AllowSubject.
232
628
  RSpec/MultipleMemoizedHelpers:
233
- Max: 19
629
+ Max: 18
234
630
 
235
631
  # Offense count: 5
236
632
  # Configuration parameters: AllowedGroups.
237
633
  RSpec/NestedGroups:
238
634
  Max: 4
239
635
 
240
- # Offense count: 35
241
- # This cop supports unsafe autocorrection (--autocorrect-all).
242
- RSpec/Output:
243
- Exclude:
244
- - 'spec/acceptance/version_spec.rb'
245
- - 'spec/expressir/express/cache_spec.rb'
246
- - 'spec/expressir/express/formatter_spec.rb'
247
- - 'spec/expressir/express/parser_spec.rb'
248
- - 'spec/expressir/model/model_element_spec.rb'
249
- - 'spec/spec_helper.rb'
250
-
251
- # Offense count: 28
252
- # This cop supports unsafe autocorrection (--autocorrect-all).
253
- RSpec/ReceiveMessages:
254
- Exclude:
255
- - 'spec/expressir/model/search_engine_advanced_spec.rb'
256
-
257
636
  # Offense count: 1
258
637
  RSpec/RemoveConst:
259
638
  Exclude:
260
639
  - 'spec/expressir/commands/package_nil_scenarios_spec.rb'
261
640
 
262
- # Offense count: 20
641
+ # Offense count: 12
263
642
  RSpec/RepeatedExample:
264
643
  Exclude:
265
644
  - 'spec/expressir/commands/package_fixtures_spec.rb'
266
645
  - 'spec/expressir/model/data_types/logical_spec.rb'
267
- - 'spec/expressir/model/indexes/entity_index_spec.rb'
268
- - 'spec/expressir/model/indexes/type_index_spec.rb'
269
646
  - 'spec/expressir/model/interface_validator_spec.rb'
270
647
 
271
648
  # Offense count: 7
@@ -282,20 +659,52 @@ RSpec/SpecFilePathFormat:
282
659
  - 'spec/expressir/model/repository_statistics_spec.rb'
283
660
  - 'spec/expressir/model/search_engine_advanced_spec.rb'
284
661
 
285
- # Offense count: 48
286
- # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
287
- RSpec/VerifiedDoubles:
288
- Exclude:
289
- - 'spec/expressir/commands/package_nil_guards_spec.rb'
290
- - 'spec/expressir/commands/package_nil_scenarios_spec.rb'
291
- - 'spec/expressir/express/pretty_formatter_spec.rb'
292
- - 'spec/expressir/model/search_engine_advanced_spec.rb'
293
-
294
662
  # Offense count: 4
295
663
  Security/MarshalLoad:
296
664
  Exclude:
297
665
  - 'lib/expressir/package/reader.rb'
298
666
 
667
+ # Offense count: 16
668
+ # This cop supports safe autocorrection (--autocorrect).
669
+ # Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
670
+ # RedundantRestArgumentNames: args, arguments
671
+ # RedundantKeywordRestArgumentNames: kwargs, options, opts
672
+ # RedundantBlockArgumentNames: blk, block, proc
673
+ Style/ArgumentsForwarding:
674
+ Exclude:
675
+ - 'lib/expressir/commands/changes_import_eengine.rb'
676
+ - 'lib/expressir/model/repository.rb'
677
+ - 'lib/expressir/model/search_engine.rb'
678
+
679
+ # Offense count: 31
680
+ # This cop supports safe autocorrection (--autocorrect).
681
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
682
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
683
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
684
+ # FunctionalMethods: let, let!, subject, watch
685
+ # AllowedMethods: lambda, proc, it
686
+ Style/BlockDelimiters:
687
+ Exclude:
688
+ - 'benchmark/dense_cache_test.rb'
689
+ - 'benchmark/malloc_trim_test.rb'
690
+ - 'benchmark/memory_heap_prep.rb'
691
+ - 'benchmark/memory_isolation_test.rb'
692
+ - 'benchmark/memory_objectspace_test.rb'
693
+ - 'benchmark/quick_mem_test.rb'
694
+ - 'benchmark/srl_benchmark.rb'
695
+ - 'debug_model.rb'
696
+ - 'debug_use_clause3.rb'
697
+ - 'lib/expressir/express/builders/entity_decl_builder.rb'
698
+ - 'lib/expressir/package/builder.rb'
699
+ - 'spec/expressir/commands/package_nil_guards_spec.rb'
700
+ - 'spec/expressir/model/repository_validator_spec.rb'
701
+
702
+ # Offense count: 2
703
+ # This cop supports unsafe autocorrection (--autocorrect-all).
704
+ Style/ConcatArrayLiterals:
705
+ Exclude:
706
+ - 'lib/expressir/express/builders/entity_decl_builder.rb'
707
+
299
708
  # Offense count: 1
300
709
  # This cop supports safe autocorrection (--autocorrect).
301
710
  # Configuration parameters: EnforcedStyle, AllowComments.
@@ -304,7 +713,15 @@ Style/EmptyElse:
304
713
  Exclude:
305
714
  - 'lib/expressir/commands/changes_validate.rb'
306
715
 
307
- # Offense count: 4
716
+ # Offense count: 1
717
+ # This cop supports safe autocorrection (--autocorrect).
718
+ # Configuration parameters: EnforcedStyle.
719
+ # SupportedStyles: trailing_conditional, ternary
720
+ Style/EmptyStringInsideInterpolation:
721
+ Exclude:
722
+ - 'benchmark/perf_regression.rb'
723
+
724
+ # Offense count: 40
308
725
  # This cop supports safe autocorrection (--autocorrect).
309
726
  # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
310
727
  # SupportedStyles: annotated, template, unannotated
@@ -317,50 +734,236 @@ Style/HashLikeCase:
317
734
  Exclude:
318
735
  - 'lib/expressir/express/remark_attacher.rb'
319
736
 
737
+ # Offense count: 1
738
+ Style/MixinUsage:
739
+ Exclude:
740
+ - 'benchmark/srl_benchmark.rb'
741
+
320
742
  # Offense count: 2
743
+ # This cop supports safe autocorrection (--autocorrect).
744
+ Style/MultilineIfModifier:
745
+ Exclude:
746
+ - 'tmp_compare.rb'
747
+
748
+ # Offense count: 1
749
+ # This cop supports safe autocorrection (--autocorrect).
750
+ Style/MultilineTernaryOperator:
751
+ Exclude:
752
+ - 'debug_use_clause3.rb'
753
+
754
+ # Offense count: 3
755
+ # This cop supports safe autocorrection (--autocorrect).
756
+ # Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
757
+ Style/MultipleComparison:
758
+ Exclude:
759
+ - 'benchmark/memory_profiler.rb'
760
+ - 'lib/expressir/express/parser.rb'
761
+
762
+ # Offense count: 1
321
763
  # This cop supports unsafe autocorrection (--autocorrect-all).
322
- Style/PartitionInsteadOfDoubleSelect:
764
+ # Configuration parameters: EnforcedStyle.
765
+ # SupportedStyles: literals, strict
766
+ Style/MutableConstant:
323
767
  Exclude:
324
- - 'lib/expressir/express/transformer/remark_handling.rb'
325
- - 'spec/expressir/model/search_engine_advanced_spec.rb'
768
+ - 'benchmark/perf_regression.rb'
326
769
 
327
- # Offense count: 2
770
+ # Offense count: 19
771
+ # This cop supports unsafe autocorrection (--autocorrect-all).
772
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
773
+ # SupportedStyles: predicate, comparison
774
+ Style/NumericPredicate:
775
+ Exclude:
776
+ - 'spec/**/*'
777
+ - 'benchmark/memory_leak_detector.rb'
778
+ - 'benchmark/memory_objectspace_test.rb'
779
+ - 'benchmark/memory_profiler.rb'
780
+ - 'benchmark/perf_regression.rb'
781
+ - 'benchmark/srl_benchmark.rb'
782
+ - 'benchmark/srl_native_benchmark.rb'
783
+ - 'benchmark/srl_ruby_benchmark.rb'
784
+ - 'benchmark/validate_load_benchmark.rb'
785
+ - 'lib/expressir/express/parser.rb'
786
+ - 'tmp_compare.rb'
787
+
788
+ # Offense count: 3
789
+ # Configuration parameters: AllowedClasses.
790
+ Style/OneClassPerFile:
791
+ Exclude:
792
+ - 'benchmark/srl_benchmark.rb'
793
+
794
+ # Offense count: 1
795
+ # This cop supports safe autocorrection (--autocorrect).
796
+ Style/RedundantAssignment:
797
+ Exclude:
798
+ - 'debug_simple_use.rb'
799
+
800
+ # Offense count: 4
801
+ # This cop supports safe autocorrection (--autocorrect).
802
+ Style/RedundantBegin:
803
+ Exclude:
804
+ - 'benchmark/perf_regression.rb'
805
+ - 'benchmark/srl_benchmark.rb'
806
+ - 'benchmark/validate_load_benchmark.rb'
807
+ - 'lib/expressir/express/parser.rb'
808
+
809
+ # Offense count: 6
328
810
  # This cop supports safe autocorrection (--autocorrect).
329
811
  Style/RedundantParentheses:
330
812
  Exclude:
813
+ - 'benchmark/srl_benchmark.rb'
814
+ - 'benchmark/srl_native_benchmark.rb'
815
+ - 'benchmark/srl_ruby_benchmark.rb'
816
+ - 'benchmark/validate_load_benchmark.rb'
331
817
  - 'lib/expressir/express/parser.rb'
332
818
 
333
- # Offense count: 33
819
+ # Offense count: 2
820
+ # This cop supports safe autocorrection (--autocorrect).
821
+ Style/RedundantStringEscape:
822
+ Exclude:
823
+ - 'benchmark/srl_benchmark.rb'
824
+
825
+ # Offense count: 9
826
+ # This cop supports safe autocorrection (--autocorrect).
827
+ Style/RescueModifier:
828
+ Exclude:
829
+ - 'benchmark/memory_isolation_test.rb'
830
+ - 'benchmark/memory_objectspace_test.rb'
831
+ - 'benchmark/srl_benchmark.rb'
832
+ - 'tmp_compare.rb'
833
+ - 'tmp_test_no_transform.rb'
834
+
835
+ # Offense count: 32
836
+ # This cop supports safe autocorrection (--autocorrect).
837
+ # Configuration parameters: EnforcedStyle.
838
+ # SupportedStyles: implicit, explicit
839
+ Style/RescueStandardError:
840
+ Exclude:
841
+ - 'benchmark/memory_isolation_test.rb'
842
+ - 'benchmark/memory_leak_detector.rb'
843
+ - 'benchmark/memory_objectspace_test.rb'
844
+ - 'benchmark/perf_regression.rb'
845
+ - 'benchmark/srl_benchmark.rb'
846
+ - 'benchmark/srl_native_benchmark.rb'
847
+ - 'benchmark/srl_ruby_benchmark.rb'
848
+ - 'benchmark/validate_load_benchmark.rb'
849
+ - 'tmp_compare.rb'
850
+ - 'tmp_mem2.rb'
851
+ - 'tmp_mem_with_opt.rb'
852
+ - 'tmp_test_no_transform.rb'
853
+
854
+ # Offense count: 1
855
+ # This cop supports unsafe autocorrection (--autocorrect-all).
856
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
857
+ # AllowedMethods: present?, blank?, presence, try, try!
858
+ Style/SafeNavigation:
859
+ Exclude:
860
+ - 'lib/expressir/model/repository.rb'
861
+
862
+ # Offense count: 6
334
863
  # This cop supports unsafe autocorrection (--autocorrect-all).
335
864
  Style/SelectByKind:
336
865
  Exclude:
337
- - 'lib/expressir/express/builders/function_decl_builder.rb'
338
- - 'lib/expressir/express/builders/procedure_decl_builder.rb'
339
- - 'lib/expressir/express/builders/rule_decl_builder.rb'
340
- - 'lib/expressir/express/builders/schema_decl_builder.rb'
341
- - 'lib/expressir/model/search_engine.rb'
342
- - 'spec/expressir/coverage_spec.rb'
343
- - 'spec/expressir/model/declarations/schema_spec.rb'
866
+ - 'debug_model.rb'
867
+ - 'lib/expressir/express/formatters/remark_formatter.rb'
868
+ - 'lib/expressir/model/model_element.rb'
344
869
 
345
- # Offense count: 1
870
+ # Offense count: 10
346
871
  # This cop supports safe autocorrection (--autocorrect).
347
- # Configuration parameters: AllowModifier.
348
- Style/SoleNestedConditional:
872
+ # Configuration parameters: AllowAsExpressionSeparator.
873
+ Style/Semicolon:
874
+ Exclude:
875
+ - 'benchmark/dense_cache_test.rb'
876
+ - 'benchmark/malloc_trim_test.rb'
877
+ - 'benchmark/memory_heap_prep.rb'
878
+ - 'benchmark/memory_isolation_test.rb'
879
+ - 'benchmark/memory_objectspace_test.rb'
880
+ - 'benchmark/quick_mem_test.rb'
881
+ - 'tmp_mem_with_opt.rb'
882
+
883
+ # Offense count: 27
884
+ # This cop supports unsafe autocorrection (--autocorrect-all).
885
+ # Configuration parameters: Mode.
886
+ Style/StringConcatenation:
349
887
  Exclude:
350
- - 'lib/expressir/model/search_engine.rb'
888
+ - 'benchmark/malloc_trim_test.rb'
889
+ - 'benchmark/memory_isolation_test.rb'
890
+ - 'benchmark/memory_leak_detector.rb'
891
+ - 'benchmark/memory_objectspace_test.rb'
892
+ - 'benchmark/validate_load_benchmark.rb'
893
+
894
+ # Offense count: 128
895
+ # This cop supports safe autocorrection (--autocorrect).
896
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
897
+ # SupportedStyles: single_quotes, double_quotes
898
+ Style/StringLiterals:
899
+ Exclude:
900
+ - 'benchmark/dense_cache_test.rb'
901
+ - 'benchmark/malloc_trim_test.rb'
902
+ - 'benchmark/memory_heap_prep.rb'
903
+ - 'benchmark/memory_isolation_test.rb'
904
+ - 'benchmark/memory_leak_detector.rb'
905
+ - 'benchmark/memory_objectspace_test.rb'
906
+ - 'benchmark/memory_profiler.rb'
907
+ - 'benchmark/perf_regression.rb'
908
+ - 'benchmark/quick_mem_test.rb'
909
+ - 'benchmark/srl_benchmark.rb'
910
+ - 'benchmark/srl_native_benchmark.rb'
911
+ - 'benchmark/srl_ruby_benchmark.rb'
912
+ - 'benchmark/validate_load_benchmark.rb'
913
+ - 'lib/expressir/express/parser.rb'
914
+
915
+ # Offense count: 14
916
+ # This cop supports safe autocorrection (--autocorrect).
917
+ # Configuration parameters: EnforcedStyle.
918
+ # SupportedStyles: single_quotes, double_quotes
919
+ Style/StringLiteralsInInterpolation:
920
+ Exclude:
921
+ - 'benchmark/malloc_trim_test.rb'
922
+ - 'benchmark/memory_isolation_test.rb'
923
+ - 'benchmark/memory_leak_detector.rb'
924
+ - 'benchmark/memory_objectspace_test.rb'
925
+ - 'benchmark/validate_load_benchmark.rb'
351
926
 
352
927
  # Offense count: 1
353
928
  # This cop supports safe autocorrection (--autocorrect).
354
- Style/SuperArguments:
929
+ # Configuration parameters: .
930
+ # SupportedStyles: percent, brackets
931
+ Style/SymbolArray:
932
+ EnforcedStyle: percent
933
+ MinSize: 5
934
+
935
+ # Offense count: 2
936
+ # This cop supports unsafe autocorrection (--autocorrect-all).
937
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
938
+ # AllowedMethods: define_method
939
+ Style/SymbolProc:
355
940
  Exclude:
356
- - 'lib/expressir/errors.rb'
941
+ - 'debug_model.rb'
357
942
 
358
- # Offense count: 18
943
+ # Offense count: 3
359
944
  # This cop supports safe autocorrection (--autocorrect).
360
945
  # Configuration parameters: EnforcedStyleForMultiline.
361
946
  # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
362
947
  Style/TrailingCommaInArguments:
363
948
  Exclude:
364
- - 'lib/expressir/commands/format.rb'
365
- - 'lib/expressir/commands/package.rb'
366
- - 'lib/expressir/commands/validate_load.rb'
949
+ - 'benchmark/srl_benchmark.rb'
950
+ - 'spec/expressir/express/pretty_formatter_spec.rb'
951
+
952
+ # Offense count: 3
953
+ # This cop supports safe autocorrection (--autocorrect).
954
+ # Configuration parameters: EnforcedStyleForMultiline.
955
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
956
+ Style/TrailingCommaInArrayLiteral:
957
+ Exclude:
958
+ - 'benchmark/memory_objectspace_test.rb'
959
+ - 'tmp_mem2.rb'
960
+
961
+ # Offense count: 5
962
+ # This cop supports safe autocorrection (--autocorrect).
963
+ # Configuration parameters: EnforcedStyleForMultiline.
964
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
965
+ Style/TrailingCommaInHashLiteral:
966
+ Exclude:
967
+ - 'benchmark/perf_regression.rb'
968
+ - 'benchmark/validate_load_benchmark.rb'
969
+ - 'lib/expressir/express/parser.rb'