@rigour-labs/core 3.0.3 → 3.0.4
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.
- package/dist/gates/deprecated-apis.d.ts +55 -0
- package/dist/gates/deprecated-apis.js +724 -0
- package/dist/gates/deprecated-apis.test.d.ts +1 -0
- package/dist/gates/deprecated-apis.test.js +288 -0
- package/dist/gates/phantom-apis.d.ts +77 -0
- package/dist/gates/phantom-apis.js +675 -0
- package/dist/gates/phantom-apis.test.d.ts +1 -0
- package/dist/gates/phantom-apis.test.js +320 -0
- package/dist/gates/runner.js +13 -0
- package/dist/gates/test-quality.d.ts +67 -0
- package/dist/gates/test-quality.js +512 -0
- package/dist/gates/test-quality.test.d.ts +1 -0
- package/dist/gates/test-quality.test.js +312 -0
- package/dist/templates/index.js +31 -1
- package/dist/types/index.d.ts +348 -0
- package/dist/types/index.js +33 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -315,6 +315,90 @@ export declare const GatesSchema: z.ZodObject<{
|
|
|
315
315
|
check_async_without_await?: boolean | undefined;
|
|
316
316
|
check_unsafe_fetch?: boolean | undefined;
|
|
317
317
|
}>>>;
|
|
318
|
+
phantom_apis: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
319
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
320
|
+
check_node: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
321
|
+
check_python: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
322
|
+
check_go: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
323
|
+
check_csharp: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
324
|
+
check_java: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
325
|
+
ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
|
327
|
+
enabled: boolean;
|
|
328
|
+
ignore_patterns: string[];
|
|
329
|
+
check_node: boolean;
|
|
330
|
+
check_python: boolean;
|
|
331
|
+
check_go: boolean;
|
|
332
|
+
check_csharp: boolean;
|
|
333
|
+
check_java: boolean;
|
|
334
|
+
}, {
|
|
335
|
+
enabled?: boolean | undefined;
|
|
336
|
+
ignore_patterns?: string[] | undefined;
|
|
337
|
+
check_node?: boolean | undefined;
|
|
338
|
+
check_python?: boolean | undefined;
|
|
339
|
+
check_go?: boolean | undefined;
|
|
340
|
+
check_csharp?: boolean | undefined;
|
|
341
|
+
check_java?: boolean | undefined;
|
|
342
|
+
}>>>;
|
|
343
|
+
deprecated_apis: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
344
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
345
|
+
check_node: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
346
|
+
check_python: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
347
|
+
check_web: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
348
|
+
check_go: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
349
|
+
check_csharp: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
350
|
+
check_java: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
351
|
+
block_security_deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
352
|
+
ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
353
|
+
}, "strip", z.ZodTypeAny, {
|
|
354
|
+
enabled: boolean;
|
|
355
|
+
ignore_patterns: string[];
|
|
356
|
+
check_node: boolean;
|
|
357
|
+
check_python: boolean;
|
|
358
|
+
check_go: boolean;
|
|
359
|
+
check_csharp: boolean;
|
|
360
|
+
check_java: boolean;
|
|
361
|
+
check_web: boolean;
|
|
362
|
+
block_security_deprecated: boolean;
|
|
363
|
+
}, {
|
|
364
|
+
enabled?: boolean | undefined;
|
|
365
|
+
ignore_patterns?: string[] | undefined;
|
|
366
|
+
check_node?: boolean | undefined;
|
|
367
|
+
check_python?: boolean | undefined;
|
|
368
|
+
check_go?: boolean | undefined;
|
|
369
|
+
check_csharp?: boolean | undefined;
|
|
370
|
+
check_java?: boolean | undefined;
|
|
371
|
+
check_web?: boolean | undefined;
|
|
372
|
+
block_security_deprecated?: boolean | undefined;
|
|
373
|
+
}>>>;
|
|
374
|
+
test_quality: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
375
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
376
|
+
check_empty_tests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
377
|
+
check_tautological: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
378
|
+
check_mock_heavy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
379
|
+
check_snapshot_abuse: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
380
|
+
check_assertion_free_async: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
381
|
+
max_mocks_per_test: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
382
|
+
ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
383
|
+
}, "strip", z.ZodTypeAny, {
|
|
384
|
+
enabled: boolean;
|
|
385
|
+
ignore_patterns: string[];
|
|
386
|
+
check_empty_tests: boolean;
|
|
387
|
+
check_tautological: boolean;
|
|
388
|
+
check_mock_heavy: boolean;
|
|
389
|
+
check_snapshot_abuse: boolean;
|
|
390
|
+
check_assertion_free_async: boolean;
|
|
391
|
+
max_mocks_per_test: number;
|
|
392
|
+
}, {
|
|
393
|
+
enabled?: boolean | undefined;
|
|
394
|
+
ignore_patterns?: string[] | undefined;
|
|
395
|
+
check_empty_tests?: boolean | undefined;
|
|
396
|
+
check_tautological?: boolean | undefined;
|
|
397
|
+
check_mock_heavy?: boolean | undefined;
|
|
398
|
+
check_snapshot_abuse?: boolean | undefined;
|
|
399
|
+
check_assertion_free_async?: boolean | undefined;
|
|
400
|
+
max_mocks_per_test?: number | undefined;
|
|
401
|
+
}>>>;
|
|
318
402
|
}, "strip", z.ZodTypeAny, {
|
|
319
403
|
max_file_lines: number;
|
|
320
404
|
forbid_todos: boolean;
|
|
@@ -433,6 +517,36 @@ export declare const GatesSchema: z.ZodObject<{
|
|
|
433
517
|
check_async_without_await: boolean;
|
|
434
518
|
check_unsafe_fetch: boolean;
|
|
435
519
|
};
|
|
520
|
+
phantom_apis: {
|
|
521
|
+
enabled: boolean;
|
|
522
|
+
ignore_patterns: string[];
|
|
523
|
+
check_node: boolean;
|
|
524
|
+
check_python: boolean;
|
|
525
|
+
check_go: boolean;
|
|
526
|
+
check_csharp: boolean;
|
|
527
|
+
check_java: boolean;
|
|
528
|
+
};
|
|
529
|
+
deprecated_apis: {
|
|
530
|
+
enabled: boolean;
|
|
531
|
+
ignore_patterns: string[];
|
|
532
|
+
check_node: boolean;
|
|
533
|
+
check_python: boolean;
|
|
534
|
+
check_go: boolean;
|
|
535
|
+
check_csharp: boolean;
|
|
536
|
+
check_java: boolean;
|
|
537
|
+
check_web: boolean;
|
|
538
|
+
block_security_deprecated: boolean;
|
|
539
|
+
};
|
|
540
|
+
test_quality: {
|
|
541
|
+
enabled: boolean;
|
|
542
|
+
ignore_patterns: string[];
|
|
543
|
+
check_empty_tests: boolean;
|
|
544
|
+
check_tautological: boolean;
|
|
545
|
+
check_mock_heavy: boolean;
|
|
546
|
+
check_snapshot_abuse: boolean;
|
|
547
|
+
check_assertion_free_async: boolean;
|
|
548
|
+
max_mocks_per_test: number;
|
|
549
|
+
};
|
|
436
550
|
}, {
|
|
437
551
|
max_file_lines?: number | undefined;
|
|
438
552
|
forbid_todos?: boolean | undefined;
|
|
@@ -551,6 +665,36 @@ export declare const GatesSchema: z.ZodObject<{
|
|
|
551
665
|
check_async_without_await?: boolean | undefined;
|
|
552
666
|
check_unsafe_fetch?: boolean | undefined;
|
|
553
667
|
} | undefined;
|
|
668
|
+
phantom_apis?: {
|
|
669
|
+
enabled?: boolean | undefined;
|
|
670
|
+
ignore_patterns?: string[] | undefined;
|
|
671
|
+
check_node?: boolean | undefined;
|
|
672
|
+
check_python?: boolean | undefined;
|
|
673
|
+
check_go?: boolean | undefined;
|
|
674
|
+
check_csharp?: boolean | undefined;
|
|
675
|
+
check_java?: boolean | undefined;
|
|
676
|
+
} | undefined;
|
|
677
|
+
deprecated_apis?: {
|
|
678
|
+
enabled?: boolean | undefined;
|
|
679
|
+
ignore_patterns?: string[] | undefined;
|
|
680
|
+
check_node?: boolean | undefined;
|
|
681
|
+
check_python?: boolean | undefined;
|
|
682
|
+
check_go?: boolean | undefined;
|
|
683
|
+
check_csharp?: boolean | undefined;
|
|
684
|
+
check_java?: boolean | undefined;
|
|
685
|
+
check_web?: boolean | undefined;
|
|
686
|
+
block_security_deprecated?: boolean | undefined;
|
|
687
|
+
} | undefined;
|
|
688
|
+
test_quality?: {
|
|
689
|
+
enabled?: boolean | undefined;
|
|
690
|
+
ignore_patterns?: string[] | undefined;
|
|
691
|
+
check_empty_tests?: boolean | undefined;
|
|
692
|
+
check_tautological?: boolean | undefined;
|
|
693
|
+
check_mock_heavy?: boolean | undefined;
|
|
694
|
+
check_snapshot_abuse?: boolean | undefined;
|
|
695
|
+
check_assertion_free_async?: boolean | undefined;
|
|
696
|
+
max_mocks_per_test?: number | undefined;
|
|
697
|
+
} | undefined;
|
|
554
698
|
}>;
|
|
555
699
|
export declare const CommandsSchema: z.ZodObject<{
|
|
556
700
|
format: z.ZodOptional<z.ZodString>;
|
|
@@ -923,6 +1067,90 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
923
1067
|
check_async_without_await?: boolean | undefined;
|
|
924
1068
|
check_unsafe_fetch?: boolean | undefined;
|
|
925
1069
|
}>>>;
|
|
1070
|
+
phantom_apis: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1071
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1072
|
+
check_node: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1073
|
+
check_python: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1074
|
+
check_go: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1075
|
+
check_csharp: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1076
|
+
check_java: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1077
|
+
ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1078
|
+
}, "strip", z.ZodTypeAny, {
|
|
1079
|
+
enabled: boolean;
|
|
1080
|
+
ignore_patterns: string[];
|
|
1081
|
+
check_node: boolean;
|
|
1082
|
+
check_python: boolean;
|
|
1083
|
+
check_go: boolean;
|
|
1084
|
+
check_csharp: boolean;
|
|
1085
|
+
check_java: boolean;
|
|
1086
|
+
}, {
|
|
1087
|
+
enabled?: boolean | undefined;
|
|
1088
|
+
ignore_patterns?: string[] | undefined;
|
|
1089
|
+
check_node?: boolean | undefined;
|
|
1090
|
+
check_python?: boolean | undefined;
|
|
1091
|
+
check_go?: boolean | undefined;
|
|
1092
|
+
check_csharp?: boolean | undefined;
|
|
1093
|
+
check_java?: boolean | undefined;
|
|
1094
|
+
}>>>;
|
|
1095
|
+
deprecated_apis: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1096
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1097
|
+
check_node: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1098
|
+
check_python: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1099
|
+
check_web: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1100
|
+
check_go: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1101
|
+
check_csharp: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1102
|
+
check_java: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1103
|
+
block_security_deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1104
|
+
ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1105
|
+
}, "strip", z.ZodTypeAny, {
|
|
1106
|
+
enabled: boolean;
|
|
1107
|
+
ignore_patterns: string[];
|
|
1108
|
+
check_node: boolean;
|
|
1109
|
+
check_python: boolean;
|
|
1110
|
+
check_go: boolean;
|
|
1111
|
+
check_csharp: boolean;
|
|
1112
|
+
check_java: boolean;
|
|
1113
|
+
check_web: boolean;
|
|
1114
|
+
block_security_deprecated: boolean;
|
|
1115
|
+
}, {
|
|
1116
|
+
enabled?: boolean | undefined;
|
|
1117
|
+
ignore_patterns?: string[] | undefined;
|
|
1118
|
+
check_node?: boolean | undefined;
|
|
1119
|
+
check_python?: boolean | undefined;
|
|
1120
|
+
check_go?: boolean | undefined;
|
|
1121
|
+
check_csharp?: boolean | undefined;
|
|
1122
|
+
check_java?: boolean | undefined;
|
|
1123
|
+
check_web?: boolean | undefined;
|
|
1124
|
+
block_security_deprecated?: boolean | undefined;
|
|
1125
|
+
}>>>;
|
|
1126
|
+
test_quality: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1127
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1128
|
+
check_empty_tests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1129
|
+
check_tautological: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1130
|
+
check_mock_heavy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1131
|
+
check_snapshot_abuse: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1132
|
+
check_assertion_free_async: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1133
|
+
max_mocks_per_test: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1134
|
+
ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1135
|
+
}, "strip", z.ZodTypeAny, {
|
|
1136
|
+
enabled: boolean;
|
|
1137
|
+
ignore_patterns: string[];
|
|
1138
|
+
check_empty_tests: boolean;
|
|
1139
|
+
check_tautological: boolean;
|
|
1140
|
+
check_mock_heavy: boolean;
|
|
1141
|
+
check_snapshot_abuse: boolean;
|
|
1142
|
+
check_assertion_free_async: boolean;
|
|
1143
|
+
max_mocks_per_test: number;
|
|
1144
|
+
}, {
|
|
1145
|
+
enabled?: boolean | undefined;
|
|
1146
|
+
ignore_patterns?: string[] | undefined;
|
|
1147
|
+
check_empty_tests?: boolean | undefined;
|
|
1148
|
+
check_tautological?: boolean | undefined;
|
|
1149
|
+
check_mock_heavy?: boolean | undefined;
|
|
1150
|
+
check_snapshot_abuse?: boolean | undefined;
|
|
1151
|
+
check_assertion_free_async?: boolean | undefined;
|
|
1152
|
+
max_mocks_per_test?: number | undefined;
|
|
1153
|
+
}>>>;
|
|
926
1154
|
}, "strip", z.ZodTypeAny, {
|
|
927
1155
|
max_file_lines: number;
|
|
928
1156
|
forbid_todos: boolean;
|
|
@@ -1041,6 +1269,36 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
1041
1269
|
check_async_without_await: boolean;
|
|
1042
1270
|
check_unsafe_fetch: boolean;
|
|
1043
1271
|
};
|
|
1272
|
+
phantom_apis: {
|
|
1273
|
+
enabled: boolean;
|
|
1274
|
+
ignore_patterns: string[];
|
|
1275
|
+
check_node: boolean;
|
|
1276
|
+
check_python: boolean;
|
|
1277
|
+
check_go: boolean;
|
|
1278
|
+
check_csharp: boolean;
|
|
1279
|
+
check_java: boolean;
|
|
1280
|
+
};
|
|
1281
|
+
deprecated_apis: {
|
|
1282
|
+
enabled: boolean;
|
|
1283
|
+
ignore_patterns: string[];
|
|
1284
|
+
check_node: boolean;
|
|
1285
|
+
check_python: boolean;
|
|
1286
|
+
check_go: boolean;
|
|
1287
|
+
check_csharp: boolean;
|
|
1288
|
+
check_java: boolean;
|
|
1289
|
+
check_web: boolean;
|
|
1290
|
+
block_security_deprecated: boolean;
|
|
1291
|
+
};
|
|
1292
|
+
test_quality: {
|
|
1293
|
+
enabled: boolean;
|
|
1294
|
+
ignore_patterns: string[];
|
|
1295
|
+
check_empty_tests: boolean;
|
|
1296
|
+
check_tautological: boolean;
|
|
1297
|
+
check_mock_heavy: boolean;
|
|
1298
|
+
check_snapshot_abuse: boolean;
|
|
1299
|
+
check_assertion_free_async: boolean;
|
|
1300
|
+
max_mocks_per_test: number;
|
|
1301
|
+
};
|
|
1044
1302
|
}, {
|
|
1045
1303
|
max_file_lines?: number | undefined;
|
|
1046
1304
|
forbid_todos?: boolean | undefined;
|
|
@@ -1159,6 +1417,36 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
1159
1417
|
check_async_without_await?: boolean | undefined;
|
|
1160
1418
|
check_unsafe_fetch?: boolean | undefined;
|
|
1161
1419
|
} | undefined;
|
|
1420
|
+
phantom_apis?: {
|
|
1421
|
+
enabled?: boolean | undefined;
|
|
1422
|
+
ignore_patterns?: string[] | undefined;
|
|
1423
|
+
check_node?: boolean | undefined;
|
|
1424
|
+
check_python?: boolean | undefined;
|
|
1425
|
+
check_go?: boolean | undefined;
|
|
1426
|
+
check_csharp?: boolean | undefined;
|
|
1427
|
+
check_java?: boolean | undefined;
|
|
1428
|
+
} | undefined;
|
|
1429
|
+
deprecated_apis?: {
|
|
1430
|
+
enabled?: boolean | undefined;
|
|
1431
|
+
ignore_patterns?: string[] | undefined;
|
|
1432
|
+
check_node?: boolean | undefined;
|
|
1433
|
+
check_python?: boolean | undefined;
|
|
1434
|
+
check_go?: boolean | undefined;
|
|
1435
|
+
check_csharp?: boolean | undefined;
|
|
1436
|
+
check_java?: boolean | undefined;
|
|
1437
|
+
check_web?: boolean | undefined;
|
|
1438
|
+
block_security_deprecated?: boolean | undefined;
|
|
1439
|
+
} | undefined;
|
|
1440
|
+
test_quality?: {
|
|
1441
|
+
enabled?: boolean | undefined;
|
|
1442
|
+
ignore_patterns?: string[] | undefined;
|
|
1443
|
+
check_empty_tests?: boolean | undefined;
|
|
1444
|
+
check_tautological?: boolean | undefined;
|
|
1445
|
+
check_mock_heavy?: boolean | undefined;
|
|
1446
|
+
check_snapshot_abuse?: boolean | undefined;
|
|
1447
|
+
check_assertion_free_async?: boolean | undefined;
|
|
1448
|
+
max_mocks_per_test?: number | undefined;
|
|
1449
|
+
} | undefined;
|
|
1162
1450
|
}>>>;
|
|
1163
1451
|
hooks: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1164
1452
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -1315,6 +1603,36 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
1315
1603
|
check_async_without_await: boolean;
|
|
1316
1604
|
check_unsafe_fetch: boolean;
|
|
1317
1605
|
};
|
|
1606
|
+
phantom_apis: {
|
|
1607
|
+
enabled: boolean;
|
|
1608
|
+
ignore_patterns: string[];
|
|
1609
|
+
check_node: boolean;
|
|
1610
|
+
check_python: boolean;
|
|
1611
|
+
check_go: boolean;
|
|
1612
|
+
check_csharp: boolean;
|
|
1613
|
+
check_java: boolean;
|
|
1614
|
+
};
|
|
1615
|
+
deprecated_apis: {
|
|
1616
|
+
enabled: boolean;
|
|
1617
|
+
ignore_patterns: string[];
|
|
1618
|
+
check_node: boolean;
|
|
1619
|
+
check_python: boolean;
|
|
1620
|
+
check_go: boolean;
|
|
1621
|
+
check_csharp: boolean;
|
|
1622
|
+
check_java: boolean;
|
|
1623
|
+
check_web: boolean;
|
|
1624
|
+
block_security_deprecated: boolean;
|
|
1625
|
+
};
|
|
1626
|
+
test_quality: {
|
|
1627
|
+
enabled: boolean;
|
|
1628
|
+
ignore_patterns: string[];
|
|
1629
|
+
check_empty_tests: boolean;
|
|
1630
|
+
check_tautological: boolean;
|
|
1631
|
+
check_mock_heavy: boolean;
|
|
1632
|
+
check_snapshot_abuse: boolean;
|
|
1633
|
+
check_assertion_free_async: boolean;
|
|
1634
|
+
max_mocks_per_test: number;
|
|
1635
|
+
};
|
|
1318
1636
|
};
|
|
1319
1637
|
hooks: {
|
|
1320
1638
|
enabled: boolean;
|
|
@@ -1458,6 +1776,36 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
1458
1776
|
check_async_without_await?: boolean | undefined;
|
|
1459
1777
|
check_unsafe_fetch?: boolean | undefined;
|
|
1460
1778
|
} | undefined;
|
|
1779
|
+
phantom_apis?: {
|
|
1780
|
+
enabled?: boolean | undefined;
|
|
1781
|
+
ignore_patterns?: string[] | undefined;
|
|
1782
|
+
check_node?: boolean | undefined;
|
|
1783
|
+
check_python?: boolean | undefined;
|
|
1784
|
+
check_go?: boolean | undefined;
|
|
1785
|
+
check_csharp?: boolean | undefined;
|
|
1786
|
+
check_java?: boolean | undefined;
|
|
1787
|
+
} | undefined;
|
|
1788
|
+
deprecated_apis?: {
|
|
1789
|
+
enabled?: boolean | undefined;
|
|
1790
|
+
ignore_patterns?: string[] | undefined;
|
|
1791
|
+
check_node?: boolean | undefined;
|
|
1792
|
+
check_python?: boolean | undefined;
|
|
1793
|
+
check_go?: boolean | undefined;
|
|
1794
|
+
check_csharp?: boolean | undefined;
|
|
1795
|
+
check_java?: boolean | undefined;
|
|
1796
|
+
check_web?: boolean | undefined;
|
|
1797
|
+
block_security_deprecated?: boolean | undefined;
|
|
1798
|
+
} | undefined;
|
|
1799
|
+
test_quality?: {
|
|
1800
|
+
enabled?: boolean | undefined;
|
|
1801
|
+
ignore_patterns?: string[] | undefined;
|
|
1802
|
+
check_empty_tests?: boolean | undefined;
|
|
1803
|
+
check_tautological?: boolean | undefined;
|
|
1804
|
+
check_mock_heavy?: boolean | undefined;
|
|
1805
|
+
check_snapshot_abuse?: boolean | undefined;
|
|
1806
|
+
check_assertion_free_async?: boolean | undefined;
|
|
1807
|
+
max_mocks_per_test?: number | undefined;
|
|
1808
|
+
} | undefined;
|
|
1461
1809
|
} | undefined;
|
|
1462
1810
|
hooks?: {
|
|
1463
1811
|
enabled?: boolean | undefined;
|
package/dist/types/index.js
CHANGED
|
@@ -137,6 +137,37 @@ export const GatesSchema = z.object({
|
|
|
137
137
|
check_unsafe_fetch: z.boolean().optional().default(true),
|
|
138
138
|
ignore_patterns: z.array(z.string()).optional().default([]),
|
|
139
139
|
}).optional().default({}),
|
|
140
|
+
// v3.1+ Extended Hallucination Detection
|
|
141
|
+
phantom_apis: z.object({
|
|
142
|
+
enabled: z.boolean().optional().default(true),
|
|
143
|
+
check_node: z.boolean().optional().default(true),
|
|
144
|
+
check_python: z.boolean().optional().default(true),
|
|
145
|
+
check_go: z.boolean().optional().default(true),
|
|
146
|
+
check_csharp: z.boolean().optional().default(true),
|
|
147
|
+
check_java: z.boolean().optional().default(true),
|
|
148
|
+
ignore_patterns: z.array(z.string()).optional().default([]),
|
|
149
|
+
}).optional().default({}),
|
|
150
|
+
deprecated_apis: z.object({
|
|
151
|
+
enabled: z.boolean().optional().default(true),
|
|
152
|
+
check_node: z.boolean().optional().default(true),
|
|
153
|
+
check_python: z.boolean().optional().default(true),
|
|
154
|
+
check_web: z.boolean().optional().default(true),
|
|
155
|
+
check_go: z.boolean().optional().default(true),
|
|
156
|
+
check_csharp: z.boolean().optional().default(true),
|
|
157
|
+
check_java: z.boolean().optional().default(true),
|
|
158
|
+
block_security_deprecated: z.boolean().optional().default(true),
|
|
159
|
+
ignore_patterns: z.array(z.string()).optional().default([]),
|
|
160
|
+
}).optional().default({}),
|
|
161
|
+
test_quality: z.object({
|
|
162
|
+
enabled: z.boolean().optional().default(true),
|
|
163
|
+
check_empty_tests: z.boolean().optional().default(true),
|
|
164
|
+
check_tautological: z.boolean().optional().default(true),
|
|
165
|
+
check_mock_heavy: z.boolean().optional().default(true),
|
|
166
|
+
check_snapshot_abuse: z.boolean().optional().default(true),
|
|
167
|
+
check_assertion_free_async: z.boolean().optional().default(true),
|
|
168
|
+
max_mocks_per_test: z.number().optional().default(5),
|
|
169
|
+
ignore_patterns: z.array(z.string()).optional().default([]),
|
|
170
|
+
}).optional().default({}),
|
|
140
171
|
});
|
|
141
172
|
export const CommandsSchema = z.object({
|
|
142
173
|
format: z.string().optional(),
|
|
@@ -149,6 +180,8 @@ export const HooksSchema = z.object({
|
|
|
149
180
|
tools: z.array(z.enum(['claude', 'cursor', 'cline', 'windsurf'])).optional().default([]),
|
|
150
181
|
fast_gates: z.array(z.string()).optional().default([
|
|
151
182
|
'hallucinated-imports',
|
|
183
|
+
'phantom-apis',
|
|
184
|
+
'deprecated-apis',
|
|
152
185
|
'promise-safety',
|
|
153
186
|
'security-patterns',
|
|
154
187
|
'file-size',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigour-labs/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Deterministic quality gate engine for AI-generated code. AST analysis, drift detection, and Fix Packet generation across TypeScript, JavaScript, Python, Go, Ruby, and C#.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://rigour.run",
|