xseed 1.0.0

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 (41) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/rake.yml +16 -0
  3. data/.github/workflows/release.yml +25 -0
  4. data/.gitignore +72 -0
  5. data/.rspec +3 -0
  6. data/.rubocop.yml +11 -0
  7. data/.rubocop_todo.yml +432 -0
  8. data/CHANGELOG.adoc +446 -0
  9. data/Gemfile +21 -0
  10. data/LICENSE.adoc +29 -0
  11. data/README.adoc +386 -0
  12. data/Rakefile +11 -0
  13. data/examples/README.adoc +334 -0
  14. data/examples/advanced_usage.rb +286 -0
  15. data/examples/html_generation.rb +167 -0
  16. data/examples/parser_usage.rb +102 -0
  17. data/examples/schemas/person.xsd +171 -0
  18. data/examples/simple_generation.rb +149 -0
  19. data/exe/xseed +6 -0
  20. data/lib/xseed/cli.rb +376 -0
  21. data/lib/xseed/documentation/config.rb +101 -0
  22. data/lib/xseed/documentation/constants.rb +76 -0
  23. data/lib/xseed/documentation/generators/hierarchy_table_generator.rb +554 -0
  24. data/lib/xseed/documentation/generators/instance_sample_generator.rb +723 -0
  25. data/lib/xseed/documentation/generators/properties_table_generator.rb +983 -0
  26. data/lib/xseed/documentation/html_generator.rb +836 -0
  27. data/lib/xseed/documentation/html_generator.rb.bak +723 -0
  28. data/lib/xseed/documentation/presentation/css_generator.rb +510 -0
  29. data/lib/xseed/documentation/presentation/javascript_generator.rb +151 -0
  30. data/lib/xseed/documentation/presentation/navigation_builder.rb +169 -0
  31. data/lib/xseed/documentation/schema_loader.rb +121 -0
  32. data/lib/xseed/documentation/utils/helpers.rb +205 -0
  33. data/lib/xseed/documentation/utils/namespaces.rb +149 -0
  34. data/lib/xseed/documentation/utils/references.rb +135 -0
  35. data/lib/xseed/documentation/utils/strings.rb +75 -0
  36. data/lib/xseed/models/element_declaration.rb +144 -0
  37. data/lib/xseed/parser/xsd_parser.rb +192 -0
  38. data/lib/xseed/version.rb +5 -0
  39. data/lib/xseed.rb +76 -0
  40. data/xseed.gemspec +39 -0
  41. metadata +158 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f6c2e0db62a6b48dacc78418921a44b73c64ef54254add4aabe1740213d325af
4
+ data.tar.gz: 6bc326ef4f09b18ab10327405f545da0f37c048905e1f82ffb1db3877cfe21de
5
+ SHA512:
6
+ metadata.gz: c54a36cb15f6fee52de817eb2048867a5825c1e6368c47e8c1ed50b90306ba2f135e89fad28179fb34edca56fce32164a6fd46501230eee82fac5e02ba45254c
7
+ data.tar.gz: 2741d0adbe469e3dc56620df5ee95a1adf334e5b8fbd0a5f9d2774d603c0d0a5392e561c04288574b2e715230c84611579bf956ae3e9830bd2177a4b0515102e
@@ -0,0 +1,16 @@
1
+ name: rake
2
+
3
+ permissions:
4
+ contents: write
5
+
6
+ on:
7
+ push:
8
+ branches: [main]
9
+ tags: [v*]
10
+ pull_request:
11
+
12
+ jobs:
13
+ rake:
14
+ uses: metanorma/ci/.github/workflows/generic-rake.yml@main
15
+ secrets:
16
+ pat_token: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,25 @@
1
+ name: release
2
+
3
+ permissions:
4
+ contents: write
5
+ packages: write
6
+
7
+ on:
8
+ workflow_dispatch:
9
+ inputs:
10
+ next_version:
11
+ description: |
12
+ Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
13
+ required: true
14
+ default: "skip"
15
+ repository_dispatch:
16
+ types: [do-release]
17
+
18
+ jobs:
19
+ release:
20
+ uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
21
+ with:
22
+ next_version: ${{ github.event.inputs.next_version }}
23
+ secrets:
24
+ rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
25
+ pat_token: ${{ secrets.GITHUB_TOKEN }}
data/.gitignore ADDED
@@ -0,0 +1,72 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ # Ignore Byebug command history file.
17
+ .byebug_history
18
+
19
+ ## Specific to RubyMotion:
20
+ .dat*
21
+ .repl_history
22
+ build/
23
+ *.bridgesupport
24
+ build-iPhoneOS/
25
+ build-iPhoneSimulator/
26
+
27
+ ## Specific to RubyMotion (use of CocoaPods):
28
+ #
29
+ # We recommend against adding the Pods directory to your .gitignore. However
30
+ # you should judge for yourself, the pros and cons are mentioned at:
31
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
+ #
33
+ # vendor/Pods/
34
+
35
+ ## Documentation cache and generated files:
36
+ /.yardoc/
37
+ /_yardoc/
38
+ /doc/
39
+ /rdoc/
40
+
41
+ ## Environment normalization:
42
+ /.bundle/
43
+ /vendor/bundle
44
+ /lib/bundler/man/
45
+
46
+ # for a library or gem, you might want to ignore these files since the code is
47
+ # intended to run in multiple environments; otherwise, check them in:
48
+ Gemfile.lock
49
+ .ruby-version
50
+ .ruby-gemset
51
+
52
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
+ .rvmrc
54
+
55
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
+ .rubocop-https*
57
+
58
+ # Operating system files
59
+ .DS_Store
60
+ .DS_Store?
61
+ ._*
62
+ .Spotlight-V100
63
+ .Trashes
64
+ ehthumbs.db
65
+ Thumbs.db
66
+
67
+ # IDE files
68
+ .vscode/
69
+ .idea/
70
+ *.swp
71
+ *.swo
72
+ *~
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --require spec_helper
2
+ --color
3
+ --format documentation
data/.rubocop.yml ADDED
@@ -0,0 +1,11 @@
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
+ inherit_from:
4
+ - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
5
+ - .rubocop_todo.yml
6
+
7
+ # local repo-specific modifications
8
+ # ...
9
+
10
+ AllCops:
11
+ NewCops: enable
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,432 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2025-11-20 10:08:13 UTC using RuboCop version 1.81.7.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: Severity.
11
+ Gemspec/RequiredRubyVersion:
12
+ Exclude:
13
+ - 'xseed.gemspec'
14
+
15
+ # Offense count: 46
16
+ # This cop supports safe autocorrection (--autocorrect).
17
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
18
+ # SupportedStyles: with_first_argument, with_fixed_indentation
19
+ Layout/ArgumentAlignment:
20
+ Exclude:
21
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
22
+ - 'lib/xseed/documentation/html_generator.rb'
23
+
24
+ # Offense count: 1
25
+ # This cop supports safe autocorrection (--autocorrect).
26
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
27
+ # SupportedStyles: with_first_element, with_fixed_indentation
28
+ Layout/ArrayAlignment:
29
+ Exclude:
30
+ - 'lib/xseed/documentation/html_generator.rb'
31
+
32
+ # Offense count: 11
33
+ # This cop supports safe autocorrection (--autocorrect).
34
+ # Configuration parameters: EnforcedStyleAlignWith.
35
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
36
+ Layout/BlockAlignment:
37
+ Exclude:
38
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
39
+ - 'lib/xseed/documentation/html_generator.rb'
40
+ - 'spec/integration/documentation/content_generation_integration_spec.rb'
41
+ - 'spec/support/parity_helpers.rb'
42
+
43
+ # Offense count: 10
44
+ # This cop supports safe autocorrection (--autocorrect).
45
+ Layout/BlockEndNewline:
46
+ Exclude:
47
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
48
+ - 'lib/xseed/documentation/html_generator.rb'
49
+ - 'spec/integration/documentation/content_generation_integration_spec.rb'
50
+ - 'spec/support/parity_helpers.rb'
51
+
52
+ # Offense count: 3
53
+ # This cop supports safe autocorrection (--autocorrect).
54
+ # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
55
+ # SupportedStyles: case, end
56
+ Layout/CaseIndentation:
57
+ Exclude:
58
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
59
+
60
+ # Offense count: 2
61
+ # This cop supports safe autocorrection (--autocorrect).
62
+ Layout/ClosingParenthesisIndentation:
63
+ Exclude:
64
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
65
+
66
+ # Offense count: 1
67
+ # This cop supports safe autocorrection (--autocorrect).
68
+ # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
69
+ Layout/EmptyLineBetweenDefs:
70
+ Exclude:
71
+ - 'lib/xseed/documentation/html_generator.rb'
72
+
73
+ # Offense count: 1
74
+ # This cop supports safe autocorrection (--autocorrect).
75
+ Layout/EmptyLines:
76
+ Exclude:
77
+ - 'lib/xseed/documentation/html_generator.rb'
78
+
79
+ # Offense count: 1
80
+ # This cop supports safe autocorrection (--autocorrect).
81
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
82
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
83
+ Layout/EndAlignment:
84
+ Exclude:
85
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
86
+
87
+ # Offense count: 1
88
+ # This cop supports safe autocorrection (--autocorrect).
89
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
90
+ Layout/ExtraSpacing:
91
+ Exclude:
92
+ - 'spec/integration/documentation/content_generation_integration_spec.rb'
93
+
94
+ # Offense count: 2
95
+ # This cop supports safe autocorrection (--autocorrect).
96
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
97
+ # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
98
+ Layout/FirstArgumentIndentation:
99
+ Exclude:
100
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
101
+
102
+ # Offense count: 26
103
+ # This cop supports safe autocorrection (--autocorrect).
104
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
105
+ # SupportedHashRocketStyles: key, separator, table
106
+ # SupportedColonStyles: key, separator, table
107
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
108
+ Layout/HashAlignment:
109
+ Exclude:
110
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
111
+ - 'lib/xseed/documentation/html_generator.rb'
112
+
113
+ # Offense count: 4
114
+ # This cop supports safe autocorrection (--autocorrect).
115
+ # Configuration parameters: EnforcedStyle.
116
+ # SupportedStyles: normal, indented_internal_methods
117
+ Layout/IndentationConsistency:
118
+ Exclude:
119
+ - 'spec/support/parity_helpers.rb'
120
+
121
+ # Offense count: 21
122
+ # This cop supports safe autocorrection (--autocorrect).
123
+ # Configuration parameters: Width, AllowedPatterns.
124
+ Layout/IndentationWidth:
125
+ Exclude:
126
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
127
+ - 'lib/xseed/documentation/html_generator.rb'
128
+ - 'spec/integration/documentation/content_generation_integration_spec.rb'
129
+ - 'spec/support/parity_helpers.rb'
130
+
131
+ # Offense count: 6
132
+ # This cop supports safe autocorrection (--autocorrect).
133
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
134
+ # SupportedStyles: aligned, indented
135
+ Layout/LineEndStringConcatenationIndentation:
136
+ Exclude:
137
+ - 'lib/xseed/documentation/html_generator.rb'
138
+
139
+ # Offense count: 148
140
+ # This cop supports safe autocorrection (--autocorrect).
141
+ # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
142
+ # URISchemes: http, https
143
+ Layout/LineLength:
144
+ Enabled: false
145
+
146
+ # Offense count: 1
147
+ # This cop supports safe autocorrection (--autocorrect).
148
+ Layout/MultilineBlockLayout:
149
+ Exclude:
150
+ - 'spec/support/parity_helpers.rb'
151
+
152
+ # Offense count: 2
153
+ # This cop supports safe autocorrection (--autocorrect).
154
+ # Configuration parameters: EnforcedStyle.
155
+ # SupportedStyles: symmetrical, new_line, same_line
156
+ Layout/MultilineMethodCallBraceLayout:
157
+ Exclude:
158
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
159
+
160
+ # Offense count: 4
161
+ # This cop supports safe autocorrection (--autocorrect).
162
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
163
+ # SupportedStyles: aligned, indented, indented_relative_to_receiver
164
+ Layout/MultilineMethodCallIndentation:
165
+ Exclude:
166
+ - 'lib/xseed/documentation/generators/hierarchy_table_generator.rb'
167
+ - 'lib/xseed/documentation/utils/strings.rb'
168
+
169
+ # Offense count: 4
170
+ # This cop supports safe autocorrection (--autocorrect).
171
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
172
+ # SupportedStyles: aligned, indented
173
+ Layout/MultilineOperationIndentation:
174
+ Exclude:
175
+ - 'lib/xseed/cli.rb'
176
+ - 'lib/xseed/documentation/generators/instance_sample_generator.rb'
177
+ - 'lib/xseed/documentation/schema_loader.rb'
178
+
179
+ # Offense count: 7
180
+ # This cop supports safe autocorrection (--autocorrect).
181
+ # Configuration parameters: EnforcedStyle.
182
+ # SupportedStyles: require_no_space, require_space
183
+ Layout/SpaceInLambdaLiteral:
184
+ Exclude:
185
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
186
+
187
+ # Offense count: 50
188
+ # This cop supports safe autocorrection (--autocorrect).
189
+ # Configuration parameters: AllowInHeredoc.
190
+ Layout/TrailingWhitespace:
191
+ Exclude:
192
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
193
+ - 'lib/xseed/documentation/html_generator.rb'
194
+ - 'spec/support/parity_helpers.rb'
195
+
196
+ # Offense count: 1
197
+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
198
+ Lint/DuplicateBranch:
199
+ Exclude:
200
+ - 'lib/xseed/documentation/html_generator.rb'
201
+
202
+ # Offense count: 11
203
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
204
+ Lint/EmptyBlock:
205
+ Exclude:
206
+ - 'lib/xseed/documentation/html_generator.rb'
207
+
208
+ # Offense count: 55
209
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
210
+ Metrics/AbcSize:
211
+ Exclude:
212
+ - 'examples/advanced_usage.rb'
213
+ - 'examples/simple_generation.rb'
214
+ - 'lib/xseed/cli.rb'
215
+ - 'lib/xseed/documentation/generators/hierarchy_table_generator.rb'
216
+ - 'lib/xseed/documentation/generators/instance_sample_generator.rb'
217
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
218
+ - 'lib/xseed/documentation/html_generator.rb'
219
+ - 'lib/xseed/documentation/presentation/navigation_builder.rb'
220
+ - 'lib/xseed/documentation/utils/namespaces.rb'
221
+ - 'spec/support/parity_helpers.rb'
222
+
223
+ # Offense count: 21
224
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
225
+ # AllowedMethods: refine
226
+ Metrics/BlockLength:
227
+ Max: 428
228
+
229
+ # Offense count: 3
230
+ # Configuration parameters: CountBlocks, CountModifierForms.
231
+ Metrics/BlockNesting:
232
+ Max: 4
233
+
234
+ # Offense count: 36
235
+ # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
236
+ Metrics/CyclomaticComplexity:
237
+ Exclude:
238
+ - 'examples/advanced_usage.rb'
239
+ - 'lib/xseed/cli.rb'
240
+ - 'lib/xseed/documentation/generators/hierarchy_table_generator.rb'
241
+ - 'lib/xseed/documentation/generators/instance_sample_generator.rb'
242
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
243
+ - 'lib/xseed/documentation/html_generator.rb'
244
+ - 'lib/xseed/documentation/presentation/navigation_builder.rb'
245
+ - 'lib/xseed/documentation/schema_loader.rb'
246
+ - 'lib/xseed/documentation/utils/helpers.rb'
247
+ - 'lib/xseed/documentation/utils/namespaces.rb'
248
+ - 'lib/xseed/documentation/utils/references.rb'
249
+ - 'spec/support/parity_helpers.rb'
250
+
251
+ # Offense count: 85
252
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
253
+ Metrics/MethodLength:
254
+ Max: 97
255
+
256
+ # Offense count: 27
257
+ # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
258
+ Metrics/PerceivedComplexity:
259
+ Exclude:
260
+ - 'examples/advanced_usage.rb'
261
+ - 'lib/xseed/cli.rb'
262
+ - 'lib/xseed/documentation/generators/hierarchy_table_generator.rb'
263
+ - 'lib/xseed/documentation/generators/instance_sample_generator.rb'
264
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
265
+ - 'lib/xseed/documentation/html_generator.rb'
266
+ - 'lib/xseed/documentation/utils/helpers.rb'
267
+ - 'lib/xseed/documentation/utils/namespaces.rb'
268
+ - 'spec/support/parity_helpers.rb'
269
+
270
+ # Offense count: 1
271
+ # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
272
+ # AllowedMethods: call
273
+ # WaywardPredicates: nonzero?
274
+ Naming/PredicateMethod:
275
+ Exclude:
276
+ - 'lib/xseed/models/element_declaration.rb'
277
+
278
+ # Offense count: 3
279
+ # Configuration parameters: MinSize.
280
+ Performance/CollectionLiteralInLoop:
281
+ Exclude:
282
+ - 'lib/xseed/documentation/html_generator.rb'
283
+
284
+ # Offense count: 1
285
+ # This cop supports safe autocorrection (--autocorrect).
286
+ Performance/RegexpMatch:
287
+ Exclude:
288
+ - 'spec/support/parity_helpers.rb'
289
+
290
+ # Offense count: 16
291
+ # This cop supports safe autocorrection (--autocorrect).
292
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
293
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
294
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
295
+ # FunctionalMethods: let, let!, subject, watch
296
+ # AllowedMethods: lambda, proc, it
297
+ Style/BlockDelimiters:
298
+ Exclude:
299
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
300
+ - 'lib/xseed/documentation/html_generator.rb'
301
+ - 'spec/integration/documentation/content_generation_integration_spec.rb'
302
+ - 'spec/support/parity_helpers.rb'
303
+
304
+ # Offense count: 1
305
+ # This cop supports unsafe autocorrection (--autocorrect-all).
306
+ Style/CombinableLoops:
307
+ Exclude:
308
+ - 'spec/support/parity_helpers.rb'
309
+
310
+ # Offense count: 1
311
+ # Configuration parameters: MinBranchesCount.
312
+ Style/HashLikeCase:
313
+ Exclude:
314
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
315
+
316
+ # Offense count: 1
317
+ # This cop supports unsafe autocorrection (--autocorrect-all).
318
+ Style/MapIntoArray:
319
+ Exclude:
320
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
321
+
322
+ # Offense count: 2
323
+ # This cop supports safe autocorrection (--autocorrect).
324
+ Style/MultilineIfModifier:
325
+ Exclude:
326
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
327
+
328
+ # Offense count: 2
329
+ # This cop supports safe autocorrection (--autocorrect).
330
+ # Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
331
+ Style/MultipleComparison:
332
+ Exclude:
333
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
334
+ - 'lib/xseed/documentation/html_generator.rb'
335
+
336
+ # Offense count: 4
337
+ # This cop supports unsafe autocorrection (--autocorrect-all).
338
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
339
+ # SupportedStyles: predicate, comparison
340
+ Style/NumericPredicate:
341
+ Exclude:
342
+ - 'spec/**/*'
343
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
344
+
345
+ # Offense count: 1
346
+ # This cop supports unsafe autocorrection (--autocorrect-all).
347
+ # Configuration parameters: Methods.
348
+ Style/RedundantArgument:
349
+ Exclude:
350
+ - 'lib/xseed/documentation/html_generator.rb'
351
+
352
+ # Offense count: 1
353
+ # This cop supports safe autocorrection (--autocorrect).
354
+ Style/RedundantRegexpArgument:
355
+ Exclude:
356
+ - 'lib/xseed/documentation/html_generator.rb'
357
+
358
+ # Offense count: 1
359
+ # This cop supports unsafe autocorrection (--autocorrect-all).
360
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
361
+ # AllowedMethods: present?, blank?, presence, try, try!
362
+ Style/SafeNavigation:
363
+ Exclude:
364
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
365
+
366
+ # Offense count: 1
367
+ # This cop supports unsafe autocorrection (--autocorrect-all).
368
+ # Configuration parameters: Mode.
369
+ Style/StringConcatenation:
370
+ Exclude:
371
+ - 'lib/xseed/documentation/generators/instance_sample_generator.rb'
372
+
373
+ # Offense count: 7
374
+ # This cop supports safe autocorrection (--autocorrect).
375
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
376
+ # SupportedStyles: single_quotes, double_quotes
377
+ Style/StringLiterals:
378
+ Exclude:
379
+ - 'lib/xseed/documentation/html_generator.rb'
380
+ - 'old-docs/instance_sample_generator_spec.rb'
381
+
382
+ # Offense count: 1
383
+ # This cop supports safe autocorrection (--autocorrect).
384
+ # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
385
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
386
+ Style/TernaryParentheses:
387
+ Exclude:
388
+ - 'lib/xseed/documentation/generators/properties_table_generator.rb'
389
+
390
+ # Offense count: 54
391
+ # This cop supports safe autocorrection (--autocorrect).
392
+ # Configuration parameters: EnforcedStyleForMultiline.
393
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
394
+ Style/TrailingCommaInArguments:
395
+ Exclude:
396
+ - 'examples/parser_usage.rb'
397
+ - 'lib/xseed/documentation/generators/hierarchy_table_generator.rb'
398
+ - 'lib/xseed/documentation/html_generator.rb'
399
+ - 'lib/xseed/documentation/schema_loader.rb'
400
+ - 'lib/xseed/models/element_declaration.rb'
401
+ - 'lib/xseed/parser/xsd_parser.rb'
402
+ - 'old-docs/instance_sample_generator_spec.rb'
403
+ - 'spec/integration/parser/xsd_parser_integration_spec.rb'
404
+ - 'spec/unit/documentation/generators/hierarchy_table_generator_spec.rb'
405
+ - 'spec/unit/documentation/generators/properties_table_generator_spec.rb'
406
+ - 'spec/unit/documentation/schema_loader_spec.rb'
407
+ - 'spec/unit/documentation/utils/namespaces_spec.rb'
408
+ - 'spec/unit/documentation/utils/references_spec.rb'
409
+ - 'spec/unit/models/element_declaration_spec.rb'
410
+
411
+ # Offense count: 4
412
+ # This cop supports safe autocorrection (--autocorrect).
413
+ # Configuration parameters: EnforcedStyleForMultiline.
414
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
415
+ Style/TrailingCommaInArrayLiteral:
416
+ Exclude:
417
+ - 'examples/advanced_usage.rb'
418
+ - 'examples/html_generation.rb'
419
+ - 'spec/integration/parser/xsd_parser_integration_spec.rb'
420
+ - 'spec/unit/documentation/schema_loader_spec.rb'
421
+
422
+ # Offense count: 16
423
+ # This cop supports safe autocorrection (--autocorrect).
424
+ # Configuration parameters: EnforcedStyleForMultiline.
425
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
426
+ Style/TrailingCommaInHashLiteral:
427
+ Exclude:
428
+ - 'lib/xseed/documentation/config.rb'
429
+ - 'lib/xseed/documentation/utils/helpers.rb'
430
+ - 'lib/xseed/documentation/utils/references.rb'
431
+ - 'spec/unit/documentation/utils/namespaces_spec.rb'
432
+ - 'spec/unit/documentation/utils/references_spec.rb'