openehr-rails 0.4.0 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8420a812bd6c4b3f95a403f4804fa58d660a1aa6d736d106bc0dc57a8b63e1ee
4
- data.tar.gz: df4f5629f4915f03c4a07b944a168a1c53d08da043e07cbc6cf6d705d036f017
3
+ metadata.gz: c0bdb58aed10113d7fae2a48ef3819f0d999d8f9b5bc03adc8647eef8b357371
4
+ data.tar.gz: 78416c8a3208456cd7cc3d33a66354b623404a29044a78f94020d5098ac9faa0
5
5
  SHA512:
6
- metadata.gz: 0e39f211e2243b0ac74aff1408136652ba0b4f829a8bc28a92a842ba3e1636955d4ea9fcdfe6ee0e0351b9f3c7c5bd763139478574a5d5acf19c8f8fb9f62a5a
7
- data.tar.gz: 4a8e6beb226a33825df8cd1d762b546cbaf4ca39877d2bda72ab8e81978a58fe57ceefa75ef1d372c609d495fb6d35adc65016592078d10f746be0f7ca041ed7
6
+ metadata.gz: 4e2a343f8b63041b84dc4e364bb1f2d6a6bf4c586d377b43cd5e79c082dc7cb90c114084ddb325e3468d118b8d5fafef8c2171126d056ab02cf21282f2e0e2af
7
+ data.tar.gz: 6f90fd8358d753c85bcc3271830804e47837191c40b115058c75f1f53aae9995bc5f9e60919337df08d9367c81483fae3df5eec0b73084b0e94dc3277432ce17
@@ -13,7 +13,7 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- ruby: ['3.2', '3.3', '3.4', '4.0']
16
+ ruby: ['3.3', '3.4', '4.0']
17
17
  rails: ['7_2', '8_0', '8_1']
18
18
  env:
19
19
  BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails }}.gemfile
data/.rubocop.yml ADDED
@@ -0,0 +1,25 @@
1
+ plugins:
2
+ - rubocop-rails
3
+ - rubocop-rspec
4
+
5
+ inherit_from: .rubocop_todo.yml
6
+
7
+ AllCops:
8
+ NewCops: enable
9
+ TargetRubyVersion: 3.3
10
+ SuggestExtensions: false
11
+ Exclude:
12
+ - 'bin/**/*'
13
+ - 'db/schema.rb'
14
+ - 'gemfiles/**/*'
15
+ - 'vendor/**/*'
16
+ - 'demo/**/*'
17
+ - 'tmp/**/*'
18
+ - 'coverage/**/*'
19
+ - 'lib/generators/**/templates/**/*'
20
+
21
+ Metrics/BlockLength:
22
+ Exclude:
23
+ - 'spec/**/*'
24
+ - '*.gemspec'
25
+ - 'lib/tasks/**/*.rake'
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,619 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config --no-auto-gen-timestamp`
3
+ # using RuboCop version 1.89.0.
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: 10
10
+ # Configuration parameters: EnforcedStyle, AllowedGems.
11
+ # SupportedStyles: Gemfile, gems.rb, gemspec
12
+ Gemspec/DevelopmentDependencies:
13
+ Exclude:
14
+ - 'openehr-rails.gemspec'
15
+
16
+ # Offense count: 1
17
+ # This cop supports safe autocorrection (--autocorrect).
18
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
19
+ Gemspec/OrderedDependencies:
20
+ Exclude:
21
+ - 'openehr-rails.gemspec'
22
+
23
+ # Offense count: 1
24
+ # This cop supports safe autocorrection (--autocorrect).
25
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
26
+ # SupportedStyles: with_first_argument, with_fixed_indentation
27
+ Layout/ArgumentAlignment:
28
+ Exclude:
29
+ - 'app/controllers/openehr_rails/openehr_api/compositions_controller.rb'
30
+
31
+ # Offense count: 1
32
+ # This cop supports safe autocorrection (--autocorrect).
33
+ Layout/EmptyLineAfterMagicComment:
34
+ Exclude:
35
+ - 'Rakefile'
36
+
37
+ # Offense count: 1
38
+ # This cop supports safe autocorrection (--autocorrect).
39
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
40
+ Layout/ExtraSpacing:
41
+ Exclude:
42
+ - 'openehr-rails.gemspec'
43
+
44
+ # Offense count: 2
45
+ # This cop supports safe autocorrection (--autocorrect).
46
+ # Configuration parameters: IndentationWidth.
47
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
48
+ Layout/FirstHashElementIndentation:
49
+ EnforcedStyle: consistent
50
+
51
+ # Offense count: 1
52
+ # This cop supports safe autocorrection (--autocorrect).
53
+ # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation, AllowYARDCommentBlockSeparator.
54
+ Layout/LeadingCommentSpace:
55
+ Exclude:
56
+ - 'spec/spec_helper.rb'
57
+
58
+ # Offense count: 1
59
+ # This cop supports safe autocorrection (--autocorrect).
60
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
61
+ # SupportedStyles: aligned, indented
62
+ Layout/LineEndStringConcatenationIndentation:
63
+ Exclude:
64
+ - 'lib/openehr_rails/aql/query_validator.rb'
65
+
66
+ # Offense count: 1
67
+ # This cop supports safe autocorrection (--autocorrect).
68
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
69
+ # SupportedStyles: with_first_parameter, with_fixed_indentation
70
+ Layout/ParameterAlignment:
71
+ Exclude:
72
+ - 'lib/openehr_rails/aql/executor.rb'
73
+
74
+ # Offense count: 1
75
+ # This cop supports safe autocorrection (--autocorrect).
76
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
77
+ # SupportedStylesForExponentOperator: space, no_space
78
+ # SupportedStylesForRationalLiterals: space, no_space
79
+ Layout/SpaceAroundOperators:
80
+ Exclude:
81
+ - 'openehr-rails.gemspec'
82
+
83
+ # Offense count: 2
84
+ # This cop supports safe autocorrection (--autocorrect).
85
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
86
+ # SupportedStyles: space, no_space
87
+ # SupportedStylesForEmptyBraces: space, no_space
88
+ Layout/SpaceInsideBlockBraces:
89
+ Exclude:
90
+ - 'spec/spec_helper.rb'
91
+
92
+ # Offense count: 2
93
+ # This cop supports safe autocorrection (--autocorrect).
94
+ # Configuration parameters: EnforcedStyle.
95
+ # SupportedStyles: final_newline, final_blank_line
96
+ Layout/TrailingEmptyLines:
97
+ Exclude:
98
+ - 'Rakefile'
99
+ - 'spec/models/openehr_template_spec.rb'
100
+
101
+ # Offense count: 9
102
+ # This cop supports safe autocorrection (--autocorrect).
103
+ # Configuration parameters: AllowInHeredoc.
104
+ Layout/TrailingWhitespace:
105
+ Exclude:
106
+ - 'openehr-rails.gemspec'
107
+ - 'spec/models/openehr_template_spec.rb'
108
+
109
+ # Offense count: 3
110
+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
111
+ Lint/DuplicateBranch:
112
+ Exclude:
113
+ - 'app/controllers/openehr_rails/fhir_controller.rb'
114
+ - 'lib/openehr_rails/fhir/type_map.rb'
115
+ - 'lib/openehr_rails/rm/graph_builder.rb'
116
+
117
+ # Offense count: 1
118
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
119
+ Lint/EmptyBlock:
120
+ Exclude:
121
+ - 'spec/openehr_rails/rm/create_from_json_roundtrip_spec.rb'
122
+
123
+ # Offense count: 1
124
+ # This cop supports safe autocorrection (--autocorrect).
125
+ Lint/RedundantRequireStatement:
126
+ Exclude:
127
+ - 'lib/openehr_rails/release_check.rb'
128
+
129
+ # Offense count: 1
130
+ # This cop supports safe autocorrection (--autocorrect).
131
+ Lint/ScriptPermission:
132
+ Exclude:
133
+ - 'Rakefile'
134
+
135
+ # Offense count: 1
136
+ # This cop supports safe autocorrection (--autocorrect).
137
+ # Configuration parameters: EnforcedStyle.
138
+ # SupportedStyles: strict, consistent
139
+ Lint/SymbolConversion:
140
+ Exclude:
141
+ - 'lib/openehr_rails/fhir/serializer.rb'
142
+
143
+ # Offense count: 1
144
+ # This cop supports safe autocorrection (--autocorrect).
145
+ Lint/UselessAssignment:
146
+ Exclude:
147
+ - 'app/controllers/openehr_rails/fhir_controller.rb'
148
+
149
+ # Offense count: 20
150
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
151
+ Metrics/AbcSize:
152
+ Max: 79
153
+
154
+ # Offense count: 2
155
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
156
+ # AllowedMethods: refine
157
+ Metrics/BlockLength:
158
+ Max: 35
159
+
160
+ # Offense count: 6
161
+ # Configuration parameters: CountComments, CountAsOne.
162
+ Metrics/ClassLength:
163
+ Max: 210
164
+
165
+ # Offense count: 15
166
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
167
+ Metrics/CyclomaticComplexity:
168
+ Max: 28
169
+
170
+ # Offense count: 37
171
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
172
+ Metrics/MethodLength:
173
+ Max: 46
174
+
175
+ # Offense count: 1
176
+ # Configuration parameters: CountComments, CountAsOne.
177
+ Metrics/ModuleLength:
178
+ Max: 181
179
+
180
+ # Offense count: 2
181
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
182
+ Metrics/ParameterLists:
183
+ Max: 6
184
+
185
+ # Offense count: 8
186
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
187
+ Metrics/PerceivedComplexity:
188
+ Max: 28
189
+
190
+ # Offense count: 1
191
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
192
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
193
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
194
+ Naming/FileName:
195
+ Exclude:
196
+ - 'lib/openehr-rails.rb'
197
+
198
+ # Offense count: 1
199
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
200
+ # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
201
+ Naming/MethodParameterName:
202
+ Exclude:
203
+ - 'lib/openehr_rails/rm/rm_object_builder.rb'
204
+
205
+ # Offense count: 12
206
+ # Configuration parameters: Prefixes, AllowedPatterns.
207
+ # Prefixes: when, with, without
208
+ RSpec/ContextWording:
209
+ Exclude:
210
+ - 'spec/generators/openehr/scaffold/opt_scaffold_generator_spec.rb'
211
+
212
+ # Offense count: 9
213
+ # Configuration parameters: IgnoredMetadata.
214
+ RSpec/DescribeClass:
215
+ Exclude:
216
+ - 'spec/models/openehr_template_spec.rb'
217
+ - 'spec/openehr_rails/aql/model_api_spec.rb'
218
+ - 'spec/openehr_rails/authentication_spec.rb'
219
+ - 'spec/openehr_rails/fhir/serializer_spec.rb'
220
+ - 'spec/openehr_rails/rm/aql_graph_spec.rb'
221
+ - 'spec/openehr_rails/rm/create_from_json_roundtrip_spec.rb'
222
+ - 'spec/unit/opt_parser_spec.rb'
223
+ - 'spec/unit/require_smoke_spec.rb'
224
+
225
+ # Offense count: 5
226
+ # This cop supports unsafe autocorrection (--autocorrect-all).
227
+ # Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
228
+ # SupportedStyles: described_class, explicit
229
+ RSpec/DescribedClass:
230
+ Exclude:
231
+ - 'spec/openehr_rails/rm/data_value_spec.rb'
232
+ - 'spec/openehr_rails/rm/node_spec.rb'
233
+
234
+ # Offense count: 46
235
+ # Configuration parameters: CountAsOne.
236
+ RSpec/ExampleLength:
237
+ Max: 51
238
+
239
+ # Offense count: 5
240
+ # This cop supports safe autocorrection (--autocorrect).
241
+ # Configuration parameters: EnforcedStyle.
242
+ # SupportedStyles: implicit, each, example
243
+ RSpec/HookArgument:
244
+ Exclude:
245
+ - 'spec/generators/openehr/install/install_generator_spec.rb'
246
+ - 'spec/generators/openehr/scaffold/opt_scaffold_generator_spec.rb'
247
+ - 'spec/generators/openehr/scaffold/remote_opt_scaffold_generator_spec.rb'
248
+ - 'spec/support/active_record.rb'
249
+
250
+ # Offense count: 26
251
+ # Configuration parameters: AssignmentOnly.
252
+ RSpec/InstanceVariable:
253
+ Exclude:
254
+ - 'spec/openehr_rails/release_check_spec.rb'
255
+ - 'spec/openehr_rails/runtime_scaffolder_spec.rb'
256
+ - 'spec/openehr_rails/template_importer_spec.rb'
257
+ - 'spec/openehr_rails/template_uploader_spec.rb'
258
+
259
+ # Offense count: 2
260
+ # This cop supports safe autocorrection (--autocorrect).
261
+ RSpec/MatchWithSimpleRegex:
262
+ Exclude:
263
+ - 'spec/openehr_rails/release_check_spec.rb'
264
+
265
+ # Offense count: 4
266
+ RSpec/MultipleDescribes:
267
+ Exclude:
268
+ - 'spec/openehr_rails/fhir/serializer_spec.rb'
269
+ - 'spec/openehr_rails/rm/composition_spec.rb'
270
+ - 'spec/openehr_rails/storable_spec.rb'
271
+ - 'spec/unit/require_smoke_spec.rb'
272
+
273
+ # Offense count: 94
274
+ RSpec/MultipleExpectations:
275
+ Max: 8
276
+
277
+ # Offense count: 2
278
+ # Configuration parameters: AllowSubject.
279
+ RSpec/MultipleMemoizedHelpers:
280
+ Max: 6
281
+
282
+ # Offense count: 2
283
+ # Configuration parameters: AllowedGroups.
284
+ RSpec/NestedGroups:
285
+ Max: 4
286
+
287
+ # Offense count: 1
288
+ # Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
289
+ # SupportedInflectors: default, active_support
290
+ RSpec/SpecFilePathFormat:
291
+ Exclude:
292
+ - 'spec/generators/openehr/install/install_generator_spec.rb'
293
+
294
+ # Offense count: 7
295
+ RSpec/SubjectStub:
296
+ Exclude:
297
+ - 'spec/openehr_rails/authentication_spec.rb'
298
+
299
+ # Offense count: 1
300
+ # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
301
+ RSpec/VerifiedDoubles:
302
+ Exclude:
303
+ - 'spec/openehr_rails/authentication_spec.rb'
304
+
305
+ # Offense count: 2
306
+ # This cop supports safe autocorrection (--autocorrect).
307
+ # Configuration parameters: ExpectedOrder.
308
+ # ExpectedOrder: index, show, new, edit, create, update, destroy
309
+ Rails/ActionOrder:
310
+ Exclude:
311
+ - 'app/controllers/openehr_rails/openehr_api/compositions_controller.rb'
312
+ - 'app/controllers/openehr_rails/openehr_api/ehrs_controller.rb'
313
+
314
+ # Offense count: 9
315
+ # This cop supports unsafe autocorrection (--autocorrect-all).
316
+ Rails/ApplicationRecord:
317
+ Exclude:
318
+ - 'lib/openehr_rails/rm/composition.rb'
319
+ - 'lib/openehr_rails/rm/contribution.rb'
320
+ - 'lib/openehr_rails/rm/data_value.rb'
321
+ - 'lib/openehr_rails/rm/ehr.rb'
322
+ - 'lib/openehr_rails/rm/node.rb'
323
+ - 'lib/openehr_rails/rm/version.rb'
324
+ - 'spec/openehr_rails/fhir/serializer_spec.rb'
325
+ - 'spec/openehr_rails/storable_spec_model.rb'
326
+ - 'spec/support/active_record.rb'
327
+
328
+ # Offense count: 3
329
+ # This cop supports unsafe autocorrection (--autocorrect-all).
330
+ # Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
331
+ Rails/Blank:
332
+ Exclude:
333
+ - 'lib/openehr_rails/fhir/profile_generator.rb'
334
+ - 'lib/openehr_rails/fhir/resource_registry.rb'
335
+ - 'lib/openehr_rails/opt/field_extractor.rb'
336
+
337
+ # Offense count: 3
338
+ # This cop supports unsafe autocorrection (--autocorrect-all).
339
+ # Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
340
+ # Whitelist: find_by_sql, find_by_token_for
341
+ # AllowedMethods: find_by_sql, find_by_token_for
342
+ # AllowedReceivers: Gem::Specification, page
343
+ Rails/DynamicFindBy:
344
+ Exclude:
345
+ - 'app/controllers/openehr_rails/fhir_controller.rb'
346
+
347
+ # Offense count: 1
348
+ # This cop supports safe autocorrection (--autocorrect).
349
+ Rails/EnvLocal:
350
+ Exclude:
351
+ - 'lib/openehr_rails.rb'
352
+
353
+ # Offense count: 4
354
+ # This cop supports safe autocorrection (--autocorrect).
355
+ Rails/HttpStatusNameConsistency:
356
+ Exclude:
357
+ - 'app/controllers/openehr_rails/openehr_api/compositions_controller.rb'
358
+ - 'app/controllers/openehr_rails/openehr_api/ehrs_controller.rb'
359
+ - 'app/controllers/openehr_rails/templates_controller.rb'
360
+
361
+ # Offense count: 1
362
+ Rails/I18nLocaleTexts:
363
+ Exclude:
364
+ - 'app/controllers/openehr_rails/templates_controller.rb'
365
+
366
+ # Offense count: 1
367
+ # This cop supports safe autocorrection (--autocorrect).
368
+ Rails/IndexBy:
369
+ Exclude:
370
+ - 'spec/openehr_rails/storable_spec_model.rb'
371
+
372
+ # Offense count: 2
373
+ # This cop supports unsafe autocorrection (--autocorrect-all).
374
+ Rails/IndexWith:
375
+ Exclude:
376
+ - 'lib/openehr_rails/opt/field_extractor.rb'
377
+
378
+ # Offense count: 14
379
+ # This cop supports unsafe autocorrection (--autocorrect-all).
380
+ Rails/Pluck:
381
+ Exclude:
382
+ - 'spec/openehr_rails/fhir/profile_generator_spec.rb'
383
+ - 'spec/openehr_rails/fhir/serializer_spec.rb'
384
+ - 'spec/openehr_rails/opt/field_extractor_concept_slug_spec.rb'
385
+ - 'spec/openehr_rails/opt/field_extractor_section_spec.rb'
386
+ - 'spec/openehr_rails/opt/field_extractor_spec.rb'
387
+ - 'spec/openehr_rails/storable_spec.rb'
388
+
389
+ # Offense count: 1
390
+ # This cop supports unsafe autocorrection (--autocorrect-all).
391
+ Rails/RakeEnvironment:
392
+ Exclude:
393
+ - 'lib/tasks/release_check.rake'
394
+
395
+ # Offense count: 6
396
+ # This cop supports safe autocorrection (--autocorrect).
397
+ Rails/RedundantForeignKey:
398
+ Exclude:
399
+ - 'lib/openehr_rails/rm/composition.rb'
400
+ - 'lib/openehr_rails/rm/contribution.rb'
401
+ - 'lib/openehr_rails/rm/ehr.rb'
402
+ - 'lib/openehr_rails/rm/node.rb'
403
+
404
+ # Offense count: 1
405
+ # This cop supports unsafe autocorrection (--autocorrect-all).
406
+ Rails/RootPathnameMethods:
407
+ Exclude:
408
+ - 'app/controllers/openehr_rails/templates_controller.rb'
409
+
410
+ # Offense count: 2
411
+ # Configuration parameters: ForbiddenMethods, AllowedMethods.
412
+ # ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
413
+ Rails/SkipsModelValidations:
414
+ Exclude:
415
+ - 'lib/openehr_rails/rm/composition_committer.rb'
416
+ - 'spec/openehr_rails/rm/rm_object_builder_spec.rb'
417
+
418
+ # Offense count: 7
419
+ # This cop supports unsafe autocorrection (--autocorrect-all).
420
+ Rails/StrongParametersExpect:
421
+ Exclude:
422
+ - 'app/controllers/openehr_rails/ehrs_controller.rb'
423
+ - 'app/controllers/openehr_rails/fhir_controller.rb'
424
+ - 'app/controllers/openehr_rails/openehr_api/compositions_controller.rb'
425
+ - 'app/controllers/openehr_rails/openehr_api/ehrs_controller.rb'
426
+ - 'app/controllers/openehr_rails/templates_controller.rb'
427
+
428
+ # Offense count: 1
429
+ # This cop supports unsafe autocorrection (--autocorrect-all).
430
+ # Configuration parameters: EnforcedStyle.
431
+ # SupportedStyles: strict, flexible
432
+ Rails/TimeZone:
433
+ Exclude:
434
+ - 'lib/openehr_rails/rm/graph_builder.rb'
435
+
436
+ # Offense count: 1
437
+ Style/ClassVars:
438
+ Exclude:
439
+ - 'lib/openehr_rails.rb'
440
+
441
+ # Offense count: 1
442
+ # This cop supports safe autocorrection (--autocorrect).
443
+ # Configuration parameters: Keywords, RequireColon.
444
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
445
+ Style/CommentAnnotation:
446
+ Exclude:
447
+ - 'Guardfile'
448
+
449
+ # Offense count: 22
450
+ # Configuration parameters: AllowedConstants.
451
+ Style/Documentation:
452
+ Exclude:
453
+ - 'app/controllers/openehr_rails/application_controller.rb'
454
+ - 'app/controllers/openehr_rails/ehrs_controller.rb'
455
+ - 'lib/generators/openehr/install/install_generator.rb'
456
+ - 'lib/openehr_rails.rb'
457
+ - 'lib/openehr_rails/aql/executor.rb'
458
+ - 'lib/openehr_rails/rm.rb'
459
+ - 'lib/openehr_rails/rm/data_values.rb'
460
+ - 'lib/openehr_rails/rm/nodes.rb'
461
+ - 'spec/generators/openehr/fhir_profile/fhir_profile_generator_spec.rb'
462
+ - 'spec/generators/openehr/fhir_profile/remote_fhir_profile_generator_spec.rb'
463
+ - 'spec/generators/openehr/scaffold/opt_scaffold_generator_spec.rb'
464
+ - 'spec/generators/openehr/scaffold/remote_opt_scaffold_generator_spec.rb'
465
+
466
+ # Offense count: 1
467
+ # This cop supports safe autocorrection (--autocorrect).
468
+ Style/Encoding:
469
+ Exclude:
470
+ - 'Rakefile'
471
+
472
+ # Offense count: 13
473
+ # This cop supports safe autocorrection (--autocorrect).
474
+ Style/ExpandPathArguments:
475
+ Exclude:
476
+ - 'openehr-rails.gemspec'
477
+ - 'spec/generators/openehr/install/install_generator_spec.rb'
478
+ - 'spec/generators/openehr/scaffold/opt_scaffold_generator_spec.rb'
479
+ - 'spec/generators/openehr/scaffold/remote_opt_scaffold_generator_spec.rb'
480
+ - 'spec/models/openehr_template_spec.rb'
481
+ - 'spec/openehr_rails/opt/field_extractor_spec.rb'
482
+ - 'spec/unit/opt_parser_spec.rb'
483
+
484
+ # Offense count: 18
485
+ # This cop supports unsafe autocorrection (--autocorrect-all).
486
+ # Configuration parameters: EnforcedStyle.
487
+ # SupportedStyles: always, always_true, never
488
+ Style/FrozenStringLiteralComment:
489
+ Enabled: false
490
+
491
+ # Offense count: 1
492
+ # This cop supports safe autocorrection (--autocorrect).
493
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
494
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
495
+ # SupportedShorthandSyntax: always, never, either, consistent, either_consistent
496
+ Style/HashSyntax:
497
+ Exclude:
498
+ - 'Rakefile'
499
+
500
+ # Offense count: 2
501
+ # This cop supports unsafe autocorrection (--autocorrect-all).
502
+ Style/IdenticalConditionalBranches:
503
+ Exclude:
504
+ - 'lib/openehr_rails/fhir/type_map.rb'
505
+
506
+ # Offense count: 7
507
+ # This cop supports safe autocorrection (--autocorrect).
508
+ Style/IfUnlessModifier:
509
+ Exclude:
510
+ - 'app/controllers/openehr_rails/openehr_api/ehrs_controller.rb'
511
+ - 'lib/openehr_rails/aql_queryable.rb'
512
+ - 'lib/openehr_rails/opt/field_extractor.rb'
513
+ - 'lib/openehr_rails/opt/remote_fetcher.rb'
514
+ - 'lib/openehr_rails/rm/canonical_serializer.rb'
515
+ - 'lib/openehr_rails/rm/rm_object_builder.rb'
516
+
517
+ # Offense count: 38
518
+ Style/OpenStructUse:
519
+ Exclude:
520
+ - 'spec/openehr_rails/opt/field_extractor_concept_slug_spec.rb'
521
+ - 'spec/openehr_rails/opt/field_extractor_ordinal_spec.rb'
522
+ - 'spec/openehr_rails/opt/field_extractor_section_spec.rb'
523
+
524
+ # Offense count: 1
525
+ # This cop supports unsafe autocorrection (--autocorrect-all).
526
+ Style/PredicateWithKind:
527
+ Exclude:
528
+ - 'lib/openehr_rails/aql/query_validator.rb'
529
+
530
+ # Offense count: 1
531
+ # This cop supports safe autocorrection (--autocorrect).
532
+ Style/RedundantConstantBase:
533
+ Exclude:
534
+ - 'lib/openehr-rails.rb'
535
+
536
+ # Offense count: 1
537
+ # This cop supports safe autocorrection (--autocorrect).
538
+ Style/RedundantParentheses:
539
+ Exclude:
540
+ - 'lib/openehr_rails/fhir/capability_statement.rb'
541
+
542
+ # Offense count: 1
543
+ # This cop supports safe autocorrection (--autocorrect).
544
+ # Configuration parameters: EnforcedStyle.
545
+ # SupportedStyles: implicit, explicit
546
+ Style/RescueStandardError:
547
+ Exclude:
548
+ - 'spec/spec_helper.rb'
549
+
550
+ # Offense count: 1
551
+ # This cop supports unsafe autocorrection (--autocorrect-all).
552
+ Style/SelectByRegexp:
553
+ Exclude:
554
+ - 'lib/openehr_rails/release_check.rb'
555
+
556
+ # Offense count: 2
557
+ # This cop supports safe autocorrection (--autocorrect).
558
+ # Configuration parameters: AllowAsExpressionSeparator.
559
+ Style/Semicolon:
560
+ Exclude:
561
+ - 'spec/openehr_rails/template_importer_spec.rb'
562
+ - 'spec/openehr_rails/template_uploader_spec.rb'
563
+
564
+ # Offense count: 1
565
+ # This cop supports unsafe autocorrection (--autocorrect-all).
566
+ # Configuration parameters: RequireEnglish, EnforcedStyle.
567
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
568
+ Style/SpecialGlobalVars:
569
+ Exclude:
570
+ - 'spec/spec_helper.rb'
571
+
572
+ # Offense count: 1
573
+ # This cop supports unsafe autocorrection (--autocorrect-all).
574
+ # Configuration parameters: Mode.
575
+ Style/StringConcatenation:
576
+ Exclude:
577
+ - 'spec/spec_helper.rb'
578
+
579
+ # Offense count: 48
580
+ # This cop supports safe autocorrection (--autocorrect).
581
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
582
+ # SupportedStyles: single_quotes, double_quotes
583
+ Style/StringLiterals:
584
+ Exclude:
585
+ - 'Guardfile'
586
+ - 'Rakefile'
587
+ - 'demo_assets/demo_seed.rb'
588
+ - 'openehr-rails.gemspec'
589
+
590
+ # Offense count: 1
591
+ # This cop supports unsafe autocorrection (--autocorrect-all).
592
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
593
+ # AllowedMethods: define_method, mail, respond_to
594
+ Style/SymbolProc:
595
+ Exclude:
596
+ - 'lib/openehr_rails/fhir/resource_registry.rb'
597
+
598
+ # Offense count: 3
599
+ # This cop supports safe autocorrection (--autocorrect).
600
+ # Configuration parameters: EnforcedStyleForMultiline.
601
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
602
+ Style/TrailingCommaInArrayLiteral:
603
+ Exclude:
604
+ - 'demo_assets/demo_seed.rb'
605
+
606
+ # Offense count: 4
607
+ # This cop supports safe autocorrection (--autocorrect).
608
+ # Configuration parameters: EnforcedStyleForMultiline.
609
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
610
+ Style/TrailingCommaInHashLiteral:
611
+ Exclude:
612
+ - 'demo_assets/demo_seed.rb'
613
+
614
+ # Offense count: 7
615
+ # This cop supports safe autocorrection (--autocorrect).
616
+ # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
617
+ # URISchemes: http, https
618
+ Layout/LineLength:
619
+ Max: 171