@hawkeyexl/manni 4.30.0 → 4.32.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.
- package/README.md +1 -1
- package/dist/{batch-23GVYKFP.js → batch-EXTFKUAM.js} +14 -14
- package/dist/{build-CRK3HT5F.js → build-GADI674Y.js} +15 -15
- package/dist/{calibrate-2RFP3QX2.js → calibrate-UC4DGHYL.js} +15 -15
- package/dist/{capture-267IEE6B.js → capture-HIBYY5R3.js} +14 -14
- package/dist/{check-6FCVYM62.js → check-F7HHGF3D.js} +11 -11
- package/dist/{check-5QX33J6O.js → check-FQ7N5Z2F.js} +32 -32
- package/dist/check-KF453CLV.js +58 -0
- package/dist/{check-2HIBGMXD.js → check-PPNKOK37.js} +14 -14
- package/dist/check-QA3FIAPV.js +58 -0
- package/dist/{chunk-AP3PCNKS.js → chunk-2EA6MOCN.js} +3 -3
- package/dist/{chunk-7PF47O3H.js → chunk-2HKNDIP3.js} +6 -6
- package/dist/{chunk-4YCPB67J.js → chunk-2JQPC5RK.js} +7 -7
- package/dist/chunk-2JQPC5RK.js.map +1 -0
- package/dist/{chunk-SWCFJC7W.js → chunk-2KCIETVY.js} +4 -4
- package/dist/{chunk-UYKRP3M3.js → chunk-2YV6K44B.js} +6 -6
- package/dist/{chunk-DKV6BVW5.js → chunk-3AB4UPAH.js} +3 -3
- package/dist/{chunk-SXNK6FPC.js → chunk-3Q2GJERD.js} +11 -8
- package/dist/chunk-3Q2GJERD.js.map +1 -0
- package/dist/{chunk-7INXFEI7.js → chunk-3SHTLHQ6.js} +7 -7
- package/dist/{chunk-WMI2RDSG.js → chunk-3WUATOHK.js} +4 -4
- package/dist/{chunk-CMJEB5V5.js → chunk-5LLPUOYC.js} +6 -6
- package/dist/{chunk-67GJRC62.js → chunk-5YCFOK6Y.js} +2 -2
- package/dist/{chunk-O2STKCTP.js → chunk-6SB3IQWD.js} +9 -9
- package/dist/{chunk-OZH46DBT.js → chunk-7OMLNFP7.js} +6 -1
- package/dist/chunk-7OMLNFP7.js.map +1 -0
- package/dist/{chunk-4L62A7YB.js → chunk-7PMYQS5K.js} +5 -5
- package/dist/{cli-A5TGO26R.js → chunk-A2KXDBRL.js} +177 -227
- package/dist/chunk-A2KXDBRL.js.map +1 -0
- package/dist/{chunk-6KNIQ2SK.js → chunk-B5DAXZLE.js} +7 -7
- package/dist/{chunk-VGGIJMDA.js → chunk-BHVVKRVV.js} +2 -2
- package/dist/{chunk-C5NE3ZIC.js → chunk-C3WYV3L4.js} +3 -3
- package/dist/{chunk-KAIJHQR2.js → chunk-CWDUIJJX.js} +2 -2
- package/dist/{chunk-KAIJHQR2.js.map → chunk-CWDUIJJX.js.map} +1 -1
- package/dist/{chunk-VCIC7XJB.js → chunk-DUKZLNBC.js} +4 -4
- package/dist/{chunk-U4CWWG2Y.js → chunk-DVHVNTP7.js} +2 -2
- package/dist/{chunk-TU7T6YRR.js → chunk-EESOMRVW.js} +7 -7
- package/dist/{chunk-2FGWZH7A.js → chunk-EOFXK7ON.js} +3 -3
- package/dist/{chunk-5S5DYW7W.js → chunk-GC7FAGRL.js} +10 -10
- package/dist/{chunk-CZFP6Q5O.js → chunk-GEA5SVJU.js} +8 -8
- package/dist/{chunk-ZZGHTXZ2.js → chunk-GY3RMN64.js} +2 -2
- package/dist/{chunk-OJZOKTTX.js → chunk-GYEP6KX7.js} +2 -2
- package/dist/{chunk-GBZVXEVE.js → chunk-HD4IZVVX.js} +3 -3
- package/dist/{chunk-O632I7AB.js → chunk-HG7O47EK.js} +13 -11
- package/dist/chunk-HG7O47EK.js.map +1 -0
- package/dist/{chunk-ERXM4UF7.js → chunk-IFHB4QBS.js} +5 -5
- package/dist/{chunk-77U6NQKQ.js → chunk-IPS3B5WV.js} +3 -3
- package/dist/{chunk-3YA6TGWH.js → chunk-J2PUJFA4.js} +5 -5
- package/dist/{chunk-ZI7RMN3H.js → chunk-J6QJ7T6M.js} +4 -4
- package/dist/{chunk-HXILODV5.js → chunk-JXGJLJOP.js} +2 -2
- package/dist/{chunk-MBJINPKU.js → chunk-KJOF3TAE.js} +14 -14
- package/dist/{chunk-3VBEUMKQ.js → chunk-KU7MRVTB.js} +2 -2
- package/dist/{chunk-OXFNU2IO.js → chunk-L7WBKQ2R.js} +4 -4
- package/dist/{chunk-OPF3NOKF.js → chunk-M77SIRUX.js} +1 -1
- package/dist/{chunk-OPF3NOKF.js.map → chunk-M77SIRUX.js.map} +1 -1
- package/dist/{chunk-JG2QWMDX.js → chunk-MBPDZWYI.js} +457 -366
- package/dist/chunk-MBPDZWYI.js.map +1 -0
- package/dist/{chunk-4MD2JG2F.js → chunk-MRFSWEJA.js} +2 -2
- package/dist/{chunk-BTFXOKCP.js → chunk-MSLBEN74.js} +2 -2
- package/dist/chunk-NFZE4MXL.js +14 -0
- package/dist/chunk-NFZE4MXL.js.map +1 -0
- package/dist/{chunk-ZE3BXQED.js → chunk-OILHKIBL.js} +3 -3
- package/dist/{chunk-LGHJFEEH.js → chunk-PKLRFHO5.js} +2 -2
- package/dist/{chunk-GK3F3FIP.js → chunk-POPJ4INH.js} +94 -169
- package/dist/chunk-POPJ4INH.js.map +1 -0
- package/dist/{chunk-NIXJOL7G.js → chunk-PXUAUKLB.js} +3 -3
- package/dist/{chunk-E6S3VGN6.js → chunk-Q6INPRTC.js} +5 -5
- package/dist/{chunk-CDX4QK6O.js → chunk-QMYR4OI5.js} +29 -2
- package/dist/chunk-QMYR4OI5.js.map +1 -0
- package/dist/{chunk-SXMTWMZZ.js → chunk-QVDRRK5K.js} +40 -12
- package/dist/chunk-QVDRRK5K.js.map +1 -0
- package/dist/{chunk-QEFVMOWF.js → chunk-QYKTIRRE.js} +2 -2
- package/dist/{chunk-MYYTLNO5.js → chunk-RC7TM74Z.js} +7 -7
- package/dist/{chunk-5RCCJ446.js → chunk-RNXOPBBD.js} +9 -9
- package/dist/chunk-RNXOPBBD.js.map +1 -0
- package/dist/{chunk-K5VWSQ4K.js → chunk-RRXIIMKU.js} +3 -3
- package/dist/{chunk-MWWPADYI.js → chunk-RV5GZTXH.js} +6 -6
- package/dist/{chunk-KNMDIR7D.js → chunk-SHTMF6PC.js} +3 -4
- package/dist/chunk-SHTMF6PC.js.map +1 -0
- package/dist/{chunk-YGUAY67B.js → chunk-SMQMGAP3.js} +2 -2
- package/dist/{chunk-5MKSZSXH.js → chunk-SVUF42MI.js} +3 -3
- package/dist/{chunk-F76DU7FH.js → chunk-TZOBQ3TA.js} +3 -3
- package/dist/{chunk-XZFJAVX7.js → chunk-UH7KFBBM.js} +9 -8
- package/dist/chunk-UH7KFBBM.js.map +1 -0
- package/dist/{chunk-V52AGLNN.js → chunk-UKWWA4T7.js} +3 -3
- package/dist/{chunk-YLWI7FR2.js → chunk-UMCTYM7L.js} +3 -3
- package/dist/{chunk-TAGYZJQA.js → chunk-VLUJ46LV.js} +51 -21
- package/dist/chunk-VLUJ46LV.js.map +1 -0
- package/dist/{chunk-6U3XF5VY.js → chunk-VQ3FZVNM.js} +2 -2
- package/dist/{chunk-Z3YNYZR2.js → chunk-VXZ2CIH7.js} +2 -2
- package/dist/{chunk-RKZ2NPO4.js → chunk-WWP6Y7S7.js} +4 -4
- package/dist/{chunk-UUZJP47H.js → chunk-WX7NURTP.js} +8 -8
- package/dist/{chunk-7YDGDI26.js → chunk-XWVXPXWI.js} +6 -6
- package/dist/{chunk-N3J22ZRL.js → chunk-YAPFEDGW.js} +579 -29
- package/dist/chunk-YAPFEDGW.js.map +1 -0
- package/dist/{chunk-7ZRX2OPC.js → chunk-Z6T7UX7R.js} +70 -33
- package/dist/chunk-Z6T7UX7R.js.map +1 -0
- package/dist/{chunk-RRAJMTHV.js → chunk-ZIXRI5XY.js} +4 -4
- package/dist/{chunk-5DER6O26.js → chunk-ZWL5ST2M.js} +3 -3
- package/dist/{cli-NIHSHMIV.js → cli-5UAQT4OU.js} +8 -8
- package/dist/{cli-GKRMSA26.js → cli-67XDE7Q7.js} +28 -28
- package/dist/{cli-Y4ARUWKJ.js → cli-EDXJFE5T.js} +3 -3
- package/dist/{cli-CCUZFOPQ.js → cli-GJ6GRHZN.js} +19 -19
- package/dist/{cli-NKRJ5C4G.js → cli-LQFBUP6H.js} +16 -16
- package/dist/{cli-MT4EPC63.js → cli-MXEFSQJC.js} +15 -15
- package/dist/{cli-S5CSPYEZ.js → cli-OZ4YL6WS.js} +22 -22
- package/dist/{cli-2MHUVZH2.js → cli-PG6Z6YXW.js} +29 -29
- package/dist/cli-SSK7GS43.js +80 -0
- package/dist/cli-TIQNAQJA.js +133 -0
- package/dist/cli-TIQNAQJA.js.map +1 -0
- package/dist/{cli-B7QCMRWR.js → cli-W7QU573I.js} +32 -32
- package/dist/{cli-KUMDTVHH.js → cli-XXJQS3F3.js} +63 -58
- package/dist/cli-XXJQS3F3.js.map +1 -0
- package/dist/cli.js +21 -15
- package/dist/cli.js.map +1 -1
- package/dist/{config-Z3FYLJ6X.js → config-ISXGJ4XM.js} +3 -3
- package/dist/docmeta.js +7 -7
- package/dist/{github-2PYSX7EK.js → github-IKC7EPZ6.js} +11 -11
- package/dist/{github-POT6K5GH.js → github-LUJDHQRN.js} +14 -14
- package/dist/github-Z6S7HS6X.js +49 -0
- package/dist/graph/embed.d.ts +1 -1
- package/dist/graph/embed.js.map +1 -1
- package/dist/graph/runtime.d.ts +2 -2
- package/dist/graph/runtime.js +4 -4
- package/dist/graph/runtime.js.map +1 -1
- package/dist/index.d.ts +854 -787
- package/dist/index.js +85 -72
- package/dist/index.js.map +1 -1
- package/dist/{json-ZWSUMRI5.js → json-FBYXDIQQ.js} +11 -11
- package/dist/{json-3HPHYGQC.js → json-OZKTEKPS.js} +15 -15
- package/dist/{labels-5P4CKGPW.js → labels-MFHU6ZPR.js} +10 -10
- package/dist/{lint-K7R4WNMG.js → lint-2TA4DFLT.js} +13 -13
- package/dist/list-3RIITWCX.js +56 -0
- package/dist/{list-3C7Q6VMU.js → list-JLBUOBV5.js} +14 -14
- package/dist/{list-HOTRWPC7.js → list-YO3W3VKA.js} +11 -11
- package/dist/{page-6U3CEGTB.js → page-4MZGF2N2.js} +10 -10
- package/dist/{prepare-PZVX2VVT.js → prepare-PKGPBUNT.js} +17 -17
- package/dist/{pretty-ENVCHUYG.js → pretty-7PT7ETKZ.js} +24 -24
- package/dist/{pretty-ODBO2IIJ.js → pretty-YHIPZV5I.js} +11 -11
- package/dist/{pretty-53N5ZMM3.js → pretty-YIWBO6C3.js} +14 -14
- package/dist/{release-EFLQT3FW.js → release-VQQXI4XB.js} +4 -4
- package/dist/{reporters-3GE5FK5L.js → reporters-QJ7QC3XA.js} +12 -12
- package/dist/{reporters-MK62LRGW.js → reporters-Y2AUVODK.js} +4 -4
- package/dist/{reporters-FWSJ3O4V.js → reporters-ZUKUAWKX.js} +5 -5
- package/dist/run-ZK6EY5V7.js +59 -0
- package/dist/sarif-HYGCKXCT.js +50 -0
- package/dist/{sarif-IFFO37SO.js → sarif-PIUCN7PT.js} +9 -9
- package/dist/{sarif-2L4MLVF5.js → sarif-YP2DCLLU.js} +9 -9
- package/dist/{strategy-BCRB4A55.js → strategy-E2YCBTAW.js} +21 -21
- package/dist/{term-HPRQBB2A.js → term-RLQ6WZUD.js} +16 -16
- package/dist/{types-GV2THIRC.js → types-YREQ2DQG.js} +6 -4
- package/dist/{validate-TEYFOGI5.js → validate-OPLT7USL.js} +5 -5
- package/dist/validate-OPLT7USL.js.map +1 -0
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/dist/check-MYUFZGKO.js +0 -58
- package/dist/check-VKQ6GM5D.js +0 -58
- package/dist/chunk-4YCPB67J.js.map +0 -1
- package/dist/chunk-5RCCJ446.js.map +0 -1
- package/dist/chunk-7ZRX2OPC.js.map +0 -1
- package/dist/chunk-CDX4QK6O.js.map +0 -1
- package/dist/chunk-GK3F3FIP.js.map +0 -1
- package/dist/chunk-JG2QWMDX.js.map +0 -1
- package/dist/chunk-KNMDIR7D.js.map +0 -1
- package/dist/chunk-N3J22ZRL.js.map +0 -1
- package/dist/chunk-O632I7AB.js.map +0 -1
- package/dist/chunk-OZH46DBT.js.map +0 -1
- package/dist/chunk-SXMTWMZZ.js.map +0 -1
- package/dist/chunk-SXNK6FPC.js.map +0 -1
- package/dist/chunk-TAGYZJQA.js.map +0 -1
- package/dist/chunk-XZFJAVX7.js.map +0 -1
- package/dist/cli-A5TGO26R.js.map +0 -1
- package/dist/cli-KUMDTVHH.js.map +0 -1
- package/dist/github-M4QRPNXT.js +0 -49
- package/dist/list-O7IREFT2.js +0 -56
- package/dist/run-GUHRZ3OX.js +0 -59
- package/dist/sarif-2BGXPVSR.js +0 -50
- /package/dist/{batch-23GVYKFP.js.map → batch-EXTFKUAM.js.map} +0 -0
- /package/dist/{build-CRK3HT5F.js.map → build-GADI674Y.js.map} +0 -0
- /package/dist/{calibrate-2RFP3QX2.js.map → calibrate-UC4DGHYL.js.map} +0 -0
- /package/dist/{capture-267IEE6B.js.map → capture-HIBYY5R3.js.map} +0 -0
- /package/dist/{check-2HIBGMXD.js.map → check-F7HHGF3D.js.map} +0 -0
- /package/dist/{check-5QX33J6O.js.map → check-FQ7N5Z2F.js.map} +0 -0
- /package/dist/{check-6FCVYM62.js.map → check-KF453CLV.js.map} +0 -0
- /package/dist/{check-MYUFZGKO.js.map → check-PPNKOK37.js.map} +0 -0
- /package/dist/{check-VKQ6GM5D.js.map → check-QA3FIAPV.js.map} +0 -0
- /package/dist/{chunk-AP3PCNKS.js.map → chunk-2EA6MOCN.js.map} +0 -0
- /package/dist/{chunk-7PF47O3H.js.map → chunk-2HKNDIP3.js.map} +0 -0
- /package/dist/{chunk-SWCFJC7W.js.map → chunk-2KCIETVY.js.map} +0 -0
- /package/dist/{chunk-UYKRP3M3.js.map → chunk-2YV6K44B.js.map} +0 -0
- /package/dist/{chunk-DKV6BVW5.js.map → chunk-3AB4UPAH.js.map} +0 -0
- /package/dist/{chunk-7INXFEI7.js.map → chunk-3SHTLHQ6.js.map} +0 -0
- /package/dist/{chunk-WMI2RDSG.js.map → chunk-3WUATOHK.js.map} +0 -0
- /package/dist/{chunk-CMJEB5V5.js.map → chunk-5LLPUOYC.js.map} +0 -0
- /package/dist/{chunk-67GJRC62.js.map → chunk-5YCFOK6Y.js.map} +0 -0
- /package/dist/{chunk-O2STKCTP.js.map → chunk-6SB3IQWD.js.map} +0 -0
- /package/dist/{chunk-4L62A7YB.js.map → chunk-7PMYQS5K.js.map} +0 -0
- /package/dist/{chunk-6KNIQ2SK.js.map → chunk-B5DAXZLE.js.map} +0 -0
- /package/dist/{chunk-VGGIJMDA.js.map → chunk-BHVVKRVV.js.map} +0 -0
- /package/dist/{chunk-C5NE3ZIC.js.map → chunk-C3WYV3L4.js.map} +0 -0
- /package/dist/{chunk-VCIC7XJB.js.map → chunk-DUKZLNBC.js.map} +0 -0
- /package/dist/{chunk-U4CWWG2Y.js.map → chunk-DVHVNTP7.js.map} +0 -0
- /package/dist/{chunk-TU7T6YRR.js.map → chunk-EESOMRVW.js.map} +0 -0
- /package/dist/{chunk-2FGWZH7A.js.map → chunk-EOFXK7ON.js.map} +0 -0
- /package/dist/{chunk-5S5DYW7W.js.map → chunk-GC7FAGRL.js.map} +0 -0
- /package/dist/{chunk-CZFP6Q5O.js.map → chunk-GEA5SVJU.js.map} +0 -0
- /package/dist/{chunk-ZZGHTXZ2.js.map → chunk-GY3RMN64.js.map} +0 -0
- /package/dist/{chunk-OJZOKTTX.js.map → chunk-GYEP6KX7.js.map} +0 -0
- /package/dist/{chunk-GBZVXEVE.js.map → chunk-HD4IZVVX.js.map} +0 -0
- /package/dist/{chunk-ERXM4UF7.js.map → chunk-IFHB4QBS.js.map} +0 -0
- /package/dist/{chunk-77U6NQKQ.js.map → chunk-IPS3B5WV.js.map} +0 -0
- /package/dist/{chunk-3YA6TGWH.js.map → chunk-J2PUJFA4.js.map} +0 -0
- /package/dist/{chunk-ZI7RMN3H.js.map → chunk-J6QJ7T6M.js.map} +0 -0
- /package/dist/{chunk-HXILODV5.js.map → chunk-JXGJLJOP.js.map} +0 -0
- /package/dist/{chunk-MBJINPKU.js.map → chunk-KJOF3TAE.js.map} +0 -0
- /package/dist/{chunk-3VBEUMKQ.js.map → chunk-KU7MRVTB.js.map} +0 -0
- /package/dist/{chunk-OXFNU2IO.js.map → chunk-L7WBKQ2R.js.map} +0 -0
- /package/dist/{chunk-4MD2JG2F.js.map → chunk-MRFSWEJA.js.map} +0 -0
- /package/dist/{chunk-BTFXOKCP.js.map → chunk-MSLBEN74.js.map} +0 -0
- /package/dist/{chunk-ZE3BXQED.js.map → chunk-OILHKIBL.js.map} +0 -0
- /package/dist/{chunk-LGHJFEEH.js.map → chunk-PKLRFHO5.js.map} +0 -0
- /package/dist/{chunk-NIXJOL7G.js.map → chunk-PXUAUKLB.js.map} +0 -0
- /package/dist/{chunk-E6S3VGN6.js.map → chunk-Q6INPRTC.js.map} +0 -0
- /package/dist/{chunk-QEFVMOWF.js.map → chunk-QYKTIRRE.js.map} +0 -0
- /package/dist/{chunk-MYYTLNO5.js.map → chunk-RC7TM74Z.js.map} +0 -0
- /package/dist/{chunk-K5VWSQ4K.js.map → chunk-RRXIIMKU.js.map} +0 -0
- /package/dist/{chunk-MWWPADYI.js.map → chunk-RV5GZTXH.js.map} +0 -0
- /package/dist/{chunk-YGUAY67B.js.map → chunk-SMQMGAP3.js.map} +0 -0
- /package/dist/{chunk-5MKSZSXH.js.map → chunk-SVUF42MI.js.map} +0 -0
- /package/dist/{chunk-F76DU7FH.js.map → chunk-TZOBQ3TA.js.map} +0 -0
- /package/dist/{chunk-V52AGLNN.js.map → chunk-UKWWA4T7.js.map} +0 -0
- /package/dist/{chunk-YLWI7FR2.js.map → chunk-UMCTYM7L.js.map} +0 -0
- /package/dist/{chunk-6U3XF5VY.js.map → chunk-VQ3FZVNM.js.map} +0 -0
- /package/dist/{chunk-Z3YNYZR2.js.map → chunk-VXZ2CIH7.js.map} +0 -0
- /package/dist/{chunk-RKZ2NPO4.js.map → chunk-WWP6Y7S7.js.map} +0 -0
- /package/dist/{chunk-UUZJP47H.js.map → chunk-WX7NURTP.js.map} +0 -0
- /package/dist/{chunk-7YDGDI26.js.map → chunk-XWVXPXWI.js.map} +0 -0
- /package/dist/{chunk-RRAJMTHV.js.map → chunk-ZIXRI5XY.js.map} +0 -0
- /package/dist/{chunk-5DER6O26.js.map → chunk-ZWL5ST2M.js.map} +0 -0
- /package/dist/{cli-NIHSHMIV.js.map → cli-5UAQT4OU.js.map} +0 -0
- /package/dist/{cli-GKRMSA26.js.map → cli-67XDE7Q7.js.map} +0 -0
- /package/dist/{cli-Y4ARUWKJ.js.map → cli-EDXJFE5T.js.map} +0 -0
- /package/dist/{cli-CCUZFOPQ.js.map → cli-GJ6GRHZN.js.map} +0 -0
- /package/dist/{cli-NKRJ5C4G.js.map → cli-LQFBUP6H.js.map} +0 -0
- /package/dist/{cli-MT4EPC63.js.map → cli-MXEFSQJC.js.map} +0 -0
- /package/dist/{cli-S5CSPYEZ.js.map → cli-OZ4YL6WS.js.map} +0 -0
- /package/dist/{cli-2MHUVZH2.js.map → cli-PG6Z6YXW.js.map} +0 -0
- /package/dist/{config-Z3FYLJ6X.js.map → cli-SSK7GS43.js.map} +0 -0
- /package/dist/{cli-B7QCMRWR.js.map → cli-W7QU573I.js.map} +0 -0
- /package/dist/{github-2PYSX7EK.js.map → config-ISXGJ4XM.js.map} +0 -0
- /package/dist/{github-M4QRPNXT.js.map → github-IKC7EPZ6.js.map} +0 -0
- /package/dist/{github-POT6K5GH.js.map → github-LUJDHQRN.js.map} +0 -0
- /package/dist/{json-3HPHYGQC.js.map → github-Z6S7HS6X.js.map} +0 -0
- /package/dist/{json-ZWSUMRI5.js.map → json-FBYXDIQQ.js.map} +0 -0
- /package/dist/{lint-K7R4WNMG.js.map → json-OZKTEKPS.js.map} +0 -0
- /package/dist/{labels-5P4CKGPW.js.map → labels-MFHU6ZPR.js.map} +0 -0
- /package/dist/{list-3C7Q6VMU.js.map → lint-2TA4DFLT.js.map} +0 -0
- /package/dist/{list-HOTRWPC7.js.map → list-3RIITWCX.js.map} +0 -0
- /package/dist/{list-O7IREFT2.js.map → list-JLBUOBV5.js.map} +0 -0
- /package/dist/{page-6U3CEGTB.js.map → list-YO3W3VKA.js.map} +0 -0
- /package/dist/{pretty-53N5ZMM3.js.map → page-4MZGF2N2.js.map} +0 -0
- /package/dist/{prepare-PZVX2VVT.js.map → prepare-PKGPBUNT.js.map} +0 -0
- /package/dist/{pretty-ENVCHUYG.js.map → pretty-7PT7ETKZ.js.map} +0 -0
- /package/dist/{pretty-ODBO2IIJ.js.map → pretty-YHIPZV5I.js.map} +0 -0
- /package/dist/{reporters-3GE5FK5L.js.map → pretty-YIWBO6C3.js.map} +0 -0
- /package/dist/{release-EFLQT3FW.js.map → release-VQQXI4XB.js.map} +0 -0
- /package/dist/{reporters-FWSJ3O4V.js.map → reporters-QJ7QC3XA.js.map} +0 -0
- /package/dist/{reporters-MK62LRGW.js.map → reporters-Y2AUVODK.js.map} +0 -0
- /package/dist/{run-GUHRZ3OX.js.map → reporters-ZUKUAWKX.js.map} +0 -0
- /package/dist/{sarif-2BGXPVSR.js.map → run-ZK6EY5V7.js.map} +0 -0
- /package/dist/{sarif-2L4MLVF5.js.map → sarif-HYGCKXCT.js.map} +0 -0
- /package/dist/{sarif-IFFO37SO.js.map → sarif-PIUCN7PT.js.map} +0 -0
- /package/dist/{strategy-BCRB4A55.js.map → sarif-YP2DCLLU.js.map} +0 -0
- /package/dist/{types-GV2THIRC.js.map → strategy-E2YCBTAW.js.map} +0 -0
- /package/dist/{term-HPRQBB2A.js.map → term-RLQ6WZUD.js.map} +0 -0
- /package/dist/{validate-TEYFOGI5.js.map → types-YREQ2DQG.js.map} +0 -0
|
@@ -17,17 +17,17 @@ import {
|
|
|
17
17
|
isWildcard,
|
|
18
18
|
matchSections,
|
|
19
19
|
occurrenceRange
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QYKTIRRE.js";
|
|
21
21
|
import {
|
|
22
22
|
listFormats,
|
|
23
23
|
parserByName,
|
|
24
24
|
parserForExtension,
|
|
25
25
|
supportedExtensions,
|
|
26
26
|
unsupportedFormatMessage
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZWL5ST2M.js";
|
|
28
28
|
import {
|
|
29
29
|
LintError
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-M77SIRUX.js";
|
|
31
31
|
import {
|
|
32
32
|
FlareError,
|
|
33
33
|
flareRun
|
|
@@ -39,19 +39,19 @@ import {
|
|
|
39
39
|
gitignoreOptions,
|
|
40
40
|
isErrorSeverity,
|
|
41
41
|
resolveTargetSet
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-RRXIIMKU.js";
|
|
43
43
|
import {
|
|
44
44
|
ditaOtHome,
|
|
45
45
|
findConfigFile,
|
|
46
46
|
readConfigFile,
|
|
47
47
|
selectCollections
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-QMYR4OI5.js";
|
|
49
49
|
import {
|
|
50
50
|
warn
|
|
51
51
|
} from "./chunk-HX44GB4Z.js";
|
|
52
52
|
import {
|
|
53
53
|
package_default
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-CWDUIJJX.js";
|
|
55
55
|
import {
|
|
56
56
|
ToolError,
|
|
57
57
|
errorMessage
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
|
|
60
60
|
// src/lint/commands/lint.ts
|
|
61
61
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
62
|
-
import { extname, relative, resolve as
|
|
62
|
+
import { extname as extname2, relative as relative2, resolve as resolve4 } from "node:path";
|
|
63
63
|
|
|
64
64
|
// src/lint/core/resolve-template.ts
|
|
65
65
|
import picomatch from "picomatch";
|
|
@@ -2145,6 +2145,489 @@ function resolveStructureTool(name) {
|
|
|
2145
2145
|
);
|
|
2146
2146
|
}
|
|
2147
2147
|
|
|
2148
|
+
// src/shared/includes.ts
|
|
2149
|
+
import { readFileSync, realpathSync, statSync, existsSync } from "node:fs";
|
|
2150
|
+
import { dirname as dirname3, extname, isAbsolute as isAbsolute3, join as join3, relative, resolve as resolve3 } from "node:path";
|
|
2151
|
+
var MAX_INCLUDE_DEPTH = 64;
|
|
2152
|
+
var FAMILY_BY_EXT = {
|
|
2153
|
+
".md": "markdown",
|
|
2154
|
+
".markdown": "markdown",
|
|
2155
|
+
".mdx": "markdown",
|
|
2156
|
+
".adoc": "asciidoc",
|
|
2157
|
+
".asciidoc": "asciidoc",
|
|
2158
|
+
".asc": "asciidoc",
|
|
2159
|
+
".rst": "rst",
|
|
2160
|
+
".rest": "rst"
|
|
2161
|
+
};
|
|
2162
|
+
var FAMILY_BY_FORMAT = {
|
|
2163
|
+
markdown: "markdown",
|
|
2164
|
+
mdx: "markdown",
|
|
2165
|
+
asciidoc: "asciidoc",
|
|
2166
|
+
rst: "rst"
|
|
2167
|
+
};
|
|
2168
|
+
function includeFamily(format) {
|
|
2169
|
+
return FAMILY_BY_FORMAT[format];
|
|
2170
|
+
}
|
|
2171
|
+
var isUrl = (target) => /^[a-z][a-z0-9+.-]*:\/\//i.test(target);
|
|
2172
|
+
function lineSpans(text) {
|
|
2173
|
+
const spans = [];
|
|
2174
|
+
for (const m of text.matchAll(/[^\n]*\n|[^\n]+$/g)) spans.push([m.index, m.index + m[0].length]);
|
|
2175
|
+
return spans;
|
|
2176
|
+
}
|
|
2177
|
+
function lineStarts(text) {
|
|
2178
|
+
const starts = [0];
|
|
2179
|
+
for (let i = text.indexOf("\n"); i !== -1; i = text.indexOf("\n", i + 1)) starts.push(i + 1);
|
|
2180
|
+
return starts;
|
|
2181
|
+
}
|
|
2182
|
+
function lineCol(starts, offset) {
|
|
2183
|
+
let lo = 0;
|
|
2184
|
+
let hi = starts.length - 1;
|
|
2185
|
+
while (lo < hi) {
|
|
2186
|
+
const mid = lo + hi + 1 >> 1;
|
|
2187
|
+
if ((starts[mid] ?? 0) <= offset) lo = mid;
|
|
2188
|
+
else hi = mid - 1;
|
|
2189
|
+
}
|
|
2190
|
+
return { line: lo + 1, column: offset - (starts[lo] ?? 0) + 1 };
|
|
2191
|
+
}
|
|
2192
|
+
function selectLines(text, ranges, label) {
|
|
2193
|
+
const spans = lineSpans(text);
|
|
2194
|
+
const out = [];
|
|
2195
|
+
for (const [from, to] of ranges) {
|
|
2196
|
+
const last = to === void 0 || to < 0 ? spans.length : Math.min(to, spans.length);
|
|
2197
|
+
for (let n = Math.max(from, 1); n <= last; n++) {
|
|
2198
|
+
const span2 = spans[n - 1];
|
|
2199
|
+
if (span2) out.push(span2);
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
return out.length ? { ranges: out } : { missing: label };
|
|
2203
|
+
}
|
|
2204
|
+
function selectRegions(text, start, end, wanted) {
|
|
2205
|
+
const open = /* @__PURE__ */ new Set();
|
|
2206
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2207
|
+
const out = [];
|
|
2208
|
+
for (const [s, e] of lineSpans(text)) {
|
|
2209
|
+
const line = text.slice(s, e);
|
|
2210
|
+
const opened = start.exec(line)?.[1];
|
|
2211
|
+
const closed = end.exec(line)?.[1];
|
|
2212
|
+
if (opened) {
|
|
2213
|
+
open.add(opened);
|
|
2214
|
+
seen.add(opened);
|
|
2215
|
+
}
|
|
2216
|
+
if (closed) open.delete(closed);
|
|
2217
|
+
if (opened || closed) continue;
|
|
2218
|
+
if (!wanted || wanted.some((name) => open.has(name))) out.push([s, e]);
|
|
2219
|
+
}
|
|
2220
|
+
const missing = wanted?.find((name) => !seen.has(name));
|
|
2221
|
+
return missing ? { missing } : { ranges: out };
|
|
2222
|
+
}
|
|
2223
|
+
var ASCIIDOC_TAG = [/\btag::([\w-]+)\[\]/, /\bend::([\w-]+)\[\]/];
|
|
2224
|
+
var MDBOOK_ANCHOR = [/ANCHOR:\s*([\w-]+)/, /ANCHOR_END:\s*([\w-]+)/];
|
|
2225
|
+
var MKDOCS_SECTION = [/--8<--\s*\[start:([\w-]+)\]/, /--8<--\s*\[end:([\w-]+)\]/];
|
|
2226
|
+
function splitSelector(spec, markers) {
|
|
2227
|
+
const m = /^(.+?):(\d*)(?::(\d*))?$/.exec(spec) ?? /^(.+?):([A-Za-z_][\w-]*)$/.exec(spec);
|
|
2228
|
+
const target = m?.[1];
|
|
2229
|
+
const a = m?.[2] ?? "";
|
|
2230
|
+
if (target === void 0 || /^[A-Za-z]$/.test(target)) {
|
|
2231
|
+
return { target: spec, select: (text) => selectRegions(text, ...markers) };
|
|
2232
|
+
}
|
|
2233
|
+
if (!/^\d*$/.test(a)) return { target, select: (text) => selectRegions(text, ...markers, [a]) };
|
|
2234
|
+
const b = m?.[3];
|
|
2235
|
+
const from = a ? Number(a) : 1;
|
|
2236
|
+
const to = b === void 0 ? a ? from : void 0 : b ? Number(b) : void 0;
|
|
2237
|
+
return {
|
|
2238
|
+
target,
|
|
2239
|
+
select: (text) => selectLines(text, [[from, to]], spec.slice(target.length + 1))
|
|
2240
|
+
};
|
|
2241
|
+
}
|
|
2242
|
+
function fenceRanges(text) {
|
|
2243
|
+
const ranges = [];
|
|
2244
|
+
let open;
|
|
2245
|
+
for (const [s, e] of lineSpans(text)) {
|
|
2246
|
+
const m = /^\s*(`{3,}|~{3,})(.*)/.exec(text.slice(s, e));
|
|
2247
|
+
const fence = m?.[1];
|
|
2248
|
+
if (fence === void 0) continue;
|
|
2249
|
+
if (!open) open = { start: s, fence };
|
|
2250
|
+
else if (fence[0] === open.fence[0] && fence.length >= open.fence.length && /^[ \t]*\r?\n?$/.test(m?.[2] ?? "")) {
|
|
2251
|
+
ranges.push([open.start, e]);
|
|
2252
|
+
open = void 0;
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
if (open) ranges.push([open.start, text.length]);
|
|
2256
|
+
return ranges;
|
|
2257
|
+
}
|
|
2258
|
+
function asciidocDirectives(text) {
|
|
2259
|
+
const found = [];
|
|
2260
|
+
const re = /^(?::(\w[\w-]*):[ \t]*(.*?)[ \t]*|include::([^[\r\n]+)\[([^\]\r\n]*)\][ \t]*)(?=\r?$)/gm;
|
|
2261
|
+
for (const m of text.matchAll(re)) {
|
|
2262
|
+
if (m[1] !== void 0) {
|
|
2263
|
+
found.push({ start: m.index, end: m.index, target: "", base: "fileThenRoot", attribute: [m[1], m[2] ?? ""] });
|
|
2264
|
+
continue;
|
|
2265
|
+
}
|
|
2266
|
+
const target = m[3] ?? "";
|
|
2267
|
+
const rawAttrs = m[4] ?? "";
|
|
2268
|
+
const attrs = new Map(
|
|
2269
|
+
[...rawAttrs.matchAll(/([\w-]+)=("([^"]*)"|[^,]*)/g)].map((a) => [a[1] ?? "", a[3] ?? a[2] ?? ""])
|
|
2270
|
+
);
|
|
2271
|
+
let select;
|
|
2272
|
+
const lines = attrs.get("lines");
|
|
2273
|
+
const tags = attrs.get("tag") ?? attrs.get("tags");
|
|
2274
|
+
if (lines !== void 0) {
|
|
2275
|
+
const ranges = lines.split(/[;,]/).filter(Boolean).map((r) => {
|
|
2276
|
+
const [from = "", to] = r.split("..");
|
|
2277
|
+
return [Number(from), to === void 0 ? Number(from) : to === "" ? void 0 : Number(to)];
|
|
2278
|
+
});
|
|
2279
|
+
select = (t) => selectLines(t, ranges, `lines=${lines}`);
|
|
2280
|
+
} else if (tags !== void 0) {
|
|
2281
|
+
const names = tags.split(/[;,]/).filter(Boolean);
|
|
2282
|
+
select = (t) => selectRegions(t, ...ASCIIDOC_TAG, names);
|
|
2283
|
+
}
|
|
2284
|
+
const optional = /(^|,)\s*(opts="?[^"]*optional|optional-option)/.test(rawAttrs);
|
|
2285
|
+
found.push({
|
|
2286
|
+
start: m.index,
|
|
2287
|
+
end: m.index + m[0].length,
|
|
2288
|
+
target,
|
|
2289
|
+
base: "fileThenRoot",
|
|
2290
|
+
...select ? { select } : {},
|
|
2291
|
+
optional,
|
|
2292
|
+
attributes: true
|
|
2293
|
+
});
|
|
2294
|
+
}
|
|
2295
|
+
return found;
|
|
2296
|
+
}
|
|
2297
|
+
function markdownDirectives(text, fileText) {
|
|
2298
|
+
const found = [];
|
|
2299
|
+
const examples = [
|
|
2300
|
+
...text.matchAll(/`[^`\r\n]+`|\{\/\*[\s\S]*?\*\/\}|<!--[\s\S]*?-->/g)
|
|
2301
|
+
].map((m) => [m.index, m.index + m[0].length]);
|
|
2302
|
+
const inExample = (i) => examples.some(([s, e]) => i >= s && i < e);
|
|
2303
|
+
for (const m of text.matchAll(/(?<!\\)\{\{#include\s+([^}\s]+)\s*\}\}/g)) {
|
|
2304
|
+
if (inExample(m.index)) continue;
|
|
2305
|
+
found.push({
|
|
2306
|
+
start: m.index,
|
|
2307
|
+
end: m.index + m[0].length,
|
|
2308
|
+
base: "fileThenRoot",
|
|
2309
|
+
...splitSelector(m[1] ?? "", MDBOOK_ANCHOR)
|
|
2310
|
+
});
|
|
2311
|
+
}
|
|
2312
|
+
for (const m of text.matchAll(/^[ \t]*-{1,}8<-{1,}[ \t]+(["'])([^"'\r\n]+)\1[ \t]*(?=\r?$)/gm)) {
|
|
2313
|
+
const start = m.index + m[0].length - m[0].trimStart().length;
|
|
2314
|
+
found.push({
|
|
2315
|
+
start,
|
|
2316
|
+
end: m.index + m[0].length,
|
|
2317
|
+
base: "rootThenFile",
|
|
2318
|
+
...splitSelector(m[2] ?? "", MKDOCS_SECTION)
|
|
2319
|
+
});
|
|
2320
|
+
}
|
|
2321
|
+
const fences = fenceRanges(text);
|
|
2322
|
+
const inSkipped = (i) => inExample(i) || fences.some(([s, e]) => i >= s && i < e);
|
|
2323
|
+
for (const m of text.matchAll(/<Markdown\s+src=["']([^"']+)["']\s*\/>/g)) {
|
|
2324
|
+
if (!inSkipped(m.index)) {
|
|
2325
|
+
found.push({ start: m.index, end: m.index + m[0].length, target: m[1] ?? "", base: "fileThenRoot" });
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
const imports = /* @__PURE__ */ new Map();
|
|
2329
|
+
const importRe = /^import\s+(?:(\w+)|\{([^}]*)\}|\*\s+as\s+(\w+))\s+from\s+["']([^"']+\.mdx?)["'];?/gm;
|
|
2330
|
+
const fileFences = fenceRanges(fileText);
|
|
2331
|
+
for (const m of fileText.matchAll(importRe)) {
|
|
2332
|
+
if (fileFences.some(([s, e]) => m.index >= s && m.index < e)) continue;
|
|
2333
|
+
const from = m[4] ?? "";
|
|
2334
|
+
if (m[1]) imports.set(m[1], from);
|
|
2335
|
+
if (m[3]) imports.set(`${m[3]}.Content`, from);
|
|
2336
|
+
for (const named of (m[2] ?? "").split(",")) {
|
|
2337
|
+
const [name, alias] = named.trim().split(/\s+as\s+/);
|
|
2338
|
+
if (name === "Content") imports.set(alias ?? name, from);
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
if (imports.size) {
|
|
2342
|
+
for (const m of text.matchAll(/<([A-Za-z_]\w*(?:\.Content)?)\s*\/>/g)) {
|
|
2343
|
+
const target = imports.get(m[1] ?? "");
|
|
2344
|
+
if (target !== void 0 && !inSkipped(m.index)) {
|
|
2345
|
+
found.push({ start: m.index, end: m.index + m[0].length, target, base: "mdx" });
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
return found;
|
|
2350
|
+
}
|
|
2351
|
+
var indentOf = (line) => /^[ \t]*/.exec(line)?.[0].length ?? 0;
|
|
2352
|
+
function inRstLiteral(text, at) {
|
|
2353
|
+
const lines = text.slice(0, at).split("\n");
|
|
2354
|
+
let indent = indentOf(lines.pop() ?? "");
|
|
2355
|
+
for (let i = lines.length - 1; i >= 0 && indent > 0; i--) {
|
|
2356
|
+
const line = (lines[i] ?? "").replace(/\r$/, "");
|
|
2357
|
+
if (line.trim() === "" || indentOf(line) >= indent) continue;
|
|
2358
|
+
const t = line.trim();
|
|
2359
|
+
if (/::$/.test(t) && !/^\.\.\s+\S+::/.test(t)) return true;
|
|
2360
|
+
if (/^\.\.\s+(code-block|code|sourcecode|literalinclude)::/.test(t)) return true;
|
|
2361
|
+
if (/^\.\.(\s|$)/.test(t) && !/^\.\.\s+(\S+::|_|\[|\|)/.test(t)) return true;
|
|
2362
|
+
indent = indentOf(line);
|
|
2363
|
+
}
|
|
2364
|
+
return false;
|
|
2365
|
+
}
|
|
2366
|
+
function rstDirectives(text) {
|
|
2367
|
+
const found = [];
|
|
2368
|
+
const re = /^([ \t]*)\.\.[ \t]+include::[ \t]+(\S.*?)[ \t]*(?=\r?$)((?:\r?\n\1[ \t]+:[\w-]+:.*?(?=\r?$))*)/gm;
|
|
2369
|
+
for (const m of text.matchAll(re)) {
|
|
2370
|
+
const lead = m[1] ?? "";
|
|
2371
|
+
const start = m.index + lead.length;
|
|
2372
|
+
if (inRstLiteral(text, start)) continue;
|
|
2373
|
+
const target = m[2] ?? "";
|
|
2374
|
+
const options = /* @__PURE__ */ new Map();
|
|
2375
|
+
for (const o of (m[3] ?? "").matchAll(/:([\w-]+):[ \t]*(.*?)[ \t]*(?=\r?$)/gm)) {
|
|
2376
|
+
options.set(o[1] ?? "", o[2] ?? "");
|
|
2377
|
+
}
|
|
2378
|
+
const skip2 = target.startsWith("<") || options.has("literal") || options.has("code");
|
|
2379
|
+
const select = (t) => {
|
|
2380
|
+
const spans = lineSpans(t);
|
|
2381
|
+
const at = (n, fallback) => {
|
|
2382
|
+
if (n === void 0) return fallback;
|
|
2383
|
+
const i = Math.max(Number(n) < 0 ? spans.length + Number(n) : Number(n), 0);
|
|
2384
|
+
return i >= spans.length ? t.length : spans[i]?.[0] ?? t.length;
|
|
2385
|
+
};
|
|
2386
|
+
const lineOptions = ["start-line", "end-line"].filter((k) => options.has(k));
|
|
2387
|
+
const bad = lineOptions.find((k) => !/^-?\d+$/.test(options.get(k) ?? ""));
|
|
2388
|
+
if (bad) return { missing: `:${bad}: ${options.get(bad) ?? ""}`.trimEnd() };
|
|
2389
|
+
let s = at(options.get("start-line"), 0);
|
|
2390
|
+
let e = at(options.get("end-line"), t.length);
|
|
2391
|
+
if (lineOptions.length && e <= s) {
|
|
2392
|
+
return { missing: lineOptions.map((k) => `:${k}: ${options.get(k) ?? ""}`).join(" ") };
|
|
2393
|
+
}
|
|
2394
|
+
const after = options.get("start-after");
|
|
2395
|
+
if (after !== void 0) {
|
|
2396
|
+
const i = t.indexOf(after, s);
|
|
2397
|
+
if (i < 0 || i >= e) return { missing: after };
|
|
2398
|
+
s = i + after.length;
|
|
2399
|
+
}
|
|
2400
|
+
const beforeText = options.get("end-before");
|
|
2401
|
+
if (beforeText !== void 0) {
|
|
2402
|
+
const i = t.indexOf(beforeText, s);
|
|
2403
|
+
if (i < 0 || i > e) return { missing: beforeText };
|
|
2404
|
+
e = i;
|
|
2405
|
+
}
|
|
2406
|
+
return { ranges: [[s, e]] };
|
|
2407
|
+
};
|
|
2408
|
+
found.push({ start, end: m.index + m[0].length, target, base: "rst", select, skip: skip2 });
|
|
2409
|
+
}
|
|
2410
|
+
return found;
|
|
2411
|
+
}
|
|
2412
|
+
function findAncestor(dir, names) {
|
|
2413
|
+
for (let d = dir; ; d = dirname3(d)) {
|
|
2414
|
+
if (names.some((name) => existsSync(join3(d, name)))) return d;
|
|
2415
|
+
if (dirname3(d) === d) return void 0;
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
var DOCUSAURUS = ["js", "ts", "mjs", "cjs"].map((e) => `docusaurus.config.${e}`);
|
|
2419
|
+
function candidatesFor(target, base, file, root) {
|
|
2420
|
+
const dir = dirname3(file);
|
|
2421
|
+
if (base === "mdx") {
|
|
2422
|
+
if (target.startsWith("@site/")) {
|
|
2423
|
+
const site = findAncestor(dir, DOCUSAURUS);
|
|
2424
|
+
return site ? [join3(site, target.slice("@site/".length))] : [];
|
|
2425
|
+
}
|
|
2426
|
+
if (target.startsWith("/")) {
|
|
2427
|
+
const docs = findAncestor(dir, ["docs.json", "mint.json"]);
|
|
2428
|
+
return docs ? [join3(docs, target)] : [];
|
|
2429
|
+
}
|
|
2430
|
+
return target.startsWith(".") ? [resolve3(dir, target)] : [];
|
|
2431
|
+
}
|
|
2432
|
+
if (base === "rst" && target.startsWith("/")) {
|
|
2433
|
+
const source = findAncestor(dir, ["conf.py"]);
|
|
2434
|
+
if (source) return [join3(source, target)];
|
|
2435
|
+
}
|
|
2436
|
+
if (isAbsolute3(target)) return [target];
|
|
2437
|
+
const fromFile = resolve3(dir, target);
|
|
2438
|
+
const fromRoot = resolve3(root, target);
|
|
2439
|
+
return base === "rootThenFile" ? [fromRoot, fromFile] : [fromFile, fromRoot];
|
|
2440
|
+
}
|
|
2441
|
+
var isFile2 = (candidate) => {
|
|
2442
|
+
try {
|
|
2443
|
+
return statSync(candidate).isFile();
|
|
2444
|
+
} catch {
|
|
2445
|
+
return false;
|
|
2446
|
+
}
|
|
2447
|
+
};
|
|
2448
|
+
var inside = (child, parent) => {
|
|
2449
|
+
const rel = relative(parent, child);
|
|
2450
|
+
return rel === "" || !rel.startsWith("..") && !isAbsolute3(rel);
|
|
2451
|
+
};
|
|
2452
|
+
function realpath(file) {
|
|
2453
|
+
try {
|
|
2454
|
+
return realpathSync(file);
|
|
2455
|
+
} catch {
|
|
2456
|
+
return resolve3(file);
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
var trimFinalBreak = (pieces) => {
|
|
2460
|
+
const last = pieces[pieces.length - 1];
|
|
2461
|
+
if (last) last.text = last.text.replace(/\r?\n$/, "");
|
|
2462
|
+
return pieces.filter((p) => p.text.length > 0);
|
|
2463
|
+
};
|
|
2464
|
+
function asMdx(piece) {
|
|
2465
|
+
if (extname(piece.file) === ".mdx") return piece;
|
|
2466
|
+
const fences = fenceRanges(piece.text);
|
|
2467
|
+
const text = piece.text.replace(
|
|
2468
|
+
/<!--([\s\S]*?)-->/g,
|
|
2469
|
+
(all, body, offset) => fences.some(([s, e]) => offset >= s && offset < e) ? all : `{/* ${body}*/}`
|
|
2470
|
+
);
|
|
2471
|
+
return { ...piece, text };
|
|
2472
|
+
}
|
|
2473
|
+
function indentPieces(pieces, indent, file, offset, anchor) {
|
|
2474
|
+
const out = [];
|
|
2475
|
+
for (const piece of pieces) {
|
|
2476
|
+
let pos = 0;
|
|
2477
|
+
for (const m of piece.text.matchAll(/\n/g)) {
|
|
2478
|
+
const cut = m.index + 1;
|
|
2479
|
+
out.push({ ...piece, text: piece.text.slice(pos, cut), srcStart: piece.srcStart + pos });
|
|
2480
|
+
out.push({ text: indent, file, srcStart: offset, ...anchor === void 0 ? {} : { anchor } });
|
|
2481
|
+
pos = cut;
|
|
2482
|
+
}
|
|
2483
|
+
if (pos < piece.text.length) {
|
|
2484
|
+
out.push({ ...piece, text: piece.text.slice(pos), srcStart: piece.srcStart + pos });
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
return out;
|
|
2488
|
+
}
|
|
2489
|
+
var posix = (p) => p.replace(/\\/g, "/");
|
|
2490
|
+
function expandIncludes(opts) {
|
|
2491
|
+
const { content, report = () => void 0 } = opts;
|
|
2492
|
+
const rootReal = realpath(opts.root);
|
|
2493
|
+
const rootFile = realpath(resolve3(opts.root, opts.filePath));
|
|
2494
|
+
const display = opts.display ?? ((abs) => posix(relative(rootReal, abs)) || abs);
|
|
2495
|
+
const pageFamily = (opts.format === void 0 ? void 0 : includeFamily(opts.format)) ?? FAMILY_BY_EXT[extname(rootFile).toLowerCase()];
|
|
2496
|
+
const texts = /* @__PURE__ */ new Map([[rootFile, content]]);
|
|
2497
|
+
const starts = /* @__PURE__ */ new Map();
|
|
2498
|
+
const startsOf = (file) => {
|
|
2499
|
+
let s = starts.get(file);
|
|
2500
|
+
if (!s) {
|
|
2501
|
+
s = lineStarts(texts.get(file) ?? "");
|
|
2502
|
+
starts.set(file, s);
|
|
2503
|
+
}
|
|
2504
|
+
return s;
|
|
2505
|
+
};
|
|
2506
|
+
const included = /* @__PURE__ */ new Set();
|
|
2507
|
+
const attributes = /* @__PURE__ */ new Map();
|
|
2508
|
+
const familyFor = (file, parent) => FAMILY_BY_EXT[extname(file).toLowerCase()] ?? parent;
|
|
2509
|
+
const resolveOne = (d, piece, offset, chain, family) => {
|
|
2510
|
+
const file = piece.file;
|
|
2511
|
+
const from = `${display(file)}:${String(lineCol(startsOf(file), offset).line)}`;
|
|
2512
|
+
const leftAs = (why) => {
|
|
2513
|
+
report(`${from}: include "${d.target}" ${why}; left unexpanded.`);
|
|
2514
|
+
return null;
|
|
2515
|
+
};
|
|
2516
|
+
if (d.skip) return null;
|
|
2517
|
+
if (isUrl(d.target)) return leftAs("is a URL");
|
|
2518
|
+
const candidates = candidatesFor(d.target, d.base, file, rootReal);
|
|
2519
|
+
if (!candidates.length) {
|
|
2520
|
+
if (d.base === "mdx" && d.target.startsWith("@site/")) {
|
|
2521
|
+
return leftAs("needs a docusaurus.config file above the page");
|
|
2522
|
+
}
|
|
2523
|
+
if (d.base === "mdx" && d.target.startsWith("/")) {
|
|
2524
|
+
return leftAs("needs a docs.json or mint.json above the page");
|
|
2525
|
+
}
|
|
2526
|
+
return null;
|
|
2527
|
+
}
|
|
2528
|
+
const found = candidates.find(isFile2);
|
|
2529
|
+
if (found === void 0) return d.optional ? null : leftAs("not found");
|
|
2530
|
+
const real = realpath(found);
|
|
2531
|
+
if (!inside(real, rootReal)) return leftAs(`is outside ${posix(rootReal)}`);
|
|
2532
|
+
const loop = chain.indexOf(real);
|
|
2533
|
+
if (loop !== -1) {
|
|
2534
|
+
const members = chain.slice(loop).map(display);
|
|
2535
|
+
const first = members.indexOf([...members].sort()[0] ?? "");
|
|
2536
|
+
const ring = [...members.slice(first), ...members.slice(0, first)];
|
|
2537
|
+
report(`${ring[0] ?? ""} includes itself: ${[...ring, ring[0] ?? ""].join(" \u2192 ")}; stopped expanding.`);
|
|
2538
|
+
return null;
|
|
2539
|
+
}
|
|
2540
|
+
if (chain.length > MAX_INCLUDE_DEPTH) {
|
|
2541
|
+
report(`${display(rootFile)}: includes nest deeper than ${String(MAX_INCLUDE_DEPTH)}; stopped expanding.`);
|
|
2542
|
+
return null;
|
|
2543
|
+
}
|
|
2544
|
+
let text = texts.get(real);
|
|
2545
|
+
if (text === void 0) {
|
|
2546
|
+
try {
|
|
2547
|
+
text = readFileSync(real, "utf8");
|
|
2548
|
+
} catch {
|
|
2549
|
+
return leftAs("not found");
|
|
2550
|
+
}
|
|
2551
|
+
texts.set(real, text);
|
|
2552
|
+
}
|
|
2553
|
+
const selection = d.select ? d.select(text) : { ranges: [[0, text.length]] };
|
|
2554
|
+
if ("missing" in selection) return leftAs(`selects "${selection.missing}", which is not found`);
|
|
2555
|
+
included.add(real);
|
|
2556
|
+
const ranges = [];
|
|
2557
|
+
for (const [s, e] of selection.ranges.filter(([s2, e2]) => e2 > s2)) {
|
|
2558
|
+
const last = ranges[ranges.length - 1];
|
|
2559
|
+
if (last && last[1] === s) last[1] = e;
|
|
2560
|
+
else ranges.push([s, e]);
|
|
2561
|
+
}
|
|
2562
|
+
const anchor = piece.anchor ?? offset;
|
|
2563
|
+
const body = text;
|
|
2564
|
+
const pieces2 = ranges.map(([s, e]) => ({ text: body.slice(s, e), file: real, srcStart: s, anchor }));
|
|
2565
|
+
const expanded = trimFinalBreak(expand(pieces2, familyFor(real, family), [...chain, real]));
|
|
2566
|
+
return extname(file) === ".mdx" ? expanded.map(asMdx) : expanded;
|
|
2567
|
+
};
|
|
2568
|
+
const expand = (pieces2, family, chain) => {
|
|
2569
|
+
const file = pieces2[0]?.file ?? rootFile;
|
|
2570
|
+
const fileText = texts.get(file) ?? "";
|
|
2571
|
+
const out = [];
|
|
2572
|
+
for (const piece of pieces2) {
|
|
2573
|
+
const directives = (family === "asciidoc" ? asciidocDirectives(piece.text) : family === "markdown" ? markdownDirectives(piece.text, fileText) : rstDirectives(piece.text)).sort((a, b) => a.start - b.start).filter((d, i, all) => i === 0 || d.start >= (all[i - 1]?.end ?? 0));
|
|
2574
|
+
let pos = 0;
|
|
2575
|
+
for (const d of directives) {
|
|
2576
|
+
if (d.attribute) {
|
|
2577
|
+
attributes.set(...d.attribute);
|
|
2578
|
+
continue;
|
|
2579
|
+
}
|
|
2580
|
+
if (d.attributes) d.target = d.target.replace(/\{([\w-]+)\}/g, (all, name) => attributes.get(name) ?? all);
|
|
2581
|
+
const offset = piece.srcStart + d.start;
|
|
2582
|
+
const resolved = resolveOne(d, piece, offset, chain, family);
|
|
2583
|
+
if (resolved === null) continue;
|
|
2584
|
+
if (d.start > pos) out.push({ ...piece, text: piece.text.slice(pos, d.start), srcStart: piece.srcStart + pos });
|
|
2585
|
+
const lineStart = piece.text.lastIndexOf("\n", d.start - 1) + 1;
|
|
2586
|
+
const indent = piece.text.slice(lineStart, d.start);
|
|
2587
|
+
out.push(
|
|
2588
|
+
.../^[ \t]+$/.test(indent) ? indentPieces(resolved, indent, piece.file, offset, piece.anchor) : resolved
|
|
2589
|
+
);
|
|
2590
|
+
pos = d.end;
|
|
2591
|
+
}
|
|
2592
|
+
if (pos < piece.text.length) out.push({ ...piece, text: piece.text.slice(pos), srcStart: piece.srcStart + pos });
|
|
2593
|
+
}
|
|
2594
|
+
return out;
|
|
2595
|
+
};
|
|
2596
|
+
const identity = {
|
|
2597
|
+
text: content,
|
|
2598
|
+
included,
|
|
2599
|
+
locate: (offset) => ({ offset, ...lineCol(startsOf(rootFile), offset) })
|
|
2600
|
+
};
|
|
2601
|
+
if (pageFamily === void 0) return identity;
|
|
2602
|
+
const pieces = expand([{ text: content, file: rootFile, srcStart: 0 }], pageFamily, [rootFile]);
|
|
2603
|
+
if (included.size === 0) return identity;
|
|
2604
|
+
const pieceStarts = [];
|
|
2605
|
+
let total = 0;
|
|
2606
|
+
for (const p of pieces) {
|
|
2607
|
+
pieceStarts.push(total);
|
|
2608
|
+
total += p.text.length;
|
|
2609
|
+
}
|
|
2610
|
+
const locate = (offset) => {
|
|
2611
|
+
let lo = 0;
|
|
2612
|
+
let hi = pieces.length - 1;
|
|
2613
|
+
while (lo < hi) {
|
|
2614
|
+
const mid = lo + hi + 1 >> 1;
|
|
2615
|
+
if ((pieceStarts[mid] ?? 0) <= offset) lo = mid;
|
|
2616
|
+
else hi = mid - 1;
|
|
2617
|
+
}
|
|
2618
|
+
const piece = pieces[lo];
|
|
2619
|
+
if (piece === void 0) return { offset, line: 1, column: 1 };
|
|
2620
|
+
const src = piece.srcStart + Math.min(offset - (pieceStarts[lo] ?? 0), piece.text.length);
|
|
2621
|
+
if (piece.anchor === void 0) return { offset: src, ...lineCol(startsOf(rootFile), src) };
|
|
2622
|
+
return {
|
|
2623
|
+
offset: piece.anchor,
|
|
2624
|
+
...lineCol(startsOf(rootFile), piece.anchor),
|
|
2625
|
+
includedFrom: { file: display(piece.file), line: lineCol(startsOf(piece.file), src).line }
|
|
2626
|
+
};
|
|
2627
|
+
};
|
|
2628
|
+
return { text: pieces.map((p) => p.text).join(""), included, locate };
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2148
2631
|
// src/lint/commands/lint.ts
|
|
2149
2632
|
var STDIN_LABEL = "<stdin>";
|
|
2150
2633
|
async function asLintError(run) {
|
|
@@ -2238,10 +2721,27 @@ function unknownTypeFinding(resolution, typeIndex, position) {
|
|
|
2238
2721
|
template: null
|
|
2239
2722
|
};
|
|
2240
2723
|
}
|
|
2241
|
-
|
|
2724
|
+
function remapFindings(findings, expansion) {
|
|
2725
|
+
const starts = [0];
|
|
2726
|
+
for (let i = expansion.text.indexOf("\n"); i !== -1; i = expansion.text.indexOf("\n", i + 1)) {
|
|
2727
|
+
starts.push(i + 1);
|
|
2728
|
+
}
|
|
2729
|
+
const at = (p) => expansion.locate((starts[p.line - 1] ?? expansion.text.length) + p.column - 1);
|
|
2730
|
+
return findings.map((finding) => {
|
|
2731
|
+
const start = at(finding.position.start);
|
|
2732
|
+
const point = { line: start.line, column: start.column, offset: start.offset };
|
|
2733
|
+
if (start.includedFrom !== void 0) {
|
|
2734
|
+
return { ...finding, position: { start: point, end: point }, includedFrom: start.includedFrom };
|
|
2735
|
+
}
|
|
2736
|
+
const end = at(finding.position.end);
|
|
2737
|
+
const endPoint = end.includedFrom === void 0 ? { line: end.line, column: end.column, offset: end.offset } : point;
|
|
2738
|
+
return { ...finding, position: { start: point, end: endPoint } };
|
|
2739
|
+
});
|
|
2740
|
+
}
|
|
2741
|
+
async function lintOne(label, content, parser, ctx, expansion) {
|
|
2242
2742
|
let tree;
|
|
2243
2743
|
try {
|
|
2244
|
-
tree = await parser.parse(content, label, {
|
|
2744
|
+
tree = await parser.parse(expansion?.text ?? content, label, {
|
|
2245
2745
|
absPath: ctx.absoluteOf(label),
|
|
2246
2746
|
flare: ctx.flare
|
|
2247
2747
|
});
|
|
@@ -2333,6 +2833,7 @@ async function lintOne(label, content, parser, ctx) {
|
|
|
2333
2833
|
if (err instanceof LintError) return brokenTemplate(err);
|
|
2334
2834
|
throw err;
|
|
2335
2835
|
}
|
|
2836
|
+
if (expansion !== void 0) findings = remapFindings(findings, expansion);
|
|
2336
2837
|
return withResolution({
|
|
2337
2838
|
file: label,
|
|
2338
2839
|
// "Linted and found nothing wrong", which is not the same as "produced no
|
|
@@ -2347,7 +2848,7 @@ async function lintOne(label, content, parser, ctx) {
|
|
|
2347
2848
|
});
|
|
2348
2849
|
}
|
|
2349
2850
|
async function lintWithManni(run) {
|
|
2350
|
-
const { opts, config, cwd, files, forcedParser, usingStdin, tools } = run;
|
|
2851
|
+
const { opts, config, cwd, files, forcedParser, usingStdin, tools, root } = run;
|
|
2351
2852
|
const routing = await buildTemplateRouting({
|
|
2352
2853
|
config,
|
|
2353
2854
|
templates: opts.templates === void 0 ? void 0 : templateFiles(opts.templates),
|
|
@@ -2358,7 +2859,7 @@ async function lintWithManni(run) {
|
|
|
2358
2859
|
});
|
|
2359
2860
|
const ctx = {
|
|
2360
2861
|
routing,
|
|
2361
|
-
absoluteOf: (file) =>
|
|
2862
|
+
absoluteOf: (file) => resolve4(cwd, file).replace(/\\/g, "/"),
|
|
2362
2863
|
explain: opts.explain === true,
|
|
2363
2864
|
flare: flareRun(tools)
|
|
2364
2865
|
};
|
|
@@ -2369,23 +2870,68 @@ async function lintWithManni(run) {
|
|
|
2369
2870
|
await lintOne(STDIN_LABEL, opts.stdinContent ?? "", forcedParser, ctx)
|
|
2370
2871
|
);
|
|
2371
2872
|
}
|
|
2873
|
+
const read = [];
|
|
2372
2874
|
for (const file of files) {
|
|
2373
|
-
const ext =
|
|
2875
|
+
const ext = extname2(file);
|
|
2374
2876
|
const parser = forcedParser ?? parserForExtension(ext);
|
|
2375
2877
|
if (!parser) {
|
|
2376
|
-
|
|
2878
|
+
read.push({ file, skip: skip(file, unsupportedFormatMessage(ext || file)) });
|
|
2377
2879
|
continue;
|
|
2378
2880
|
}
|
|
2379
2881
|
let content;
|
|
2380
2882
|
try {
|
|
2381
|
-
content = await readFile3(
|
|
2883
|
+
content = await readFile3(resolve4(cwd, file), "utf8");
|
|
2382
2884
|
} catch (err) {
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2885
|
+
read.push({
|
|
2886
|
+
file,
|
|
2887
|
+
skip: skip(file, `could not be read: ${errorMessage(err)}`, "unreadable")
|
|
2888
|
+
});
|
|
2386
2889
|
continue;
|
|
2387
2890
|
}
|
|
2388
|
-
|
|
2891
|
+
read.push({ file, parser, content });
|
|
2892
|
+
}
|
|
2893
|
+
const cwdReal = realpath(cwd);
|
|
2894
|
+
const display = (abs) => relative2(cwdReal, abs).replace(/\\/g, "/");
|
|
2895
|
+
const expansions = /* @__PURE__ */ new Map();
|
|
2896
|
+
for (const entry of read) {
|
|
2897
|
+
if (entry.parser === void 0 || entry.content === void 0) continue;
|
|
2898
|
+
expansions.set(
|
|
2899
|
+
entry.file,
|
|
2900
|
+
expandIncludes({
|
|
2901
|
+
content: entry.content,
|
|
2902
|
+
filePath: resolve4(cwd, entry.file),
|
|
2903
|
+
format: entry.parser.name,
|
|
2904
|
+
root,
|
|
2905
|
+
display,
|
|
2906
|
+
report: warn
|
|
2907
|
+
})
|
|
2908
|
+
);
|
|
2909
|
+
}
|
|
2910
|
+
const kept = new Set(expansions.keys());
|
|
2911
|
+
const includers = /* @__PURE__ */ new Map();
|
|
2912
|
+
for (const [other, expansion] of expansions) {
|
|
2913
|
+
for (const real of expansion.included) {
|
|
2914
|
+
const list = includers.get(real);
|
|
2915
|
+
if (list === void 0) includers.set(real, [other]);
|
|
2916
|
+
else list.push(other);
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
const includer = /* @__PURE__ */ new Map();
|
|
2920
|
+
for (const file of expansions.keys()) {
|
|
2921
|
+
const real = realpath(resolve4(cwd, file));
|
|
2922
|
+
const by = includers.get(real)?.find((other) => other !== file && kept.has(other));
|
|
2923
|
+
if (by !== void 0) {
|
|
2924
|
+
kept.delete(file);
|
|
2925
|
+
includer.set(file, by);
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
for (const entry of read) {
|
|
2929
|
+
const by = includer.get(entry.file);
|
|
2930
|
+
if (entry.skip) results.push(entry.skip);
|
|
2931
|
+
else if (by !== void 0) results.push(skip(entry.file, `assessed through ${by}`, "partial"));
|
|
2932
|
+
else if (entry.parser && entry.content !== void 0) {
|
|
2933
|
+
results.push(await lintOne(entry.file, entry.content, entry.parser, ctx, expansions.get(entry.file)));
|
|
2934
|
+
}
|
|
2389
2935
|
}
|
|
2390
2936
|
return results;
|
|
2391
2937
|
}
|
|
@@ -2413,30 +2959,30 @@ async function lintWithDitaOt(run) {
|
|
|
2413
2959
|
const targets = [];
|
|
2414
2960
|
const unsupported = [];
|
|
2415
2961
|
for (const file of files) {
|
|
2416
|
-
if (reads.has(
|
|
2962
|
+
if (reads.has(extname2(file).toLowerCase())) targets.push(file);
|
|
2417
2963
|
else {
|
|
2418
2964
|
unsupported.push(
|
|
2419
2965
|
skip(
|
|
2420
2966
|
file,
|
|
2421
|
-
`dita-ot does not read "${
|
|
2967
|
+
`dita-ot does not read "${extname2(file) || file}". It reads ${readable.join(", ")}.`
|
|
2422
2968
|
)
|
|
2423
2969
|
);
|
|
2424
2970
|
}
|
|
2425
2971
|
}
|
|
2426
2972
|
const labels = /* @__PURE__ */ new Map();
|
|
2427
2973
|
for (const file of targets) {
|
|
2428
|
-
const absolute =
|
|
2974
|
+
const absolute = resolve4(cwd, file);
|
|
2429
2975
|
if (!labels.has(absolute)) labels.set(absolute, file);
|
|
2430
2976
|
}
|
|
2431
2977
|
const unique = [...labels.values()];
|
|
2432
2978
|
const labelOf = (absolute) => {
|
|
2433
2979
|
const known = labels.get(absolute);
|
|
2434
2980
|
if (known !== void 0) return known;
|
|
2435
|
-
const near =
|
|
2981
|
+
const near = relative2(cwd, absolute).replace(/\\/g, "/");
|
|
2436
2982
|
return near === "" ? absolute : near;
|
|
2437
2983
|
};
|
|
2438
2984
|
for (const file of unique) {
|
|
2439
|
-
if (
|
|
2985
|
+
if (extname2(file).toLowerCase() !== ".ditamap") {
|
|
2440
2986
|
onNotice?.(
|
|
2441
2987
|
`checked ${file} without a map; references outside it are not resolved.`
|
|
2442
2988
|
);
|
|
@@ -2460,7 +3006,7 @@ async function lintWithDitaOt(run) {
|
|
|
2460
3006
|
for (const { target, messages } of results) {
|
|
2461
3007
|
const invoked = labelOf(target);
|
|
2462
3008
|
for (const message of messages) {
|
|
2463
|
-
const file = message.file === void 0 ? invoked : labelOf(
|
|
3009
|
+
const file = message.file === void 0 ? invoked : labelOf(resolve4(cwd, message.file));
|
|
2464
3010
|
findingsFor(file).push(ditaOtFinding(message));
|
|
2465
3011
|
}
|
|
2466
3012
|
}
|
|
@@ -2577,7 +3123,8 @@ async function runLint(opts) {
|
|
|
2577
3123
|
files,
|
|
2578
3124
|
forcedParser,
|
|
2579
3125
|
usingStdin,
|
|
2580
|
-
tools: run.tools
|
|
3126
|
+
tools: run.tools,
|
|
3127
|
+
root: run.configDir ?? cwd
|
|
2581
3128
|
});
|
|
2582
3129
|
} else if (name === "dita-ot") {
|
|
2583
3130
|
const home = ditaOtHome(run.tools, run.configDir ?? cwd);
|
|
@@ -2592,12 +3139,13 @@ async function runLint(opts) {
|
|
|
2592
3139
|
throw new LintError(`No implementation is registered for the ${name} tool.`);
|
|
2593
3140
|
}
|
|
2594
3141
|
assertSomethingWasChecked(results, opts.explain === true, tool);
|
|
2595
|
-
const
|
|
3142
|
+
const partials = results.filter((r) => r.skipped === "partial").length;
|
|
3143
|
+
const skipped = results.filter((r) => r.skipped != null).length - partials;
|
|
2596
3144
|
const failed = results.filter((r) => r.skipped == null && !r.success).length;
|
|
2597
|
-
const checked = results.length - skipped;
|
|
3145
|
+
const checked = results.length - skipped - partials;
|
|
2598
3146
|
return {
|
|
2599
3147
|
results,
|
|
2600
|
-
summary: { checked, passed: checked - failed, failed, skipped }
|
|
3148
|
+
summary: { checked, passed: checked - failed, failed, skipped, partials }
|
|
2601
3149
|
};
|
|
2602
3150
|
}
|
|
2603
3151
|
|
|
@@ -2624,7 +3172,9 @@ export {
|
|
|
2624
3172
|
rebaseConfig,
|
|
2625
3173
|
resolveLintRun,
|
|
2626
3174
|
resolveStructureTool,
|
|
3175
|
+
realpath,
|
|
3176
|
+
expandIncludes,
|
|
2627
3177
|
STDIN_LABEL,
|
|
2628
3178
|
runLint
|
|
2629
3179
|
};
|
|
2630
|
-
//# sourceMappingURL=chunk-
|
|
3180
|
+
//# sourceMappingURL=chunk-YAPFEDGW.js.map
|