@hublo/sentinel 1.7.0-alpha.3 → 1.7.0-alpha.30
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/README.md +3 -0
- package/dist/bin/sentinel.js +88 -81
- package/dist/{chunk-P6KTBQ2Q.js → chunk-2PRJJRJI.js} +24 -15
- package/dist/{chunk-THTXP2QU.js → chunk-APBEGLRI.js} +6 -6
- package/dist/chunk-APBEGLRI.js.map +1 -0
- package/dist/{chunk-F6ART7RH.js → chunk-HYXFUUF5.js} +14959 -6817
- package/dist/{chunk-4YQXLPJ5.js → chunk-LVY5NPOC.js} +2 -2
- package/dist/chunk-PXTU5MPW.js +9 -0
- package/dist/chunk-PXTU5MPW.js.map +1 -0
- package/dist/chunk-SHF46ALB.js +190 -0
- package/dist/chunk-SHF46ALB.js.map +1 -0
- package/dist/chunk-TMVKYXZ3.js +18 -0
- package/dist/chunk-TMVKYXZ3.js.map +1 -0
- package/dist/chunk-XYOIXC6A.js +126 -0
- package/dist/chunk-XYOIXC6A.js.map +1 -0
- package/dist/{chunk-ZNANJEMK.js → chunk-YUZB4LRJ.js} +35 -16
- package/dist/chunk-YUZB4LRJ.js.map +1 -0
- package/dist/chunk-ZZMYV576.js +297 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -5
- package/dist/{migrate-NWQ3LYER.js → migrate-X7PB2X7R.js} +237 -228
- package/dist/roles/arch/config.d.ts +25 -0
- package/dist/roles/arch/config.js +8 -0
- package/dist/roles/arch/config.js.map +1 -0
- package/dist/roles/build/nest/toolchain.js +3 -3
- package/dist/roles/code-churn/config.d.ts +92 -0
- package/dist/roles/code-churn/config.js +10 -0
- package/dist/roles/code-churn/config.js.map +1 -0
- package/dist/roles/sql/config.d.ts +68 -0
- package/dist/roles/sql/config.js +8 -0
- package/dist/roles/sql/config.js.map +1 -0
- package/dist/roles/static-analysis/config.js +2 -1
- package/dist/roles/test/setup/file-boundary.js +3 -3
- package/dist/roles/test/setup/jest-parity.js +4 -4
- package/dist/roles/test/setup/workspace-entry.js +2 -2
- package/dist/{validate-4V3EGTXN.js → validate-4GMB32V7.js} +2 -2
- package/docs/arch-adoption.md +201 -0
- package/docs/code-churn-adoption.md +237 -0
- package/docs/sql-adoption.md +672 -0
- package/docs/static-analysis-adoption.md +1 -1
- package/docs/static-analysis-study.md +49 -10
- package/docs/typescript-adoption.md +47 -6
- package/docs/typescript-traces.md +546 -6
- package/docs/using-sentinel.md +4 -2
- package/package.json +17 -1
- package/dist/chunk-THTXP2QU.js.map +0 -1
- package/dist/chunk-ZNANJEMK.js.map +0 -1
- /package/dist/{chunk-4YQXLPJ5.js.map → chunk-LVY5NPOC.js.map} +0 -0
|
@@ -236,11 +236,13 @@ $ sentinel --report --json 2>/dev/null
|
|
|
236
236
|
"typescript",
|
|
237
237
|
"build",
|
|
238
238
|
"test",
|
|
239
|
-
"static-analysis"
|
|
239
|
+
"static-analysis",
|
|
240
|
+
"sql",
|
|
241
|
+
"code-churn",
|
|
242
|
+
"arch"
|
|
240
243
|
],
|
|
241
244
|
"skipped": [
|
|
242
|
-
"runtime-analysis"
|
|
243
|
-
"arch"
|
|
245
|
+
"runtime-analysis"
|
|
244
246
|
],
|
|
245
247
|
"results": [
|
|
246
248
|
{
|
|
@@ -319,6 +321,58 @@ $ sentinel --report --json 2>/dev/null
|
|
|
319
321
|
"preset": null,
|
|
320
322
|
"conformant": false
|
|
321
323
|
},
|
|
324
|
+
{
|
|
325
|
+
"project": "svelte-app",
|
|
326
|
+
"target": "sql",
|
|
327
|
+
"flavour": "svelte",
|
|
328
|
+
"ok": true,
|
|
329
|
+
"status": "ok",
|
|
330
|
+
"migrations": 0,
|
|
331
|
+
"codeFiles": 1,
|
|
332
|
+
"unsafeFiles": 0,
|
|
333
|
+
"templateFiles": 0,
|
|
334
|
+
"base": null,
|
|
335
|
+
"migrationsRead": 0,
|
|
336
|
+
"migrationsUnchanged": 0,
|
|
337
|
+
"migrationsUnread": 0,
|
|
338
|
+
"unsafeFilesRead": 0,
|
|
339
|
+
"unsafeCalls": 0,
|
|
340
|
+
"rawFragmentCalls": 0,
|
|
341
|
+
"unsafeUnparsed": 0,
|
|
342
|
+
"templateFilesRead": 0,
|
|
343
|
+
"templatesRead": 0,
|
|
344
|
+
"templatesUnread": 0,
|
|
345
|
+
"findings": 0,
|
|
346
|
+
"errors": 0,
|
|
347
|
+
"rulesOff": [],
|
|
348
|
+
"syntaxErrors": 0,
|
|
349
|
+
"findingsByRule": {},
|
|
350
|
+
"adopted": false,
|
|
351
|
+
"preset": null,
|
|
352
|
+
"conformant": false
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"project": "svelte-app",
|
|
356
|
+
"target": "code-churn",
|
|
357
|
+
"flavour": "svelte",
|
|
358
|
+
"ok": true,
|
|
359
|
+
"status": "ok",
|
|
360
|
+
"files": 1,
|
|
361
|
+
"historyRead": false,
|
|
362
|
+
"adopted": false,
|
|
363
|
+
"preset": null,
|
|
364
|
+
"conformant": false
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"project": "svelte-app",
|
|
368
|
+
"target": "arch",
|
|
369
|
+
"flavour": "svelte",
|
|
370
|
+
"ok": true,
|
|
371
|
+
"status": "ok",
|
|
372
|
+
"adopted": false,
|
|
373
|
+
"preset": null,
|
|
374
|
+
"conformant": false
|
|
375
|
+
},
|
|
322
376
|
{
|
|
323
377
|
"project": "bff-admin",
|
|
324
378
|
"target": "lint",
|
|
@@ -395,6 +449,58 @@ $ sentinel --report --json 2>/dev/null
|
|
|
395
449
|
"preset": null,
|
|
396
450
|
"conformant": false
|
|
397
451
|
},
|
|
452
|
+
{
|
|
453
|
+
"project": "bff-admin",
|
|
454
|
+
"target": "sql",
|
|
455
|
+
"flavour": "nest",
|
|
456
|
+
"ok": true,
|
|
457
|
+
"status": "ok",
|
|
458
|
+
"migrations": 0,
|
|
459
|
+
"codeFiles": 1,
|
|
460
|
+
"unsafeFiles": 0,
|
|
461
|
+
"templateFiles": 0,
|
|
462
|
+
"base": null,
|
|
463
|
+
"migrationsRead": 0,
|
|
464
|
+
"migrationsUnchanged": 0,
|
|
465
|
+
"migrationsUnread": 0,
|
|
466
|
+
"unsafeFilesRead": 0,
|
|
467
|
+
"unsafeCalls": 0,
|
|
468
|
+
"rawFragmentCalls": 0,
|
|
469
|
+
"unsafeUnparsed": 0,
|
|
470
|
+
"templateFilesRead": 0,
|
|
471
|
+
"templatesRead": 0,
|
|
472
|
+
"templatesUnread": 0,
|
|
473
|
+
"findings": 0,
|
|
474
|
+
"errors": 0,
|
|
475
|
+
"rulesOff": [],
|
|
476
|
+
"syntaxErrors": 0,
|
|
477
|
+
"findingsByRule": {},
|
|
478
|
+
"adopted": false,
|
|
479
|
+
"preset": null,
|
|
480
|
+
"conformant": false
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"project": "bff-admin",
|
|
484
|
+
"target": "code-churn",
|
|
485
|
+
"flavour": "nest",
|
|
486
|
+
"ok": true,
|
|
487
|
+
"status": "ok",
|
|
488
|
+
"files": 1,
|
|
489
|
+
"historyRead": false,
|
|
490
|
+
"adopted": false,
|
|
491
|
+
"preset": null,
|
|
492
|
+
"conformant": false
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"project": "bff-admin",
|
|
496
|
+
"target": "arch",
|
|
497
|
+
"flavour": "nest",
|
|
498
|
+
"ok": true,
|
|
499
|
+
"status": "ok",
|
|
500
|
+
"adopted": false,
|
|
501
|
+
"preset": null,
|
|
502
|
+
"conformant": false
|
|
503
|
+
},
|
|
398
504
|
{
|
|
399
505
|
"project": "react-app",
|
|
400
506
|
"target": "lint",
|
|
@@ -471,6 +577,58 @@ $ sentinel --report --json 2>/dev/null
|
|
|
471
577
|
"preset": null,
|
|
472
578
|
"conformant": false
|
|
473
579
|
},
|
|
580
|
+
{
|
|
581
|
+
"project": "react-app",
|
|
582
|
+
"target": "sql",
|
|
583
|
+
"flavour": "react",
|
|
584
|
+
"ok": true,
|
|
585
|
+
"status": "ok",
|
|
586
|
+
"migrations": 0,
|
|
587
|
+
"codeFiles": 1,
|
|
588
|
+
"unsafeFiles": 0,
|
|
589
|
+
"templateFiles": 0,
|
|
590
|
+
"base": null,
|
|
591
|
+
"migrationsRead": 0,
|
|
592
|
+
"migrationsUnchanged": 0,
|
|
593
|
+
"migrationsUnread": 0,
|
|
594
|
+
"unsafeFilesRead": 0,
|
|
595
|
+
"unsafeCalls": 0,
|
|
596
|
+
"rawFragmentCalls": 0,
|
|
597
|
+
"unsafeUnparsed": 0,
|
|
598
|
+
"templateFilesRead": 0,
|
|
599
|
+
"templatesRead": 0,
|
|
600
|
+
"templatesUnread": 0,
|
|
601
|
+
"findings": 0,
|
|
602
|
+
"errors": 0,
|
|
603
|
+
"rulesOff": [],
|
|
604
|
+
"syntaxErrors": 0,
|
|
605
|
+
"findingsByRule": {},
|
|
606
|
+
"adopted": false,
|
|
607
|
+
"preset": null,
|
|
608
|
+
"conformant": false
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"project": "react-app",
|
|
612
|
+
"target": "code-churn",
|
|
613
|
+
"flavour": "react",
|
|
614
|
+
"ok": true,
|
|
615
|
+
"status": "ok",
|
|
616
|
+
"files": 1,
|
|
617
|
+
"historyRead": false,
|
|
618
|
+
"adopted": false,
|
|
619
|
+
"preset": null,
|
|
620
|
+
"conformant": false
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"project": "react-app",
|
|
624
|
+
"target": "arch",
|
|
625
|
+
"flavour": "react",
|
|
626
|
+
"ok": true,
|
|
627
|
+
"status": "ok",
|
|
628
|
+
"adopted": false,
|
|
629
|
+
"preset": null,
|
|
630
|
+
"conformant": false
|
|
631
|
+
},
|
|
474
632
|
{
|
|
475
633
|
"project": "utils",
|
|
476
634
|
"target": "lint",
|
|
@@ -534,6 +692,58 @@ $ sentinel --report --json 2>/dev/null
|
|
|
534
692
|
"adopted": false,
|
|
535
693
|
"preset": null,
|
|
536
694
|
"conformant": false
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"project": "utils",
|
|
698
|
+
"target": "sql",
|
|
699
|
+
"flavour": "node",
|
|
700
|
+
"ok": true,
|
|
701
|
+
"status": "ok",
|
|
702
|
+
"migrations": 0,
|
|
703
|
+
"codeFiles": 1,
|
|
704
|
+
"unsafeFiles": 0,
|
|
705
|
+
"templateFiles": 0,
|
|
706
|
+
"base": null,
|
|
707
|
+
"migrationsRead": 0,
|
|
708
|
+
"migrationsUnchanged": 0,
|
|
709
|
+
"migrationsUnread": 0,
|
|
710
|
+
"unsafeFilesRead": 0,
|
|
711
|
+
"unsafeCalls": 0,
|
|
712
|
+
"rawFragmentCalls": 0,
|
|
713
|
+
"unsafeUnparsed": 0,
|
|
714
|
+
"templateFilesRead": 0,
|
|
715
|
+
"templatesRead": 0,
|
|
716
|
+
"templatesUnread": 0,
|
|
717
|
+
"findings": 0,
|
|
718
|
+
"errors": 0,
|
|
719
|
+
"rulesOff": [],
|
|
720
|
+
"syntaxErrors": 0,
|
|
721
|
+
"findingsByRule": {},
|
|
722
|
+
"adopted": false,
|
|
723
|
+
"preset": null,
|
|
724
|
+
"conformant": false
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"project": "utils",
|
|
728
|
+
"target": "code-churn",
|
|
729
|
+
"flavour": "node",
|
|
730
|
+
"ok": true,
|
|
731
|
+
"status": "ok",
|
|
732
|
+
"files": 1,
|
|
733
|
+
"historyRead": false,
|
|
734
|
+
"adopted": false,
|
|
735
|
+
"preset": null,
|
|
736
|
+
"conformant": false
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"project": "utils",
|
|
740
|
+
"target": "arch",
|
|
741
|
+
"flavour": "node",
|
|
742
|
+
"ok": true,
|
|
743
|
+
"status": "ok",
|
|
744
|
+
"adopted": false,
|
|
745
|
+
"preset": null,
|
|
746
|
+
"conformant": false
|
|
537
747
|
}
|
|
538
748
|
]
|
|
539
749
|
}
|
|
@@ -566,11 +776,13 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
566
776
|
"typescript",
|
|
567
777
|
"build",
|
|
568
778
|
"test",
|
|
569
|
-
"static-analysis"
|
|
779
|
+
"static-analysis",
|
|
780
|
+
"sql",
|
|
781
|
+
"code-churn",
|
|
782
|
+
"arch"
|
|
570
783
|
],
|
|
571
784
|
"skipped": [
|
|
572
|
-
"runtime-analysis"
|
|
573
|
-
"arch"
|
|
785
|
+
"runtime-analysis"
|
|
574
786
|
],
|
|
575
787
|
"results": [
|
|
576
788
|
{
|
|
@@ -649,6 +861,58 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
649
861
|
"preset": null,
|
|
650
862
|
"conformant": false
|
|
651
863
|
},
|
|
864
|
+
{
|
|
865
|
+
"project": "svelte-app",
|
|
866
|
+
"target": "sql",
|
|
867
|
+
"flavour": "svelte",
|
|
868
|
+
"ok": true,
|
|
869
|
+
"status": "ok",
|
|
870
|
+
"migrations": 0,
|
|
871
|
+
"codeFiles": 1,
|
|
872
|
+
"unsafeFiles": 0,
|
|
873
|
+
"templateFiles": 0,
|
|
874
|
+
"base": null,
|
|
875
|
+
"migrationsRead": 0,
|
|
876
|
+
"migrationsUnchanged": 0,
|
|
877
|
+
"migrationsUnread": 0,
|
|
878
|
+
"unsafeFilesRead": 0,
|
|
879
|
+
"unsafeCalls": 0,
|
|
880
|
+
"rawFragmentCalls": 0,
|
|
881
|
+
"unsafeUnparsed": 0,
|
|
882
|
+
"templateFilesRead": 0,
|
|
883
|
+
"templatesRead": 0,
|
|
884
|
+
"templatesUnread": 0,
|
|
885
|
+
"findings": 0,
|
|
886
|
+
"errors": 0,
|
|
887
|
+
"rulesOff": [],
|
|
888
|
+
"syntaxErrors": 0,
|
|
889
|
+
"findingsByRule": {},
|
|
890
|
+
"adopted": false,
|
|
891
|
+
"preset": null,
|
|
892
|
+
"conformant": false
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"project": "svelte-app",
|
|
896
|
+
"target": "code-churn",
|
|
897
|
+
"flavour": "svelte",
|
|
898
|
+
"ok": true,
|
|
899
|
+
"status": "ok",
|
|
900
|
+
"files": 1,
|
|
901
|
+
"historyRead": false,
|
|
902
|
+
"adopted": false,
|
|
903
|
+
"preset": null,
|
|
904
|
+
"conformant": false
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"project": "svelte-app",
|
|
908
|
+
"target": "arch",
|
|
909
|
+
"flavour": "svelte",
|
|
910
|
+
"ok": true,
|
|
911
|
+
"status": "ok",
|
|
912
|
+
"adopted": false,
|
|
913
|
+
"preset": null,
|
|
914
|
+
"conformant": false
|
|
915
|
+
},
|
|
652
916
|
{
|
|
653
917
|
"project": "bff-admin",
|
|
654
918
|
"target": "lint",
|
|
@@ -725,6 +989,58 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
725
989
|
"preset": null,
|
|
726
990
|
"conformant": false
|
|
727
991
|
},
|
|
992
|
+
{
|
|
993
|
+
"project": "bff-admin",
|
|
994
|
+
"target": "sql",
|
|
995
|
+
"flavour": "nest",
|
|
996
|
+
"ok": true,
|
|
997
|
+
"status": "ok",
|
|
998
|
+
"migrations": 0,
|
|
999
|
+
"codeFiles": 1,
|
|
1000
|
+
"unsafeFiles": 0,
|
|
1001
|
+
"templateFiles": 0,
|
|
1002
|
+
"base": null,
|
|
1003
|
+
"migrationsRead": 0,
|
|
1004
|
+
"migrationsUnchanged": 0,
|
|
1005
|
+
"migrationsUnread": 0,
|
|
1006
|
+
"unsafeFilesRead": 0,
|
|
1007
|
+
"unsafeCalls": 0,
|
|
1008
|
+
"rawFragmentCalls": 0,
|
|
1009
|
+
"unsafeUnparsed": 0,
|
|
1010
|
+
"templateFilesRead": 0,
|
|
1011
|
+
"templatesRead": 0,
|
|
1012
|
+
"templatesUnread": 0,
|
|
1013
|
+
"findings": 0,
|
|
1014
|
+
"errors": 0,
|
|
1015
|
+
"rulesOff": [],
|
|
1016
|
+
"syntaxErrors": 0,
|
|
1017
|
+
"findingsByRule": {},
|
|
1018
|
+
"adopted": false,
|
|
1019
|
+
"preset": null,
|
|
1020
|
+
"conformant": false
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"project": "bff-admin",
|
|
1024
|
+
"target": "code-churn",
|
|
1025
|
+
"flavour": "nest",
|
|
1026
|
+
"ok": true,
|
|
1027
|
+
"status": "ok",
|
|
1028
|
+
"files": 1,
|
|
1029
|
+
"historyRead": false,
|
|
1030
|
+
"adopted": false,
|
|
1031
|
+
"preset": null,
|
|
1032
|
+
"conformant": false
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"project": "bff-admin",
|
|
1036
|
+
"target": "arch",
|
|
1037
|
+
"flavour": "nest",
|
|
1038
|
+
"ok": true,
|
|
1039
|
+
"status": "ok",
|
|
1040
|
+
"adopted": false,
|
|
1041
|
+
"preset": null,
|
|
1042
|
+
"conformant": false
|
|
1043
|
+
},
|
|
728
1044
|
{
|
|
729
1045
|
"project": "react-app",
|
|
730
1046
|
"target": "lint",
|
|
@@ -801,6 +1117,58 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
801
1117
|
"preset": null,
|
|
802
1118
|
"conformant": false
|
|
803
1119
|
},
|
|
1120
|
+
{
|
|
1121
|
+
"project": "react-app",
|
|
1122
|
+
"target": "sql",
|
|
1123
|
+
"flavour": "react",
|
|
1124
|
+
"ok": true,
|
|
1125
|
+
"status": "ok",
|
|
1126
|
+
"migrations": 0,
|
|
1127
|
+
"codeFiles": 1,
|
|
1128
|
+
"unsafeFiles": 0,
|
|
1129
|
+
"templateFiles": 0,
|
|
1130
|
+
"base": null,
|
|
1131
|
+
"migrationsRead": 0,
|
|
1132
|
+
"migrationsUnchanged": 0,
|
|
1133
|
+
"migrationsUnread": 0,
|
|
1134
|
+
"unsafeFilesRead": 0,
|
|
1135
|
+
"unsafeCalls": 0,
|
|
1136
|
+
"rawFragmentCalls": 0,
|
|
1137
|
+
"unsafeUnparsed": 0,
|
|
1138
|
+
"templateFilesRead": 0,
|
|
1139
|
+
"templatesRead": 0,
|
|
1140
|
+
"templatesUnread": 0,
|
|
1141
|
+
"findings": 0,
|
|
1142
|
+
"errors": 0,
|
|
1143
|
+
"rulesOff": [],
|
|
1144
|
+
"syntaxErrors": 0,
|
|
1145
|
+
"findingsByRule": {},
|
|
1146
|
+
"adopted": false,
|
|
1147
|
+
"preset": null,
|
|
1148
|
+
"conformant": false
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"project": "react-app",
|
|
1152
|
+
"target": "code-churn",
|
|
1153
|
+
"flavour": "react",
|
|
1154
|
+
"ok": true,
|
|
1155
|
+
"status": "ok",
|
|
1156
|
+
"files": 1,
|
|
1157
|
+
"historyRead": false,
|
|
1158
|
+
"adopted": false,
|
|
1159
|
+
"preset": null,
|
|
1160
|
+
"conformant": false
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"project": "react-app",
|
|
1164
|
+
"target": "arch",
|
|
1165
|
+
"flavour": "react",
|
|
1166
|
+
"ok": true,
|
|
1167
|
+
"status": "ok",
|
|
1168
|
+
"adopted": false,
|
|
1169
|
+
"preset": null,
|
|
1170
|
+
"conformant": false
|
|
1171
|
+
},
|
|
804
1172
|
{
|
|
805
1173
|
"project": "utils",
|
|
806
1174
|
"target": "lint",
|
|
@@ -864,6 +1232,58 @@ $ sentinel --report --all --json 2>/dev/null
|
|
|
864
1232
|
"adopted": false,
|
|
865
1233
|
"preset": null,
|
|
866
1234
|
"conformant": false
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"project": "utils",
|
|
1238
|
+
"target": "sql",
|
|
1239
|
+
"flavour": "node",
|
|
1240
|
+
"ok": true,
|
|
1241
|
+
"status": "ok",
|
|
1242
|
+
"migrations": 0,
|
|
1243
|
+
"codeFiles": 1,
|
|
1244
|
+
"unsafeFiles": 0,
|
|
1245
|
+
"templateFiles": 0,
|
|
1246
|
+
"base": null,
|
|
1247
|
+
"migrationsRead": 0,
|
|
1248
|
+
"migrationsUnchanged": 0,
|
|
1249
|
+
"migrationsUnread": 0,
|
|
1250
|
+
"unsafeFilesRead": 0,
|
|
1251
|
+
"unsafeCalls": 0,
|
|
1252
|
+
"rawFragmentCalls": 0,
|
|
1253
|
+
"unsafeUnparsed": 0,
|
|
1254
|
+
"templateFilesRead": 0,
|
|
1255
|
+
"templatesRead": 0,
|
|
1256
|
+
"templatesUnread": 0,
|
|
1257
|
+
"findings": 0,
|
|
1258
|
+
"errors": 0,
|
|
1259
|
+
"rulesOff": [],
|
|
1260
|
+
"syntaxErrors": 0,
|
|
1261
|
+
"findingsByRule": {},
|
|
1262
|
+
"adopted": false,
|
|
1263
|
+
"preset": null,
|
|
1264
|
+
"conformant": false
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"project": "utils",
|
|
1268
|
+
"target": "code-churn",
|
|
1269
|
+
"flavour": "node",
|
|
1270
|
+
"ok": true,
|
|
1271
|
+
"status": "ok",
|
|
1272
|
+
"files": 1,
|
|
1273
|
+
"historyRead": false,
|
|
1274
|
+
"adopted": false,
|
|
1275
|
+
"preset": null,
|
|
1276
|
+
"conformant": false
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"project": "utils",
|
|
1280
|
+
"target": "arch",
|
|
1281
|
+
"flavour": "node",
|
|
1282
|
+
"ok": true,
|
|
1283
|
+
"status": "ok",
|
|
1284
|
+
"adopted": false,
|
|
1285
|
+
"preset": null,
|
|
1286
|
+
"conformant": false
|
|
867
1287
|
}
|
|
868
1288
|
]
|
|
869
1289
|
}
|
|
@@ -1223,6 +1643,64 @@ $ sentinel --init --dry-run
|
|
|
1223
1643
|
+ }
|
|
1224
1644
|
+ }
|
|
1225
1645
|
+ }
|
|
1646
|
+
sql: no migration (**/migrations/*/migration.sql) and no raw SQL call in this module: nothing for the sql role to read.
|
|
1647
|
+
dry run: no files written
|
|
1648
|
+
added code-churn.config.mjs; added the 3 `code-churn` scripts; the role reports and never fails a run
|
|
1649
|
+
|
|
1650
|
+
create code-churn.config.mjs
|
|
1651
|
+
+ import { defineCodeChurn } from '@hublo/sentinel/code-churn'
|
|
1652
|
+
+
|
|
1653
|
+
+ export default defineCodeChurn({
|
|
1654
|
+
+ root: import.meta.dirname,
|
|
1655
|
+
+
|
|
1656
|
+
+ // ---------------------------------------------------------------------------------------------
|
|
1657
|
+
+ // What this module can move, with the role's value today. A setting you leave out keeps that
|
|
1658
|
+
+ // value; a setting you write REPLACES it, including inside a list. Anything you set is printed in
|
|
1659
|
+
+ // the report and marked `(module)`, because two modules measured differently no longer compare.
|
|
1660
|
+
+ //
|
|
1661
|
+
+ // window.reworkDays 21
|
|
1662
|
+
+ // window.periodDays 90
|
|
1663
|
+
+ // maxFilesPerCommit 100
|
|
1664
|
+
+ // levels {"minimumAdded":500,"low":3,"above":11,"watch":16}
|
|
1665
|
+
+ // include ["**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs,svelte,vue}"]
|
|
1666
|
+
+ // includeTests false
|
|
1667
|
+
+ // tests ["**/{test,tests,__tests__,e2e,fixtures,mocks,__mocks__,test-utils}/**","**/*.{spec,test,integration-spec,e2e-spec,steps,test-util,mock}.{ts,tsx,mts,cts,js,jsx}"]
|
|
1668
|
+
+ // ignore ["**/node_modules/**","**/dist/**","**/build/**","**/coverage/**","**/*.d.{ts,mts,cts}","**/*.generated.*","**/*.gen.*","**/generated/**"]
|
|
1669
|
+
+ // listed 10
|
|
1670
|
+
+ //
|
|
1671
|
+
+ // Read the values in full with:
|
|
1672
|
+
+ //
|
|
1673
|
+
+ // pnpm exec sentinel --inspect --code-churn --json
|
|
1674
|
+
+ //
|
|
1675
|
+
+ // overrides: {
|
|
1676
|
+
+ // window: { periodDays: 180 },
|
|
1677
|
+
+ // },
|
|
1678
|
+
+ })
|
|
1679
|
+
|
|
1680
|
+
update package.json
|
|
1681
|
+
- { "name": "bff-admin", "dependencies": { "@nestjs/core": "^10" } }
|
|
1682
|
+
+ {
|
|
1683
|
+
+ "name": "bff-admin",
|
|
1684
|
+
+ "dependencies": {
|
|
1685
|
+
+ "@nestjs/core": "^10"
|
|
1686
|
+
+ },
|
|
1687
|
+
+ "scripts": {
|
|
1688
|
+
+ "code-churn": "sentinel --run --code-churn",
|
|
1689
|
+
+ "code-churn:json": "sentinel --run --code-churn --output json",
|
|
1690
|
+
+ "code-churn:html": "sentinel --run --code-churn --output html"
|
|
1691
|
+
+ },
|
|
1692
|
+
+ "devDependencies": {
|
|
1693
|
+
+ "@hublo/sentinel": "<version>"
|
|
1694
|
+
+ },
|
|
1695
|
+
+ "nx": {
|
|
1696
|
+
+ "targets": {
|
|
1697
|
+
+ "code-churn": {
|
|
1698
|
+
+ "cache": false
|
|
1699
|
+
+ }
|
|
1700
|
+
+ }
|
|
1701
|
+
+ }
|
|
1702
|
+
+ }
|
|
1703
|
+
arch: no sentinel.arch.json at the workspace root: the repository has not said which decision applies where.
|
|
1226
1704
|
dry run: no files written
|
|
1227
1705
|
materialized the nest format preset into .oxfmtrc.json (@hublo/sentinel@<version>). oxfmt has no `extends`, so the values live here; `sentinel --status --format` reports modules left behind by a preset change
|
|
1228
1706
|
|
|
@@ -1301,6 +1779,8 @@ $ sentinel --init --dry-run
|
|
|
1301
1779
|
dry run: the lint autofix runs on adoption and can rewrite source, as moving to another linter does; add --rehearse to name the files (it runs the pass in a throwaway copy, as long as the real one)
|
|
1302
1780
|
dry run: the format autofix runs on adoption and can rewrite source, as moving to another formatter does; add --rehearse to name the files (it runs the pass in a throwaway copy, as long as the real one)
|
|
1303
1781
|
dry run: would ignore static-analysis-report/ in the root .gitignore
|
|
1782
|
+
dry run: would ignore sql-report/ in the root .gitignore
|
|
1783
|
+
dry run: would ignore code-churn-report/ in the root .gitignore
|
|
1304
1784
|
# exit: 0
|
|
1305
1785
|
```
|
|
1306
1786
|
|
|
@@ -1461,6 +1941,64 @@ $ sentinel --init --dry-run --rehearse
|
|
|
1461
1941
|
+ }
|
|
1462
1942
|
+ }
|
|
1463
1943
|
+ }
|
|
1944
|
+
sql: no migration (**/migrations/*/migration.sql) and no raw SQL call in this module: nothing for the sql role to read.
|
|
1945
|
+
dry run: no files written
|
|
1946
|
+
added code-churn.config.mjs; added the 3 `code-churn` scripts; the role reports and never fails a run
|
|
1947
|
+
|
|
1948
|
+
create code-churn.config.mjs
|
|
1949
|
+
+ import { defineCodeChurn } from '@hublo/sentinel/code-churn'
|
|
1950
|
+
+
|
|
1951
|
+
+ export default defineCodeChurn({
|
|
1952
|
+
+ root: import.meta.dirname,
|
|
1953
|
+
+
|
|
1954
|
+
+ // ---------------------------------------------------------------------------------------------
|
|
1955
|
+
+ // What this module can move, with the role's value today. A setting you leave out keeps that
|
|
1956
|
+
+ // value; a setting you write REPLACES it, including inside a list. Anything you set is printed in
|
|
1957
|
+
+ // the report and marked `(module)`, because two modules measured differently no longer compare.
|
|
1958
|
+
+ //
|
|
1959
|
+
+ // window.reworkDays 21
|
|
1960
|
+
+ // window.periodDays 90
|
|
1961
|
+
+ // maxFilesPerCommit 100
|
|
1962
|
+
+ // levels {"minimumAdded":500,"low":3,"above":11,"watch":16}
|
|
1963
|
+
+ // include ["**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs,svelte,vue}"]
|
|
1964
|
+
+ // includeTests false
|
|
1965
|
+
+ // tests ["**/{test,tests,__tests__,e2e,fixtures,mocks,__mocks__,test-utils}/**","**/*.{spec,test,integration-spec,e2e-spec,steps,test-util,mock}.{ts,tsx,mts,cts,js,jsx}"]
|
|
1966
|
+
+ // ignore ["**/node_modules/**","**/dist/**","**/build/**","**/coverage/**","**/*.d.{ts,mts,cts}","**/*.generated.*","**/*.gen.*","**/generated/**"]
|
|
1967
|
+
+ // listed 10
|
|
1968
|
+
+ //
|
|
1969
|
+
+ // Read the values in full with:
|
|
1970
|
+
+ //
|
|
1971
|
+
+ // pnpm exec sentinel --inspect --code-churn --json
|
|
1972
|
+
+ //
|
|
1973
|
+
+ // overrides: {
|
|
1974
|
+
+ // window: { periodDays: 180 },
|
|
1975
|
+
+ // },
|
|
1976
|
+
+ })
|
|
1977
|
+
|
|
1978
|
+
update package.json
|
|
1979
|
+
- { "name": "bff-admin", "dependencies": { "@nestjs/core": "^10" } }
|
|
1980
|
+
+ {
|
|
1981
|
+
+ "name": "bff-admin",
|
|
1982
|
+
+ "dependencies": {
|
|
1983
|
+
+ "@nestjs/core": "^10"
|
|
1984
|
+
+ },
|
|
1985
|
+
+ "scripts": {
|
|
1986
|
+
+ "code-churn": "sentinel --run --code-churn",
|
|
1987
|
+
+ "code-churn:json": "sentinel --run --code-churn --output json",
|
|
1988
|
+
+ "code-churn:html": "sentinel --run --code-churn --output html"
|
|
1989
|
+
+ },
|
|
1990
|
+
+ "devDependencies": {
|
|
1991
|
+
+ "@hublo/sentinel": "<version>"
|
|
1992
|
+
+ },
|
|
1993
|
+
+ "nx": {
|
|
1994
|
+
+ "targets": {
|
|
1995
|
+
+ "code-churn": {
|
|
1996
|
+
+ "cache": false
|
|
1997
|
+
+ }
|
|
1998
|
+
+ }
|
|
1999
|
+
+ }
|
|
2000
|
+
+ }
|
|
2001
|
+
arch: no sentinel.arch.json at the workspace root: the repository has not said which decision applies where.
|
|
1464
2002
|
dry run: no files written
|
|
1465
2003
|
materialized the nest format preset into .oxfmtrc.json (@hublo/sentinel@<version>). oxfmt has no `extends`, so the values live here; `sentinel --status --format` reports modules left behind by a preset change
|
|
1466
2004
|
|
|
@@ -1539,6 +2077,8 @@ $ sentinel --init --dry-run --rehearse
|
|
|
1539
2077
|
dry run: the lint autofix cannot be rehearsed yet: its preset is not installed in this module, which is expected before the first `pnpm install`. After it, this dry-run names what it rewrites
|
|
1540
2078
|
dry run: the format autofix would rewrite 1 file beyond the ones above: project.json
|
|
1541
2079
|
dry run: would ignore static-analysis-report/ in the root .gitignore
|
|
2080
|
+
dry run: would ignore sql-report/ in the root .gitignore
|
|
2081
|
+
dry run: would ignore code-churn-report/ in the root .gitignore
|
|
1542
2082
|
# exit: 0
|
|
1543
2083
|
```
|
|
1544
2084
|
|
package/docs/using-sentinel.md
CHANGED
|
@@ -5,8 +5,10 @@ migrating a module see [`lint-adoption.md`](lint-adoption.md),
|
|
|
5
5
|
[`format-adoption.md`](format-adoption.md),
|
|
6
6
|
[`typescript-adoption.md`](typescript-adoption.md),
|
|
7
7
|
[`build-adoption.md`](build-adoption.md),
|
|
8
|
-
[`test-adoption.md`](test-adoption.md)
|
|
9
|
-
[`static-analysis-adoption.md`](static-analysis-adoption.md)
|
|
8
|
+
[`test-adoption.md`](test-adoption.md),
|
|
9
|
+
[`static-analysis-adoption.md`](static-analysis-adoption.md) and
|
|
10
|
+
[`arch-adoption.md`](arch-adoption.md); the `sql` role is in
|
|
11
|
+
[`sql-adoption.md`](sql-adoption.md). The reference gate `--test` runs a
|
|
10
12
|
migration against is in `test-adoption.md`, not the static-analysis page.
|
|
11
13
|
|
|
12
14
|
## The grid
|