compliance_engine 0.1.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.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +623 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +22 -0
- data/README.md +31 -0
- data/Rakefile +12 -0
- data/TODO.md +19 -0
- data/exe/compliance_engine +6 -0
- data/lib/compliance_engine/ce.rb +7 -0
- data/lib/compliance_engine/ces.rb +40 -0
- data/lib/compliance_engine/check.rb +38 -0
- data/lib/compliance_engine/checks.rb +22 -0
- data/lib/compliance_engine/cli.rb +76 -0
- data/lib/compliance_engine/collection.rb +132 -0
- data/lib/compliance_engine/component.rb +251 -0
- data/lib/compliance_engine/control.rb +7 -0
- data/lib/compliance_engine/controls.rb +22 -0
- data/lib/compliance_engine/data.rb +426 -0
- data/lib/compliance_engine/data_loader/file.rb +35 -0
- data/lib/compliance_engine/data_loader/json.rb +17 -0
- data/lib/compliance_engine/data_loader/yaml.rb +17 -0
- data/lib/compliance_engine/data_loader.rb +45 -0
- data/lib/compliance_engine/environment_loader/zip.rb +24 -0
- data/lib/compliance_engine/environment_loader.rb +31 -0
- data/lib/compliance_engine/module_loader.rb +62 -0
- data/lib/compliance_engine/profile.rb +13 -0
- data/lib/compliance_engine/profiles.rb +22 -0
- data/lib/compliance_engine/version.rb +24 -0
- data/lib/compliance_engine.rb +25 -0
- data/sig/compliance_engine.rbs +4 -0
- metadata +145 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: be01dba1978b2a1c6f8ed80ba995264a5ad2d99507749d008b24f8e6536090f2
|
4
|
+
data.tar.gz: 8e75e28e497ba0ce50dc7566e6208d05e691a50b6954156acfc6713fd4375fb4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 98998fbb8675147122b2c711e16dc138ecb3583ec19f1228ae6804b413d79606ecacd4be16456c5f9089e0644d5882f34cf7026865ceeaf829aee81d12e3b893
|
7
|
+
data.tar.gz: 786c09500c9175232884a3eddf2c086f944460fc6b35fe1081dbb924ee24042925603adb2a1305faeca55596a0f6d225f9a564c3a702ef2cb2d3923e674a7f2e
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,623 @@
|
|
1
|
+
---
|
2
|
+
require:
|
3
|
+
- rubocop-performance
|
4
|
+
- rubocop-rspec
|
5
|
+
- rubocop-rake
|
6
|
+
AllCops:
|
7
|
+
DisplayCopNames: true
|
8
|
+
TargetRubyVersion: '2.7'
|
9
|
+
Include:
|
10
|
+
- "**/*.rb"
|
11
|
+
Exclude:
|
12
|
+
- ".vendor/**/*"
|
13
|
+
- pkg/**/*
|
14
|
+
- spec/fixtures/**/*
|
15
|
+
- vendor/**/*
|
16
|
+
- dist/**/*
|
17
|
+
Layout/LineLength:
|
18
|
+
Description: People have wide screens, use them.
|
19
|
+
Max: 200
|
20
|
+
RSpec/BeforeAfterAll:
|
21
|
+
Description: Beware of using after(:all) as it may cause state to leak between tests.
|
22
|
+
A necessary evil in acceptance testing.
|
23
|
+
Exclude:
|
24
|
+
- spec/acceptance/**/*.rb
|
25
|
+
RSpec/HookArgument:
|
26
|
+
Description: Prefer explicit :each argument, matching existing module's style
|
27
|
+
EnforcedStyle: each
|
28
|
+
RSpec/DescribeSymbol:
|
29
|
+
Exclude:
|
30
|
+
- spec/unit/facter/**/*.rb
|
31
|
+
Style/BlockDelimiters:
|
32
|
+
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
|
33
|
+
be consistent then.
|
34
|
+
EnforcedStyle: braces_for_chaining
|
35
|
+
Style/ClassAndModuleChildren:
|
36
|
+
Description: Compact style reduces the required amount of indentation.
|
37
|
+
EnforcedStyle: compact
|
38
|
+
Style/EmptyElse:
|
39
|
+
Description: Enforce against empty else clauses, but allow `nil` for clarity.
|
40
|
+
EnforcedStyle: empty
|
41
|
+
Style/FormatString:
|
42
|
+
Description: Following the main puppet project's style, prefer the % format format.
|
43
|
+
EnforcedStyle: percent
|
44
|
+
Style/FormatStringToken:
|
45
|
+
Description: Following the main puppet project's style, prefer the simpler template
|
46
|
+
tokens over annotated ones.
|
47
|
+
EnforcedStyle: template
|
48
|
+
Style/Lambda:
|
49
|
+
Description: Prefer the keyword for easier discoverability.
|
50
|
+
EnforcedStyle: literal
|
51
|
+
Style/RegexpLiteral:
|
52
|
+
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
|
53
|
+
EnforcedStyle: percent_r
|
54
|
+
Style/TernaryParentheses:
|
55
|
+
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
|
56
|
+
on complex expressions for better readability, but seriously consider breaking
|
57
|
+
it up.
|
58
|
+
EnforcedStyle: require_parentheses_when_complex
|
59
|
+
Style/TrailingCommaInArguments:
|
60
|
+
Description: Prefer always trailing comma on multiline argument lists. This makes
|
61
|
+
diffs, and re-ordering nicer.
|
62
|
+
EnforcedStyleForMultiline: comma
|
63
|
+
Style/TrailingCommaInArrayLiteral:
|
64
|
+
Description: Prefer always trailing comma on multiline literals. This makes diffs,
|
65
|
+
and re-ordering nicer.
|
66
|
+
EnforcedStyleForMultiline: comma
|
67
|
+
Style/SymbolArray:
|
68
|
+
Description: Using percent style obscures symbolic intent of array's contents.
|
69
|
+
EnforcedStyle: brackets
|
70
|
+
RSpec/MessageSpies:
|
71
|
+
EnforcedStyle: receive
|
72
|
+
Style/Documentation:
|
73
|
+
Exclude:
|
74
|
+
- lib/puppet/parser/functions/**/*
|
75
|
+
- spec/**/*
|
76
|
+
Style/WordArray:
|
77
|
+
EnforcedStyle: brackets
|
78
|
+
Performance/AncestorsInclude:
|
79
|
+
Enabled: true
|
80
|
+
Performance/BigDecimalWithNumericArgument:
|
81
|
+
Enabled: true
|
82
|
+
Performance/BlockGivenWithExplicitBlock:
|
83
|
+
Enabled: true
|
84
|
+
Performance/CaseWhenSplat:
|
85
|
+
Enabled: true
|
86
|
+
Performance/ConstantRegexp:
|
87
|
+
Enabled: true
|
88
|
+
Performance/MethodObjectAsBlock:
|
89
|
+
Enabled: true
|
90
|
+
Performance/RedundantSortBlock:
|
91
|
+
Enabled: true
|
92
|
+
Performance/RedundantStringChars:
|
93
|
+
Enabled: true
|
94
|
+
Performance/ReverseFirst:
|
95
|
+
Enabled: true
|
96
|
+
Performance/SortReverse:
|
97
|
+
Enabled: true
|
98
|
+
Performance/Squeeze:
|
99
|
+
Enabled: true
|
100
|
+
Performance/StringInclude:
|
101
|
+
Enabled: true
|
102
|
+
Performance/Sum:
|
103
|
+
Enabled: true
|
104
|
+
Style/CollectionMethods:
|
105
|
+
Enabled: true
|
106
|
+
Style/MethodCalledOnDoEndBlock:
|
107
|
+
Enabled: true
|
108
|
+
Style/StringMethods:
|
109
|
+
Enabled: true
|
110
|
+
Bundler/InsecureProtocolSource:
|
111
|
+
Enabled: false
|
112
|
+
Gemspec/DuplicatedAssignment:
|
113
|
+
Enabled: false
|
114
|
+
Gemspec/OrderedDependencies:
|
115
|
+
Enabled: false
|
116
|
+
Gemspec/RequiredRubyVersion:
|
117
|
+
Enabled: false
|
118
|
+
Gemspec/RubyVersionGlobalsUsage:
|
119
|
+
Enabled: false
|
120
|
+
Layout/ArgumentAlignment:
|
121
|
+
Enabled: false
|
122
|
+
Layout/BeginEndAlignment:
|
123
|
+
Enabled: false
|
124
|
+
Layout/ClosingHeredocIndentation:
|
125
|
+
Enabled: false
|
126
|
+
Layout/EmptyComment:
|
127
|
+
Enabled: false
|
128
|
+
Layout/EmptyLineAfterGuardClause:
|
129
|
+
Enabled: false
|
130
|
+
Layout/EmptyLinesAroundArguments:
|
131
|
+
Enabled: false
|
132
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
133
|
+
Enabled: false
|
134
|
+
Layout/EndOfLine:
|
135
|
+
Enabled: false
|
136
|
+
Layout/FirstArgumentIndentation:
|
137
|
+
Enabled: false
|
138
|
+
Layout/HashAlignment:
|
139
|
+
Enabled: false
|
140
|
+
Layout/HeredocIndentation:
|
141
|
+
Enabled: false
|
142
|
+
Layout/LeadingEmptyLines:
|
143
|
+
Enabled: false
|
144
|
+
Layout/SpaceAroundMethodCallOperator:
|
145
|
+
Enabled: false
|
146
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
147
|
+
Enabled: false
|
148
|
+
Layout/SpaceInsideReferenceBrackets:
|
149
|
+
Enabled: false
|
150
|
+
Lint/BigDecimalNew:
|
151
|
+
Enabled: false
|
152
|
+
Lint/BooleanSymbol:
|
153
|
+
Enabled: false
|
154
|
+
Lint/ConstantDefinitionInBlock:
|
155
|
+
Enabled: false
|
156
|
+
Lint/DeprecatedOpenSSLConstant:
|
157
|
+
Enabled: false
|
158
|
+
Lint/DisjunctiveAssignmentInConstructor:
|
159
|
+
Enabled: false
|
160
|
+
Lint/DuplicateElsifCondition:
|
161
|
+
Enabled: false
|
162
|
+
Lint/DuplicateRequire:
|
163
|
+
Enabled: false
|
164
|
+
Lint/DuplicateRescueException:
|
165
|
+
Enabled: false
|
166
|
+
Lint/EmptyConditionalBody:
|
167
|
+
Enabled: false
|
168
|
+
Lint/EmptyFile:
|
169
|
+
Enabled: false
|
170
|
+
Lint/ErbNewArguments:
|
171
|
+
Enabled: false
|
172
|
+
Lint/FloatComparison:
|
173
|
+
Enabled: false
|
174
|
+
Lint/HashCompareByIdentity:
|
175
|
+
Enabled: false
|
176
|
+
Lint/IdentityComparison:
|
177
|
+
Enabled: false
|
178
|
+
Lint/InterpolationCheck:
|
179
|
+
Enabled: false
|
180
|
+
Lint/MissingCopEnableDirective:
|
181
|
+
Enabled: false
|
182
|
+
Lint/MixedRegexpCaptureTypes:
|
183
|
+
Enabled: false
|
184
|
+
Lint/NestedPercentLiteral:
|
185
|
+
Enabled: false
|
186
|
+
Lint/NonDeterministicRequireOrder:
|
187
|
+
Enabled: false
|
188
|
+
Lint/OrderedMagicComments:
|
189
|
+
Enabled: false
|
190
|
+
Lint/OutOfRangeRegexpRef:
|
191
|
+
Enabled: false
|
192
|
+
Lint/RaiseException:
|
193
|
+
Enabled: false
|
194
|
+
Lint/RedundantCopEnableDirective:
|
195
|
+
Enabled: false
|
196
|
+
Lint/RedundantRequireStatement:
|
197
|
+
Enabled: false
|
198
|
+
Lint/RedundantSafeNavigation:
|
199
|
+
Enabled: false
|
200
|
+
Lint/RedundantWithIndex:
|
201
|
+
Enabled: false
|
202
|
+
Lint/RedundantWithObject:
|
203
|
+
Enabled: false
|
204
|
+
Lint/RegexpAsCondition:
|
205
|
+
Enabled: false
|
206
|
+
Lint/ReturnInVoidContext:
|
207
|
+
Enabled: false
|
208
|
+
Lint/SafeNavigationConsistency:
|
209
|
+
Enabled: false
|
210
|
+
Lint/SafeNavigationWithEmpty:
|
211
|
+
Enabled: false
|
212
|
+
Lint/SelfAssignment:
|
213
|
+
Enabled: false
|
214
|
+
Lint/SendWithMixinArgument:
|
215
|
+
Enabled: false
|
216
|
+
Lint/ShadowedArgument:
|
217
|
+
Enabled: false
|
218
|
+
Lint/StructNewOverride:
|
219
|
+
Enabled: false
|
220
|
+
Lint/ToJSON:
|
221
|
+
Enabled: false
|
222
|
+
Lint/TopLevelReturnWithArgument:
|
223
|
+
Enabled: false
|
224
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
225
|
+
Enabled: false
|
226
|
+
Lint/UnreachableLoop:
|
227
|
+
Enabled: false
|
228
|
+
Lint/UriEscapeUnescape:
|
229
|
+
Enabled: false
|
230
|
+
Lint/UriRegexp:
|
231
|
+
Enabled: false
|
232
|
+
Lint/UselessMethodDefinition:
|
233
|
+
Enabled: false
|
234
|
+
Lint/UselessTimes:
|
235
|
+
Enabled: false
|
236
|
+
Metrics/AbcSize:
|
237
|
+
Enabled: false
|
238
|
+
Metrics/BlockLength:
|
239
|
+
Enabled: false
|
240
|
+
Metrics/BlockNesting:
|
241
|
+
Enabled: false
|
242
|
+
Metrics/ClassLength:
|
243
|
+
Enabled: false
|
244
|
+
Metrics/CyclomaticComplexity:
|
245
|
+
Enabled: false
|
246
|
+
Metrics/MethodLength:
|
247
|
+
Enabled: false
|
248
|
+
Metrics/ModuleLength:
|
249
|
+
Enabled: false
|
250
|
+
Metrics/ParameterLists:
|
251
|
+
Enabled: false
|
252
|
+
Metrics/PerceivedComplexity:
|
253
|
+
Enabled: false
|
254
|
+
Migration/DepartmentName:
|
255
|
+
Enabled: false
|
256
|
+
Naming/AccessorMethodName:
|
257
|
+
Enabled: false
|
258
|
+
Naming/BlockParameterName:
|
259
|
+
Enabled: false
|
260
|
+
Naming/HeredocDelimiterCase:
|
261
|
+
Enabled: false
|
262
|
+
Naming/HeredocDelimiterNaming:
|
263
|
+
Enabled: false
|
264
|
+
Naming/MemoizedInstanceVariableName:
|
265
|
+
Enabled: false
|
266
|
+
Naming/MethodParameterName:
|
267
|
+
Enabled: false
|
268
|
+
Naming/RescuedExceptionsVariableName:
|
269
|
+
Enabled: false
|
270
|
+
Naming/VariableNumber:
|
271
|
+
Enabled: false
|
272
|
+
Performance/BindCall:
|
273
|
+
Enabled: false
|
274
|
+
Performance/DeletePrefix:
|
275
|
+
Enabled: false
|
276
|
+
Performance/DeleteSuffix:
|
277
|
+
Enabled: false
|
278
|
+
Performance/InefficientHashSearch:
|
279
|
+
Enabled: false
|
280
|
+
Performance/UnfreezeString:
|
281
|
+
Enabled: false
|
282
|
+
Performance/UriDefaultParser:
|
283
|
+
Enabled: false
|
284
|
+
RSpec/Be:
|
285
|
+
Enabled: false
|
286
|
+
RSpec/Capybara/CurrentPathExpectation:
|
287
|
+
Enabled: false
|
288
|
+
RSpec/Capybara/FeatureMethods:
|
289
|
+
Enabled: false
|
290
|
+
RSpec/Capybara/VisibilityMatcher:
|
291
|
+
Enabled: false
|
292
|
+
RSpec/ContextMethod:
|
293
|
+
Enabled: false
|
294
|
+
RSpec/ContextWording:
|
295
|
+
Enabled: false
|
296
|
+
RSpec/DescribeClass:
|
297
|
+
Enabled: false
|
298
|
+
RSpec/EmptyHook:
|
299
|
+
Enabled: false
|
300
|
+
RSpec/EmptyLineAfterExample:
|
301
|
+
Enabled: false
|
302
|
+
RSpec/EmptyLineAfterExampleGroup:
|
303
|
+
Enabled: false
|
304
|
+
RSpec/EmptyLineAfterHook:
|
305
|
+
Enabled: false
|
306
|
+
RSpec/ExampleLength:
|
307
|
+
Enabled: false
|
308
|
+
RSpec/ExampleWithoutDescription:
|
309
|
+
Enabled: false
|
310
|
+
RSpec/ExpectChange:
|
311
|
+
Enabled: false
|
312
|
+
RSpec/ExpectInHook:
|
313
|
+
Enabled: false
|
314
|
+
RSpec/FactoryBot/AttributeDefinedStatically:
|
315
|
+
Enabled: false
|
316
|
+
RSpec/FactoryBot/CreateList:
|
317
|
+
Enabled: false
|
318
|
+
RSpec/FactoryBot/FactoryClassName:
|
319
|
+
Enabled: false
|
320
|
+
RSpec/HooksBeforeExamples:
|
321
|
+
Enabled: false
|
322
|
+
RSpec/ImplicitBlockExpectation:
|
323
|
+
Enabled: false
|
324
|
+
RSpec/ImplicitSubject:
|
325
|
+
Enabled: false
|
326
|
+
RSpec/LeakyConstantDeclaration:
|
327
|
+
Enabled: false
|
328
|
+
RSpec/LetBeforeExamples:
|
329
|
+
Enabled: false
|
330
|
+
RSpec/MissingExampleGroupArgument:
|
331
|
+
Enabled: false
|
332
|
+
RSpec/MultipleExpectations:
|
333
|
+
Enabled: false
|
334
|
+
RSpec/MultipleMemoizedHelpers:
|
335
|
+
Enabled: false
|
336
|
+
RSpec/MultipleSubjects:
|
337
|
+
Enabled: false
|
338
|
+
RSpec/NestedGroups:
|
339
|
+
Enabled: false
|
340
|
+
RSpec/PredicateMatcher:
|
341
|
+
Enabled: false
|
342
|
+
RSpec/ReceiveCounts:
|
343
|
+
Enabled: false
|
344
|
+
RSpec/ReceiveNever:
|
345
|
+
Enabled: false
|
346
|
+
RSpec/RepeatedExampleGroupBody:
|
347
|
+
Enabled: false
|
348
|
+
RSpec/RepeatedExampleGroupDescription:
|
349
|
+
Enabled: false
|
350
|
+
RSpec/RepeatedIncludeExample:
|
351
|
+
Enabled: false
|
352
|
+
RSpec/ReturnFromStub:
|
353
|
+
Enabled: false
|
354
|
+
RSpec/SharedExamples:
|
355
|
+
Enabled: false
|
356
|
+
RSpec/StubbedMock:
|
357
|
+
Enabled: false
|
358
|
+
RSpec/UnspecifiedException:
|
359
|
+
Enabled: false
|
360
|
+
RSpec/VariableDefinition:
|
361
|
+
Enabled: false
|
362
|
+
RSpec/VoidExpect:
|
363
|
+
Enabled: false
|
364
|
+
RSpec/Yield:
|
365
|
+
Enabled: false
|
366
|
+
Security/Open:
|
367
|
+
Enabled: false
|
368
|
+
Style/AccessModifierDeclarations:
|
369
|
+
Enabled: false
|
370
|
+
Style/AccessorGrouping:
|
371
|
+
Enabled: false
|
372
|
+
Style/AsciiComments:
|
373
|
+
Enabled: false
|
374
|
+
Style/BisectedAttrAccessor:
|
375
|
+
Enabled: false
|
376
|
+
Style/CaseLikeIf:
|
377
|
+
Enabled: false
|
378
|
+
Style/ClassEqualityComparison:
|
379
|
+
Enabled: false
|
380
|
+
Style/ColonMethodDefinition:
|
381
|
+
Enabled: false
|
382
|
+
Style/CombinableLoops:
|
383
|
+
Enabled: false
|
384
|
+
Style/CommentedKeyword:
|
385
|
+
Enabled: false
|
386
|
+
Style/Dir:
|
387
|
+
Enabled: false
|
388
|
+
Style/DoubleCopDisableDirective:
|
389
|
+
Enabled: false
|
390
|
+
Style/EmptyBlockParameter:
|
391
|
+
Enabled: false
|
392
|
+
Style/EmptyLambdaParameter:
|
393
|
+
Enabled: false
|
394
|
+
Style/Encoding:
|
395
|
+
Enabled: false
|
396
|
+
Style/EvalWithLocation:
|
397
|
+
Enabled: false
|
398
|
+
Style/ExpandPathArguments:
|
399
|
+
Enabled: false
|
400
|
+
Style/ExplicitBlockArgument:
|
401
|
+
Enabled: false
|
402
|
+
Style/ExponentialNotation:
|
403
|
+
Enabled: false
|
404
|
+
Style/FloatDivision:
|
405
|
+
Enabled: false
|
406
|
+
Style/FrozenStringLiteralComment:
|
407
|
+
Enabled: false
|
408
|
+
Style/GlobalStdStream:
|
409
|
+
Enabled: false
|
410
|
+
Style/HashAsLastArrayItem:
|
411
|
+
Enabled: false
|
412
|
+
Style/HashLikeCase:
|
413
|
+
Enabled: false
|
414
|
+
Style/HashTransformKeys:
|
415
|
+
Enabled: false
|
416
|
+
Style/HashTransformValues:
|
417
|
+
Enabled: false
|
418
|
+
Style/IfUnlessModifier:
|
419
|
+
Enabled: false
|
420
|
+
Style/KeywordParametersOrder:
|
421
|
+
Enabled: false
|
422
|
+
Style/MinMax:
|
423
|
+
Enabled: false
|
424
|
+
Style/MixinUsage:
|
425
|
+
Enabled: false
|
426
|
+
Style/MultilineWhenThen:
|
427
|
+
Enabled: false
|
428
|
+
Style/NegatedUnless:
|
429
|
+
Enabled: false
|
430
|
+
Style/NumericPredicate:
|
431
|
+
Enabled: false
|
432
|
+
Style/OptionalBooleanParameter:
|
433
|
+
Enabled: false
|
434
|
+
Style/OrAssignment:
|
435
|
+
Enabled: false
|
436
|
+
Style/RandomWithOffset:
|
437
|
+
Enabled: false
|
438
|
+
Style/RedundantAssignment:
|
439
|
+
Enabled: false
|
440
|
+
Style/RedundantCondition:
|
441
|
+
Enabled: false
|
442
|
+
Style/RedundantConditional:
|
443
|
+
Enabled: false
|
444
|
+
Style/RedundantFetchBlock:
|
445
|
+
Enabled: false
|
446
|
+
Style/RedundantFileExtensionInRequire:
|
447
|
+
Enabled: false
|
448
|
+
Style/RedundantRegexpCharacterClass:
|
449
|
+
Enabled: false
|
450
|
+
Style/RedundantRegexpEscape:
|
451
|
+
Enabled: false
|
452
|
+
Style/RedundantSelfAssignment:
|
453
|
+
Enabled: false
|
454
|
+
Style/RedundantSort:
|
455
|
+
Enabled: false
|
456
|
+
Style/RescueStandardError:
|
457
|
+
Enabled: false
|
458
|
+
Style/SingleArgumentDig:
|
459
|
+
Enabled: false
|
460
|
+
Style/SlicingWithRange:
|
461
|
+
Enabled: false
|
462
|
+
Style/SoleNestedConditional:
|
463
|
+
Enabled: false
|
464
|
+
Style/StderrPuts:
|
465
|
+
Enabled: false
|
466
|
+
Style/StringConcatenation:
|
467
|
+
Enabled: false
|
468
|
+
Style/Strip:
|
469
|
+
Enabled: false
|
470
|
+
Style/SymbolProc:
|
471
|
+
Enabled: false
|
472
|
+
Style/TrailingBodyOnClass:
|
473
|
+
Enabled: false
|
474
|
+
Style/TrailingBodyOnMethodDefinition:
|
475
|
+
Enabled: false
|
476
|
+
Style/TrailingBodyOnModule:
|
477
|
+
Enabled: false
|
478
|
+
Style/TrailingCommaInHashLiteral:
|
479
|
+
Enabled: false
|
480
|
+
Style/TrailingMethodEndStatement:
|
481
|
+
Enabled: false
|
482
|
+
Style/UnpackFirst:
|
483
|
+
Enabled: false
|
484
|
+
Lint/DuplicateBranch:
|
485
|
+
Enabled: false
|
486
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
487
|
+
Enabled: false
|
488
|
+
Lint/EmptyBlock:
|
489
|
+
Enabled: false
|
490
|
+
Lint/EmptyClass:
|
491
|
+
Enabled: false
|
492
|
+
Lint/NoReturnInBeginEndBlocks:
|
493
|
+
Enabled: false
|
494
|
+
Lint/ToEnumArguments:
|
495
|
+
Enabled: false
|
496
|
+
Lint/UnexpectedBlockArity:
|
497
|
+
Enabled: false
|
498
|
+
Lint/UnmodifiedReduceAccumulator:
|
499
|
+
Enabled: false
|
500
|
+
Performance/CollectionLiteralInLoop:
|
501
|
+
Enabled: false
|
502
|
+
Style/ArgumentsForwarding:
|
503
|
+
Enabled: false
|
504
|
+
Style/CollectionCompact:
|
505
|
+
Enabled: false
|
506
|
+
Style/DocumentDynamicEvalDefinition:
|
507
|
+
Enabled: false
|
508
|
+
Style/NegatedIfElseCondition:
|
509
|
+
Enabled: false
|
510
|
+
Style/NilLambda:
|
511
|
+
Enabled: false
|
512
|
+
Style/RedundantArgument:
|
513
|
+
Enabled: false
|
514
|
+
Style/SwapValues:
|
515
|
+
Enabled: false
|
516
|
+
Gemspec/RequireMFA:
|
517
|
+
Enabled: false
|
518
|
+
Layout/LineEndStringConcatenationIndentation:
|
519
|
+
Enabled: false
|
520
|
+
Layout/SpaceBeforeBrackets:
|
521
|
+
Enabled: false
|
522
|
+
Lint/AmbiguousAssignment:
|
523
|
+
Enabled: true
|
524
|
+
Lint/AmbiguousOperatorPrecedence:
|
525
|
+
Enabled: true
|
526
|
+
Lint/AmbiguousRange:
|
527
|
+
Enabled: true
|
528
|
+
Lint/DeprecatedConstants:
|
529
|
+
Enabled: true
|
530
|
+
Lint/EmptyInPattern:
|
531
|
+
Enabled: true
|
532
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
533
|
+
Enabled: true
|
534
|
+
Lint/LambdaWithoutLiteralBlock:
|
535
|
+
Enabled: true
|
536
|
+
Lint/NumberedParameterAssignment:
|
537
|
+
Enabled: true
|
538
|
+
Lint/OrAssignmentToConstant:
|
539
|
+
Enabled: true
|
540
|
+
Lint/RedundantDirGlobSort:
|
541
|
+
Enabled: true
|
542
|
+
Lint/RefinementImportMethods:
|
543
|
+
Enabled: true
|
544
|
+
Lint/RequireRelativeSelfPath:
|
545
|
+
Enabled: true
|
546
|
+
Lint/SymbolConversion:
|
547
|
+
Enabled: true
|
548
|
+
Lint/TripleQuotes:
|
549
|
+
Enabled: true
|
550
|
+
Lint/UselessRuby2Keywords:
|
551
|
+
Enabled: true
|
552
|
+
Naming/BlockForwarding:
|
553
|
+
Enabled: true
|
554
|
+
Security/CompoundHash:
|
555
|
+
Enabled: true
|
556
|
+
Security/IoMethods:
|
557
|
+
Enabled: true
|
558
|
+
Style/EndlessMethod:
|
559
|
+
Enabled: true
|
560
|
+
Style/FetchEnvVar:
|
561
|
+
Enabled: true
|
562
|
+
Style/FileRead:
|
563
|
+
Enabled: true
|
564
|
+
Style/FileWrite:
|
565
|
+
Enabled: true
|
566
|
+
Style/HashConversion:
|
567
|
+
Enabled: true
|
568
|
+
Style/HashExcept:
|
569
|
+
Enabled: true
|
570
|
+
Style/IfWithBooleanLiteralBranches:
|
571
|
+
Enabled: true
|
572
|
+
Style/InPatternThen:
|
573
|
+
Enabled: true
|
574
|
+
Style/MapToHash:
|
575
|
+
Enabled: true
|
576
|
+
Style/MultilineInPatternThen:
|
577
|
+
Enabled: true
|
578
|
+
Style/NestedFileDirname:
|
579
|
+
Enabled: true
|
580
|
+
Style/NumberedParameters:
|
581
|
+
Enabled: true
|
582
|
+
Style/NumberedParametersLimit:
|
583
|
+
Enabled: true
|
584
|
+
Style/ObjectThen:
|
585
|
+
Enabled: true
|
586
|
+
Style/OpenStructUse:
|
587
|
+
Enabled: true
|
588
|
+
Style/QuotedSymbols:
|
589
|
+
Enabled: true
|
590
|
+
Style/RedundantInitialize:
|
591
|
+
Enabled: true
|
592
|
+
Style/RedundantSelfAssignmentBranch:
|
593
|
+
Enabled: true
|
594
|
+
Style/SelectByRegexp:
|
595
|
+
Enabled: true
|
596
|
+
Style/StringChars:
|
597
|
+
Enabled: true
|
598
|
+
Performance/ConcurrentMonotonicTime:
|
599
|
+
Enabled: true
|
600
|
+
Performance/MapCompact:
|
601
|
+
Enabled: true
|
602
|
+
Performance/RedundantEqualityComparisonBlock:
|
603
|
+
Enabled: true
|
604
|
+
Performance/RedundantSplitRegexpArgument:
|
605
|
+
Enabled: true
|
606
|
+
Performance/StringIdentifierArgument:
|
607
|
+
Enabled: true
|
608
|
+
RSpec/BeEq:
|
609
|
+
Enabled: true
|
610
|
+
RSpec/BeNil:
|
611
|
+
Enabled: true
|
612
|
+
RSpec/ExcessiveDocstringSpacing:
|
613
|
+
Enabled: true
|
614
|
+
RSpec/IdenticalEqualityAssertion:
|
615
|
+
Enabled: true
|
616
|
+
RSpec/SubjectDeclaration:
|
617
|
+
Enabled: true
|
618
|
+
RSpec/VerifiedDoubleReference:
|
619
|
+
Enabled: true
|
620
|
+
RSpec/FactoryBot/SyntaxMethods:
|
621
|
+
Enabled: false
|
622
|
+
RSpec/Rails/AvoidSetupHook:
|
623
|
+
Enabled: false
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in compliance_engine.gemspec
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem 'rake', '~> 13.0'
|
9
|
+
|
10
|
+
group :tests do
|
11
|
+
gem 'rspec', '~> 3.12'
|
12
|
+
gem 'rubocop', '~> 1.57'
|
13
|
+
gem 'rubocop-performance', '~> 1.19'
|
14
|
+
gem 'rubocop-rake', '~> 0.6.0'
|
15
|
+
gem 'rubocop-rspec', '~> 2.24'
|
16
|
+
end
|
17
|
+
|
18
|
+
group :development do
|
19
|
+
gem 'pry'
|
20
|
+
gem 'pry-byebug'
|
21
|
+
gem 'ruby-prof'
|
22
|
+
end
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# ComplianceEngine
|
2
|
+
|
3
|
+
TODO: Delete this and the text below, and describe your gem
|
4
|
+
|
5
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/compliance_engine`. To experiment with that code, run `bin/console` for an interactive prompt.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
+
|
11
|
+
Install the gem and add to the application's Gemfile by executing:
|
12
|
+
|
13
|
+
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
14
|
+
|
15
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
+
|
17
|
+
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Development
|
24
|
+
|
25
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
|
+
|
27
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
28
|
+
|
29
|
+
## Contributing
|
30
|
+
|
31
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/compliance_engine.
|