eslint-plugin-sonarjs 4.0.1 → 4.0.3
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 +23 -22
- package/cjs/S100/config.js +3 -3
- package/cjs/S100/generated-meta.js +3 -3
- package/cjs/S100/index.js +3 -3
- package/cjs/S100/meta.js +3 -3
- package/cjs/S100/rule.js +10 -8
- package/cjs/S101/config.js +4 -4
- package/cjs/S101/generated-meta.js +4 -4
- package/cjs/S101/index.js +3 -3
- package/cjs/S101/meta.js +3 -3
- package/cjs/S101/rule.js +6 -6
- package/cjs/S104/config.js +3 -3
- package/cjs/S104/generated-meta.js +3 -3
- package/cjs/S104/index.js +3 -3
- package/cjs/S104/meta.js +3 -3
- package/cjs/S104/rule.js +5 -5
- package/cjs/S105/generated-meta.js +3 -3
- package/cjs/S105/index.js +3 -3
- package/cjs/S105/meta.js +3 -3
- package/cjs/S105/rule.js +5 -5
- package/cjs/S1066/generated-meta.js +3 -3
- package/cjs/S1066/index.js +3 -3
- package/cjs/S1066/meta.js +3 -3
- package/cjs/S1066/rule.js +8 -7
- package/cjs/S1067/config.js +3 -3
- package/cjs/S1067/generated-meta.js +3 -3
- package/cjs/S1067/index.js +3 -3
- package/cjs/S1067/meta.js +3 -3
- package/cjs/S1067/rule.js +11 -9
- package/cjs/S1110/generated-meta.js +3 -3
- package/cjs/S1110/index.js +3 -3
- package/cjs/S1110/meta.js +3 -3
- package/cjs/S1110/rule.js +10 -8
- package/cjs/S1119/generated-meta.js +3 -3
- package/cjs/S1119/index.js +3 -3
- package/cjs/S1119/meta.js +3 -3
- package/cjs/S1119/rule.js +5 -5
- package/cjs/S1121/generated-meta.js +3 -3
- package/cjs/S1121/index.js +3 -3
- package/cjs/S1121/meta.js +3 -3
- package/cjs/S1121/rule.js +7 -6
- package/cjs/S1125/generated-meta.js +3 -3
- package/cjs/S1125/index.js +3 -3
- package/cjs/S1125/meta.js +3 -3
- package/cjs/S1125/rule.js +12 -11
- package/cjs/S1126/generated-meta.js +3 -3
- package/cjs/S1126/index.js +3 -3
- package/cjs/S1126/meta.js +3 -3
- package/cjs/S1126/rule.js +31 -12
- package/cjs/S1128/generated-meta.js +5 -4
- package/cjs/S1128/index.js +3 -3
- package/cjs/S1128/meta.js +3 -3
- package/cjs/S1128/rule.js +11 -8
- package/cjs/S1134/generated-meta.js +3 -3
- package/cjs/S1134/index.js +3 -3
- package/cjs/S1134/meta.js +3 -3
- package/cjs/S1134/rule.js +5 -5
- package/cjs/S1135/generated-meta.js +3 -3
- package/cjs/S1135/index.js +3 -3
- package/cjs/S1135/meta.js +3 -3
- package/cjs/S1135/rule.js +5 -5
- package/cjs/S1154/generated-meta.js +3 -3
- package/cjs/S1154/index.js +3 -3
- package/cjs/S1154/meta.js +3 -3
- package/cjs/S1154/rule.js +9 -7
- package/cjs/S117/config.js +3 -3
- package/cjs/S117/generated-meta.js +3 -3
- package/cjs/S117/index.js +3 -3
- package/cjs/S117/meta.js +3 -3
- package/cjs/S117/rule.js +9 -8
- package/cjs/S1172/generated-meta.js +3 -3
- package/cjs/S1172/index.js +3 -3
- package/cjs/S1172/meta.js +3 -3
- package/cjs/S1172/rule.js +5 -5
- package/cjs/S1192/config.js +3 -3
- package/cjs/S1192/generated-meta.js +3 -3
- package/cjs/S1192/index.js +3 -3
- package/cjs/S1192/meta.js +3 -3
- package/cjs/S1192/rule.js +10 -9
- package/cjs/S1219/generated-meta.js +3 -3
- package/cjs/S1219/index.js +3 -3
- package/cjs/S1219/meta.js +3 -3
- package/cjs/S1219/rule.js +7 -6
- package/cjs/S1226/generated-meta.js +3 -3
- package/cjs/S1226/index.js +3 -3
- package/cjs/S1226/meta.js +3 -3
- package/cjs/S1226/rule.js +9 -7
- package/cjs/S124/config.js +3 -3
- package/cjs/S124/generated-meta.js +3 -3
- package/cjs/S124/index.js +3 -3
- package/cjs/S124/meta.js +3 -3
- package/cjs/S124/rule.js +5 -5
- package/cjs/S125/generated-meta.js +3 -3
- package/cjs/S125/index.js +3 -3
- package/cjs/S125/meta.js +3 -3
- package/cjs/S125/rule.js +76 -27
- package/cjs/S126/generated-meta.js +3 -3
- package/cjs/S126/index.js +3 -3
- package/cjs/S126/meta.js +3 -3
- package/cjs/S126/rule.js +5 -5
- package/cjs/S1264/generated-meta.js +3 -3
- package/cjs/S1264/index.js +3 -3
- package/cjs/S1264/meta.js +3 -3
- package/cjs/S1264/rule.js +5 -5
- package/cjs/S128/generated-meta.js +3 -3
- package/cjs/S128/index.js +3 -3
- package/cjs/S128/meta.js +3 -3
- package/cjs/S128/rule.js +7 -6
- package/cjs/S1291/generated-meta.js +3 -3
- package/cjs/S1291/index.js +3 -3
- package/cjs/S1291/meta.js +3 -3
- package/cjs/S1291/rule.js +5 -5
- package/cjs/S1301/generated-meta.js +3 -3
- package/cjs/S1301/index.js +3 -3
- package/cjs/S1301/meta.js +3 -3
- package/cjs/S1301/rule.js +143 -5
- package/cjs/S1313/generated-meta.js +5 -5
- package/cjs/S1313/index.js +3 -3
- package/cjs/S1313/meta.js +3 -3
- package/cjs/S1313/rule.js +5 -5
- package/cjs/S134/config.js +4 -4
- package/cjs/S134/generated-meta.js +3 -3
- package/cjs/S134/index.js +3 -3
- package/cjs/S134/meta.js +3 -3
- package/cjs/S134/rule.js +10 -8
- package/cjs/S135/generated-meta.js +3 -3
- package/cjs/S135/index.js +3 -3
- package/cjs/S135/meta.js +3 -3
- package/cjs/S135/rule.js +8 -7
- package/cjs/S138/config.js +3 -3
- package/cjs/S138/generated-meta.js +3 -3
- package/cjs/S138/index.js +3 -3
- package/cjs/S138/meta.js +3 -3
- package/cjs/S138/rule.js +12 -9
- package/cjs/S1439/generated-meta.js +3 -3
- package/cjs/S1439/index.js +3 -3
- package/cjs/S1439/meta.js +3 -3
- package/cjs/S1439/rule.js +5 -5
- package/cjs/S1444/generated-meta.js +3 -3
- package/cjs/S1444/index.js +3 -3
- package/cjs/S1444/meta.js +3 -3
- package/cjs/S1444/rule.js +5 -5
- package/cjs/S1451/config.js +3 -3
- package/cjs/S1451/generated-meta.js +3 -3
- package/cjs/S1451/index.js +3 -3
- package/cjs/S1451/meta.js +3 -3
- package/cjs/S1451/rule.js +5 -5
- package/cjs/S1472/generated-meta.js +3 -3
- package/cjs/S1472/index.js +3 -3
- package/cjs/S1472/meta.js +3 -3
- package/cjs/S1472/rule.js +5 -5
- package/cjs/S1479/config.js +3 -3
- package/cjs/S1479/generated-meta.js +3 -3
- package/cjs/S1479/index.js +3 -3
- package/cjs/S1479/meta.js +3 -3
- package/cjs/S1479/rule.js +5 -5
- package/cjs/S1481/generated-meta.js +3 -3
- package/cjs/S1481/index.js +3 -3
- package/cjs/S1481/meta.js +3 -3
- package/cjs/S1481/rule.js +5 -5
- package/cjs/S1488/generated-meta.js +3 -3
- package/cjs/S1488/index.js +3 -3
- package/cjs/S1488/meta.js +3 -3
- package/cjs/S1488/rule.js +14 -10
- package/cjs/S1515/generated-meta.js +3 -3
- package/cjs/S1515/index.js +3 -3
- package/cjs/S1515/meta.js +3 -3
- package/cjs/S1515/rule.js +13 -11
- package/cjs/S1523/generated-meta.js +3 -3
- package/cjs/S1523/index.js +3 -3
- package/cjs/S1523/meta.js +3 -3
- package/cjs/S1523/rule.js +8 -8
- package/cjs/S1526/generated-meta.js +3 -3
- package/cjs/S1526/index.js +3 -3
- package/cjs/S1526/meta.js +3 -3
- package/cjs/S1526/rule.js +8 -7
- package/cjs/S1527/generated-meta.js +3 -3
- package/cjs/S1527/index.js +3 -3
- package/cjs/S1527/meta.js +3 -3
- package/cjs/S1527/rule.js +5 -5
- package/cjs/S1528/generated-meta.js +3 -3
- package/cjs/S1528/index.js +3 -3
- package/cjs/S1528/meta.js +3 -3
- package/cjs/S1528/rule.js +2 -2
- package/cjs/S1529/generated-meta.js +3 -3
- package/cjs/S1529/index.js +3 -3
- package/cjs/S1529/meta.js +3 -3
- package/cjs/S1529/rule.js +7 -6
- package/cjs/S1530/generated-meta.js +3 -3
- package/cjs/S1530/index.js +3 -3
- package/cjs/S1530/meta.js +3 -3
- package/cjs/S1530/rule.js +8 -6
- package/cjs/S1533/generated-meta.js +3 -3
- package/cjs/S1533/index.js +3 -3
- package/cjs/S1533/meta.js +3 -3
- package/cjs/S1533/rule.js +5 -5
- package/cjs/S1535/generated-meta.js +3 -3
- package/cjs/S1535/index.js +3 -3
- package/cjs/S1535/meta.js +3 -3
- package/cjs/S1535/rule.js +5 -5
- package/cjs/S1541/config.js +3 -3
- package/cjs/S1541/generated-meta.js +3 -3
- package/cjs/S1541/index.js +3 -3
- package/cjs/S1541/meta.js +3 -3
- package/cjs/S1541/rule.js +13 -10
- package/cjs/S1607/generated-meta.js +3 -3
- package/cjs/S1607/index.js +3 -3
- package/cjs/S1607/meta.js +3 -3
- package/cjs/S1607/rule.js +25 -23
- package/cjs/S1764/generated-meta.js +3 -3
- package/cjs/S1764/index.js +3 -3
- package/cjs/S1764/meta.js +3 -3
- package/cjs/S1764/rule.js +13 -10
- package/cjs/S1821/generated-meta.js +3 -3
- package/cjs/S1821/index.js +3 -3
- package/cjs/S1821/meta.js +3 -3
- package/cjs/S1821/rule.js +5 -5
- package/cjs/S1848/generated-meta.js +3 -3
- package/cjs/S1848/index.js +3 -3
- package/cjs/S1848/meta.js +3 -3
- package/cjs/S1848/rule.js +13 -10
- package/cjs/S1854/generated-meta.js +3 -3
- package/cjs/S1854/index.js +3 -3
- package/cjs/S1854/meta.js +3 -3
- package/cjs/S1854/rule.js +21 -17
- package/cjs/S1862/generated-meta.js +3 -3
- package/cjs/S1862/index.js +3 -3
- package/cjs/S1862/meta.js +3 -3
- package/cjs/S1862/rule.js +13 -11
- package/cjs/S1871/generated-meta.js +3 -3
- package/cjs/S1871/index.js +3 -3
- package/cjs/S1871/meta.js +3 -3
- package/cjs/S1871/rule.js +24 -19
- package/cjs/S1874/generated-meta.js +3 -3
- package/cjs/S1874/index.js +3 -3
- package/cjs/S1874/meta.js +3 -3
- package/cjs/S1874/rule.js +7 -6
- package/cjs/S1940/generated-meta.js +3 -3
- package/cjs/S1940/index.js +3 -3
- package/cjs/S1940/meta.js +3 -3
- package/cjs/S1940/rule.js +5 -5
- package/cjs/S1994/generated-meta.js +3 -3
- package/cjs/S1994/index.js +3 -3
- package/cjs/S1994/meta.js +3 -3
- package/cjs/S1994/rule.js +13 -10
- package/cjs/S2004/config.js +3 -3
- package/cjs/S2004/generated-meta.js +3 -3
- package/cjs/S2004/index.js +3 -3
- package/cjs/S2004/meta.js +3 -3
- package/cjs/S2004/rule.js +12 -10
- package/cjs/S2068/config.js +3 -3
- package/cjs/S2068/generated-meta.js +3 -3
- package/cjs/S2068/index.js +3 -3
- package/cjs/S2068/meta.js +3 -3
- package/cjs/S2068/rule.js +102 -15
- package/cjs/S2077/generated-meta.js +3 -3
- package/cjs/S2077/index.js +3 -3
- package/cjs/S2077/meta.js +3 -3
- package/cjs/S2077/rule.js +45 -9
- package/cjs/S2092/generated-meta.js +4 -4
- package/cjs/S2092/index.js +3 -3
- package/cjs/S2092/meta.js +3 -3
- package/cjs/S2092/rule.js +5 -5
- package/cjs/S2123/generated-meta.js +3 -3
- package/cjs/S2123/index.js +3 -3
- package/cjs/S2123/meta.js +3 -3
- package/cjs/S2123/rule.js +5 -5
- package/cjs/S2137/generated-meta.js +3 -3
- package/cjs/S2137/index.js +3 -3
- package/cjs/S2137/meta.js +3 -3
- package/cjs/S2137/rule.js +5 -5
- package/cjs/S2138/generated-meta.js +3 -3
- package/cjs/S2138/index.js +3 -3
- package/cjs/S2138/meta.js +3 -3
- package/cjs/S2138/rule.js +7 -6
- package/cjs/S2187/generated-meta.js +3 -3
- package/cjs/S2187/index.js +3 -3
- package/cjs/S2187/meta.js +3 -3
- package/cjs/S2187/rule.js +5 -5
- package/cjs/S2201/generated-meta.js +3 -3
- package/cjs/S2201/index.js +3 -3
- package/cjs/S2201/meta.js +3 -3
- package/cjs/S2201/rule.js +11 -8
- package/cjs/S2208/generated-meta.js +5 -4
- package/cjs/S2208/index.js +3 -3
- package/cjs/S2208/meta.js +3 -3
- package/cjs/S2208/rule.js +5 -5
- package/cjs/S2234/generated-meta.js +3 -3
- package/cjs/S2234/index.js +3 -3
- package/cjs/S2234/meta.js +3 -3
- package/cjs/S2234/rule.js +163 -16
- package/cjs/S2245/generated-meta.js +3 -3
- package/cjs/S2245/index.js +3 -3
- package/cjs/S2245/meta.js +3 -3
- package/cjs/S2245/rule.js +7 -6
- package/cjs/S2251/generated-meta.js +3 -3
- package/cjs/S2251/index.js +3 -3
- package/cjs/S2251/meta.js +3 -3
- package/cjs/S2251/rule.js +8 -7
- package/cjs/S2255/generated-meta.js +3 -3
- package/cjs/S2255/index.js +3 -3
- package/cjs/S2255/meta.js +3 -3
- package/cjs/S2255/rule.js +9 -8
- package/cjs/S2259/generated-meta.js +3 -3
- package/cjs/S2259/index.js +3 -3
- package/cjs/S2259/meta.js +3 -3
- package/cjs/S2259/rule.js +17 -12
- package/cjs/S2301/generated-meta.js +3 -3
- package/cjs/S2301/index.js +3 -3
- package/cjs/S2301/meta.js +3 -3
- package/cjs/S2301/rule.js +24 -13
- package/cjs/S2310/generated-meta.js +3 -3
- package/cjs/S2310/index.js +3 -3
- package/cjs/S2310/meta.js +3 -3
- package/cjs/S2310/rule.js +17 -14
- package/cjs/S2392/generated-meta.js +3 -3
- package/cjs/S2392/index.js +3 -3
- package/cjs/S2392/meta.js +3 -3
- package/cjs/S2392/rule.js +51 -8
- package/cjs/S2424/generated-meta.js +3 -3
- package/cjs/S2424/index.js +3 -3
- package/cjs/S2424/meta.js +3 -3
- package/cjs/S2424/rule.js +5 -5
- package/cjs/S2428/generated-meta.js +3 -3
- package/cjs/S2428/index.js +3 -3
- package/cjs/S2428/meta.js +3 -3
- package/cjs/S2428/rule.js +11 -9
- package/cjs/S2486/generated-meta.js +3 -3
- package/cjs/S2486/index.js +3 -3
- package/cjs/S2486/meta.js +3 -3
- package/cjs/S2486/rule.js +7 -6
- package/cjs/S2589/generated-meta.js +3 -3
- package/cjs/S2589/index.js +3 -3
- package/cjs/S2589/meta.js +3 -3
- package/cjs/S2589/rule.js +15 -13
- package/cjs/S2598/generated-meta.js +3 -3
- package/cjs/S2598/index.js +3 -3
- package/cjs/S2598/meta.js +3 -3
- package/cjs/S2598/rule.js +20 -17
- package/cjs/S2612/generated-meta.js +4 -4
- package/cjs/S2612/index.js +3 -3
- package/cjs/S2612/meta.js +3 -3
- package/cjs/S2612/rule.js +11 -9
- package/cjs/S2639/generated-meta.js +3 -3
- package/cjs/S2639/index.js +3 -3
- package/cjs/S2639/meta.js +3 -3
- package/cjs/S2639/rule.js +5 -5
- package/cjs/S2681/generated-meta.js +3 -3
- package/cjs/S2681/index.js +3 -3
- package/cjs/S2681/meta.js +3 -3
- package/cjs/S2681/rule.js +5 -5
- package/cjs/S2692/generated-meta.js +3 -3
- package/cjs/S2692/index.js +3 -3
- package/cjs/S2692/meta.js +3 -3
- package/cjs/S2692/rule.js +9 -7
- package/cjs/S2699/generated-meta.js +3 -3
- package/cjs/S2699/index.js +3 -3
- package/cjs/S2699/meta.js +3 -3
- package/cjs/S2699/rule.js +40 -31
- package/cjs/S2703/generated-meta.js +3 -3
- package/cjs/S2703/index.js +3 -3
- package/cjs/S2703/meta.js +3 -3
- package/cjs/S2703/rule.js +5 -5
- package/cjs/S2737/generated-meta.js +3 -3
- package/cjs/S2737/index.js +3 -3
- package/cjs/S2737/meta.js +3 -3
- package/cjs/S2737/rule.js +9 -7
- package/cjs/S2755/generated-meta.js +3 -3
- package/cjs/S2755/index.js +3 -3
- package/cjs/S2755/meta.js +3 -3
- package/cjs/S2755/rule.js +12 -9
- package/cjs/S2757/generated-meta.js +3 -3
- package/cjs/S2757/index.js +3 -3
- package/cjs/S2757/meta.js +3 -3
- package/cjs/S2757/rule.js +5 -5
- package/cjs/S2817/generated-meta.js +3 -3
- package/cjs/S2817/index.js +3 -3
- package/cjs/S2817/meta.js +3 -3
- package/cjs/S2817/rule.js +13 -10
- package/cjs/S2819/generated-meta.js +3 -3
- package/cjs/S2819/index.js +3 -3
- package/cjs/S2819/meta.js +3 -3
- package/cjs/S2819/rule.js +19 -15
- package/cjs/S2870/generated-meta.js +3 -3
- package/cjs/S2870/index.js +3 -3
- package/cjs/S2870/meta.js +3 -3
- package/cjs/S2870/rule.js +11 -8
- package/cjs/S2871/generated-meta.js +3 -3
- package/cjs/S2871/index.js +3 -3
- package/cjs/S2871/meta.js +3 -3
- package/cjs/S2871/rule.js +15 -12
- package/cjs/S2970/generated-meta.js +3 -3
- package/cjs/S2970/index.js +3 -3
- package/cjs/S2970/meta.js +3 -3
- package/cjs/S2970/rule.js +12 -11
- package/cjs/S2990/generated-meta.js +3 -3
- package/cjs/S2990/index.js +3 -3
- package/cjs/S2990/meta.js +3 -3
- package/cjs/S2990/rule.js +5 -5
- package/cjs/S2999/config.js +3 -3
- package/cjs/S2999/generated-meta.js +3 -3
- package/cjs/S2999/index.js +3 -3
- package/cjs/S2999/meta.js +3 -3
- package/cjs/S2999/rule.js +13 -10
- package/cjs/S3001/generated-meta.js +3 -3
- package/cjs/S3001/index.js +3 -3
- package/cjs/S3001/meta.js +3 -3
- package/cjs/S3001/rule.js +5 -5
- package/cjs/S3003/generated-meta.js +3 -3
- package/cjs/S3003/index.js +3 -3
- package/cjs/S3003/meta.js +3 -3
- package/cjs/S3003/rule.js +13 -10
- package/cjs/S3317/generated-meta.js +5 -4
- package/cjs/S3317/index.js +3 -3
- package/cjs/S3317/meta.js +3 -3
- package/cjs/S3317/rule.js +7 -6
- package/cjs/S3330/generated-meta.js +3 -3
- package/cjs/S3330/index.js +3 -3
- package/cjs/S3330/meta.js +3 -3
- package/cjs/S3330/rule.js +5 -5
- package/cjs/S3358/generated-meta.js +3 -3
- package/cjs/S3358/index.js +3 -3
- package/cjs/S3358/meta.js +3 -3
- package/cjs/S3358/rule.js +5 -5
- package/cjs/S3402/generated-meta.js +3 -3
- package/cjs/S3402/index.js +3 -3
- package/cjs/S3402/meta.js +3 -3
- package/cjs/S3402/rule.js +17 -13
- package/cjs/S3403/generated-meta.js +3 -3
- package/cjs/S3403/index.js +3 -3
- package/cjs/S3403/meta.js +3 -3
- package/cjs/S3403/rule.js +13 -10
- package/cjs/S3415/generated-meta.js +3 -3
- package/cjs/S3415/index.js +3 -3
- package/cjs/S3415/meta.js +3 -3
- package/cjs/S3415/rule.js +19 -16
- package/cjs/S3499/generated-meta.js +5 -4
- package/cjs/S3499/index.js +3 -3
- package/cjs/S3499/meta.js +3 -3
- package/cjs/S3499/rule.js +8 -7
- package/cjs/S3500/generated-meta.js +5 -4
- package/cjs/S3500/index.js +3 -3
- package/cjs/S3500/meta.js +3 -3
- package/cjs/S3500/rule.js +8 -7
- package/cjs/S3513/generated-meta.js +5 -4
- package/cjs/S3513/index.js +3 -3
- package/cjs/S3513/meta.js +3 -3
- package/cjs/S3513/rule.js +8 -7
- package/cjs/S3514/generated-meta.js +5 -4
- package/cjs/S3514/index.js +3 -3
- package/cjs/S3514/meta.js +3 -3
- package/cjs/S3514/rule.js +13 -10
- package/cjs/S3516/generated-meta.js +3 -3
- package/cjs/S3516/index.js +3 -3
- package/cjs/S3516/meta.js +3 -3
- package/cjs/S3516/rule.js +112 -10
- package/cjs/S3524/config.js +3 -3
- package/cjs/S3524/generated-meta.js +5 -4
- package/cjs/S3524/index.js +3 -3
- package/cjs/S3524/meta.js +3 -3
- package/cjs/S3524/rule.js +5 -5
- package/cjs/S3525/generated-meta.js +5 -4
- package/cjs/S3525/index.js +3 -3
- package/cjs/S3525/meta.js +3 -3
- package/cjs/S3525/rule.js +9 -7
- package/cjs/S3531/generated-meta.js +5 -4
- package/cjs/S3531/index.js +3 -3
- package/cjs/S3531/meta.js +3 -3
- package/cjs/S3531/rule.js +8 -6
- package/cjs/S3533/generated-meta.js +5 -4
- package/cjs/S3533/index.js +3 -3
- package/cjs/S3533/meta.js +3 -3
- package/cjs/S3533/rule.js +11 -10
- package/cjs/S3579/generated-meta.js +3 -3
- package/cjs/S3579/index.js +3 -3
- package/cjs/S3579/meta.js +3 -3
- package/cjs/S3579/rule.js +9 -7
- package/cjs/S3616/generated-meta.js +3 -3
- package/cjs/S3616/index.js +3 -3
- package/cjs/S3616/meta.js +3 -3
- package/cjs/S3616/rule.js +9 -7
- package/cjs/S3626/generated-meta.js +3 -3
- package/cjs/S3626/index.js +3 -3
- package/cjs/S3626/meta.js +3 -3
- package/cjs/S3626/rule.js +7 -6
- package/cjs/S3686/generated-meta.js +3 -3
- package/cjs/S3686/index.js +3 -3
- package/cjs/S3686/meta.js +3 -3
- package/cjs/S3686/rule.js +10 -8
- package/cjs/S3699/generated-meta.js +3 -3
- package/cjs/S3699/index.js +3 -3
- package/cjs/S3699/meta.js +3 -3
- package/cjs/S3699/rule.js +8 -7
- package/cjs/S3735/generated-meta.js +3 -3
- package/cjs/S3735/index.js +3 -3
- package/cjs/S3735/meta.js +3 -3
- package/cjs/S3735/rule.js +11 -8
- package/cjs/S3757/generated-meta.js +3 -3
- package/cjs/S3757/index.js +3 -3
- package/cjs/S3757/meta.js +3 -3
- package/cjs/S3757/rule.js +11 -9
- package/cjs/S3758/generated-meta.js +3 -3
- package/cjs/S3758/index.js +3 -3
- package/cjs/S3758/meta.js +3 -3
- package/cjs/S3758/rule.js +12 -10
- package/cjs/S3760/generated-meta.js +3 -3
- package/cjs/S3760/index.js +3 -3
- package/cjs/S3760/meta.js +3 -3
- package/cjs/S3760/rule.js +27 -24
- package/cjs/S3776/config.js +3 -3
- package/cjs/S3776/generated-meta.js +3 -3
- package/cjs/S3776/index.js +3 -3
- package/cjs/S3776/meta.js +12 -4
- package/cjs/S3776/rule.js +39 -38
- package/cjs/S3782/generated-meta.js +3 -3
- package/cjs/S3782/index.js +3 -3
- package/cjs/S3782/meta.js +3 -3
- package/cjs/S3782/rule.js +10 -8
- package/cjs/S3785/generated-meta.js +3 -3
- package/cjs/S3785/index.js +3 -3
- package/cjs/S3785/meta.js +3 -3
- package/cjs/S3785/rule.js +12 -9
- package/cjs/S3796/generated-meta.js +3 -3
- package/cjs/S3796/index.js +3 -3
- package/cjs/S3796/meta.js +3 -3
- package/cjs/S3796/rule.js +15 -11
- package/cjs/S3798/generated-meta.js +3 -3
- package/cjs/S3798/index.js +3 -3
- package/cjs/S3798/meta.js +3 -3
- package/cjs/S3798/rule.js +4 -3
- package/cjs/S3800/generated-meta.js +3 -3
- package/cjs/S3800/index.js +3 -3
- package/cjs/S3800/meta.js +3 -3
- package/cjs/S3800/rule.js +19 -14
- package/cjs/S3801/generated-meta.js +3 -3
- package/cjs/S3801/index.js +3 -3
- package/cjs/S3801/meta.js +3 -3
- package/cjs/S3801/rule.js +18 -14
- package/cjs/S3827/generated-meta.js +3 -3
- package/cjs/S3827/index.js +3 -3
- package/cjs/S3827/meta.js +3 -3
- package/cjs/S3827/rule.js +9 -6
- package/cjs/S3923/generated-meta.js +3 -3
- package/cjs/S3923/index.js +3 -3
- package/cjs/S3923/meta.js +3 -3
- package/cjs/S3923/rule.js +12 -9
- package/cjs/S3972/generated-meta.js +3 -3
- package/cjs/S3972/index.js +3 -3
- package/cjs/S3972/meta.js +3 -3
- package/cjs/S3972/rule.js +8 -7
- package/cjs/S3973/generated-meta.js +3 -3
- package/cjs/S3973/index.js +3 -3
- package/cjs/S3973/meta.js +3 -3
- package/cjs/S3973/rule.js +10 -8
- package/cjs/S3981/generated-meta.js +3 -3
- package/cjs/S3981/index.js +3 -3
- package/cjs/S3981/meta.js +3 -3
- package/cjs/S3981/rule.js +7 -6
- package/cjs/S3984/generated-meta.js +3 -3
- package/cjs/S3984/index.js +3 -3
- package/cjs/S3984/meta.js +3 -3
- package/cjs/S3984/rule.js +7 -6
- package/cjs/S4030/generated-meta.js +3 -3
- package/cjs/S4030/index.js +3 -3
- package/cjs/S4030/meta.js +3 -3
- package/cjs/S4030/rule.js +15 -12
- package/cjs/S4036/generated-meta.js +3 -3
- package/cjs/S4036/index.js +3 -3
- package/cjs/S4036/meta.js +3 -3
- package/cjs/S4036/rule.js +11 -9
- package/cjs/S4043/generated-meta.js +3 -3
- package/cjs/S4043/index.js +3 -3
- package/cjs/S4043/meta.js +3 -3
- package/cjs/S4043/rule.js +15 -11
- package/cjs/S4139/generated-meta.js +3 -3
- package/cjs/S4139/index.js +3 -3
- package/cjs/S4139/meta.js +3 -3
- package/cjs/S4139/rule.js +10 -8
- package/cjs/S4143/generated-meta.js +3 -3
- package/cjs/S4143/index.js +3 -3
- package/cjs/S4143/meta.js +3 -3
- package/cjs/S4143/rule.js +15 -12
- package/cjs/S4144/config.js +3 -3
- package/cjs/S4144/generated-meta.js +3 -3
- package/cjs/S4144/index.js +3 -3
- package/cjs/S4144/meta.js +3 -3
- package/cjs/S4144/rule.js +15 -12
- package/cjs/S4158/generated-meta.js +3 -3
- package/cjs/S4158/index.js +3 -3
- package/cjs/S4158/meta.js +3 -3
- package/cjs/S4158/rule.js +15 -12
- package/cjs/S4165/generated-meta.js +3 -3
- package/cjs/S4165/index.js +3 -3
- package/cjs/S4165/meta.js +3 -3
- package/cjs/S4165/rule.js +17 -15
- package/cjs/S4322/generated-meta.js +3 -3
- package/cjs/S4322/index.js +3 -3
- package/cjs/S4322/meta.js +3 -3
- package/cjs/S4322/rule.js +11 -8
- package/cjs/S4323/generated-meta.js +3 -3
- package/cjs/S4323/index.js +3 -3
- package/cjs/S4323/meta.js +3 -3
- package/cjs/S4323/rule.js +7 -6
- package/cjs/S4324/generated-meta.js +3 -3
- package/cjs/S4324/index.js +3 -3
- package/cjs/S4324/meta.js +3 -3
- package/cjs/S4324/rule.js +10 -8
- package/cjs/S4328/config.js +3 -3
- package/cjs/S4328/generated-meta.js +3 -3
- package/cjs/S4328/index.js +3 -3
- package/cjs/S4328/meta.js +3 -3
- package/cjs/S4328/rule.js +5 -5
- package/cjs/S4335/generated-meta.js +3 -3
- package/cjs/S4335/index.js +3 -3
- package/cjs/S4335/meta.js +3 -3
- package/cjs/S4335/rule.js +9 -7
- package/cjs/S4423/generated-meta.js +3 -3
- package/cjs/S4423/index.js +3 -3
- package/cjs/S4423/meta.js +3 -3
- package/cjs/S4423/rule.aws.js +3 -3
- package/cjs/S4423/rule.js +7 -6
- package/cjs/S4423/rule.lib.js +11 -10
- package/cjs/S4426/generated-meta.js +3 -3
- package/cjs/S4426/index.js +3 -3
- package/cjs/S4426/meta.js +3 -3
- package/cjs/S4426/rule.js +14 -13
- package/cjs/S4502/generated-meta.js +3 -3
- package/cjs/S4502/index.js +3 -3
- package/cjs/S4502/meta.js +3 -3
- package/cjs/S4502/rule.js +19 -16
- package/cjs/S4507/generated-meta.js +3 -3
- package/cjs/S4507/index.js +3 -3
- package/cjs/S4507/meta.js +3 -3
- package/cjs/S4507/rule.js +11 -9
- package/cjs/S4524/generated-meta.js +3 -3
- package/cjs/S4524/index.js +3 -3
- package/cjs/S4524/meta.js +3 -3
- package/cjs/S4524/rule.js +5 -5
- package/cjs/S4619/generated-meta.js +3 -3
- package/cjs/S4619/index.js +3 -3
- package/cjs/S4619/meta.js +3 -3
- package/cjs/S4619/rule.js +9 -7
- package/cjs/S4621/generated-meta.js +3 -3
- package/cjs/S4621/index.js +3 -3
- package/cjs/S4621/meta.js +3 -3
- package/cjs/S4621/rule.js +8 -7
- package/cjs/S4622/config.js +3 -3
- package/cjs/S4622/generated-meta.js +3 -3
- package/cjs/S4622/index.js +3 -3
- package/cjs/S4622/meta.js +3 -3
- package/cjs/S4622/rule.js +8 -6
- package/cjs/S4623/generated-meta.js +3 -3
- package/cjs/S4623/index.js +3 -3
- package/cjs/S4623/meta.js +3 -3
- package/cjs/S4623/rule.js +11 -8
- package/cjs/S4624/generated-meta.js +5 -4
- package/cjs/S4624/index.js +3 -3
- package/cjs/S4624/meta.js +3 -3
- package/cjs/S4624/rule.js +9 -7
- package/cjs/S4634/generated-meta.js +5 -4
- package/cjs/S4634/index.js +3 -3
- package/cjs/S4634/meta.js +3 -3
- package/cjs/S4634/rule.js +7 -6
- package/cjs/S4721/generated-meta.js +3 -3
- package/cjs/S4721/index.js +3 -3
- package/cjs/S4721/meta.js +3 -3
- package/cjs/S4721/rule.js +10 -8
- package/cjs/S4782/generated-meta.js +3 -3
- package/cjs/S4782/index.js +3 -3
- package/cjs/S4782/meta.js +3 -3
- package/cjs/S4782/rule.js +10 -8
- package/cjs/S4784/generated-meta.js +3 -3
- package/cjs/S4784/index.js +3 -3
- package/cjs/S4784/meta.js +3 -3
- package/cjs/S4784/rule.js +8 -7
- package/cjs/S4787/generated-meta.js +3 -3
- package/cjs/S4787/index.js +3 -3
- package/cjs/S4787/meta.js +3 -3
- package/cjs/S4787/rule.js +12 -10
- package/cjs/S4790/generated-meta.js +3 -3
- package/cjs/S4790/index.js +3 -3
- package/cjs/S4790/meta.js +3 -3
- package/cjs/S4790/rule.js +10 -8
- package/cjs/S4798/generated-meta.js +3 -3
- package/cjs/S4798/index.js +3 -3
- package/cjs/S4798/meta.js +3 -3
- package/cjs/S4798/rule.js +5 -5
- package/cjs/S4817/generated-meta.js +3 -3
- package/cjs/S4817/index.js +3 -3
- package/cjs/S4817/meta.js +3 -3
- package/cjs/S4817/rule.js +13 -11
- package/cjs/S4818/generated-meta.js +3 -3
- package/cjs/S4818/index.js +3 -3
- package/cjs/S4818/meta.js +3 -3
- package/cjs/S4818/rule.js +7 -6
- package/cjs/S4822/generated-meta.js +5 -4
- package/cjs/S4822/index.js +3 -3
- package/cjs/S4822/meta.js +3 -3
- package/cjs/S4822/rule.js +16 -12
- package/cjs/S4823/generated-meta.js +3 -3
- package/cjs/S4823/index.js +3 -3
- package/cjs/S4823/meta.js +3 -3
- package/cjs/S4823/rule.js +7 -6
- package/cjs/S4829/generated-meta.js +3 -3
- package/cjs/S4829/index.js +3 -3
- package/cjs/S4829/meta.js +3 -3
- package/cjs/S4829/rule.js +7 -6
- package/cjs/S4830/generated-meta.js +3 -3
- package/cjs/S4830/index.js +3 -3
- package/cjs/S4830/meta.js +3 -3
- package/cjs/S4830/rule.js +14 -11
- package/cjs/S5042/generated-meta.js +7 -7
- package/cjs/S5042/index.js +3 -3
- package/cjs/S5042/meta.js +3 -3
- package/cjs/S5042/rule.js +12 -10
- package/cjs/S5122/generated-meta.js +4 -4
- package/cjs/S5122/index.js +3 -3
- package/cjs/S5122/meta.js +3 -3
- package/cjs/S5122/rule.js +43 -39
- package/cjs/S5148/generated-meta.js +4 -4
- package/cjs/S5148/index.js +3 -3
- package/cjs/S5148/meta.js +3 -3
- package/cjs/S5148/rule.js +12 -11
- package/cjs/S5247/generated-meta.js +3 -3
- package/cjs/S5247/index.js +3 -3
- package/cjs/S5247/meta.js +3 -3
- package/cjs/S5247/rule.js +25 -21
- package/cjs/S5256/generated-meta.js +3 -3
- package/cjs/S5256/index.js +3 -3
- package/cjs/S5256/meta.js +3 -3
- package/cjs/S5256/rule.js +8 -7
- package/cjs/S5257/generated-meta.js +3 -3
- package/cjs/S5257/index.js +3 -3
- package/cjs/S5257/meta.js +3 -3
- package/cjs/S5257/rule.js +7 -6
- package/cjs/S5260/generated-meta.js +3 -3
- package/cjs/S5260/index.js +3 -3
- package/cjs/S5260/meta.js +3 -3
- package/cjs/S5260/rule.js +7 -6
- package/cjs/S5264/generated-meta.js +3 -3
- package/cjs/S5264/index.js +3 -3
- package/cjs/S5264/meta.js +3 -3
- package/cjs/S5264/rule.js +7 -6
- package/cjs/S5332/generated-meta.js +3 -3
- package/cjs/S5332/index.js +3 -3
- package/cjs/S5332/meta.js +3 -3
- package/cjs/S5332/rule.aws.js +3 -3
- package/cjs/S5332/rule.js +7 -6
- package/cjs/S5332/rule.lib.js +22 -20
- package/cjs/S5443/generated-meta.js +4 -4
- package/cjs/S5443/index.js +3 -3
- package/cjs/S5443/meta.js +3 -3
- package/cjs/S5443/rule.js +5 -5
- package/cjs/S5527/generated-meta.js +3 -3
- package/cjs/S5527/index.js +3 -3
- package/cjs/S5527/meta.js +3 -3
- package/cjs/S5527/rule.js +21 -17
- package/cjs/S5542/generated-meta.js +3 -3
- package/cjs/S5542/index.js +3 -3
- package/cjs/S5542/meta.js +3 -3
- package/cjs/S5542/rule.js +9 -7
- package/cjs/S5547/generated-meta.js +3 -3
- package/cjs/S5547/index.js +3 -3
- package/cjs/S5547/meta.js +3 -3
- package/cjs/S5547/rule.js +9 -7
- package/cjs/S5604/config.js +3 -3
- package/cjs/S5604/generated-meta.js +3 -3
- package/cjs/S5604/index.js +3 -3
- package/cjs/S5604/meta.js +3 -3
- package/cjs/S5604/rule.js +18 -17
- package/cjs/S5659/generated-meta.js +3 -3
- package/cjs/S5659/index.js +3 -3
- package/cjs/S5659/meta.js +3 -3
- package/cjs/S5659/rule.js +18 -15
- package/cjs/S5689/generated-meta.js +4 -4
- package/cjs/S5689/index.js +3 -3
- package/cjs/S5689/meta.js +3 -3
- package/cjs/S5689/rule.js +14 -11
- package/cjs/S5691/generated-meta.js +3 -3
- package/cjs/S5691/index.js +3 -3
- package/cjs/S5691/meta.js +3 -3
- package/cjs/S5691/rule.js +10 -8
- package/cjs/S5693/config.js +3 -3
- package/cjs/S5693/generated-meta.js +4 -4
- package/cjs/S5693/index.js +3 -3
- package/cjs/S5693/meta.js +3 -3
- package/cjs/S5693/rule.js +17 -15
- package/cjs/S5725/generated-meta.js +3 -3
- package/cjs/S5725/index.js +3 -3
- package/cjs/S5725/meta.js +3 -3
- package/cjs/S5725/rule.js +12 -9
- package/cjs/S5728/generated-meta.js +3 -3
- package/cjs/S5728/index.js +3 -3
- package/cjs/S5728/meta.js +3 -3
- package/cjs/S5728/rule.js +10 -7
- package/cjs/S5730/generated-meta.js +3 -3
- package/cjs/S5730/index.js +3 -3
- package/cjs/S5730/meta.js +3 -3
- package/cjs/S5730/rule.js +12 -9
- package/cjs/S5732/generated-meta.js +3 -3
- package/cjs/S5732/index.js +3 -3
- package/cjs/S5732/meta.js +3 -3
- package/cjs/S5732/rule.js +11 -8
- package/cjs/S5734/generated-meta.js +3 -3
- package/cjs/S5734/index.js +3 -3
- package/cjs/S5734/meta.js +3 -3
- package/cjs/S5734/rule.js +10 -7
- package/cjs/S5736/generated-meta.js +3 -3
- package/cjs/S5736/index.js +3 -3
- package/cjs/S5736/meta.js +3 -3
- package/cjs/S5736/rule.js +11 -8
- package/cjs/S5739/generated-meta.js +3 -3
- package/cjs/S5739/index.js +3 -3
- package/cjs/S5739/meta.js +3 -3
- package/cjs/S5739/rule.js +14 -11
- package/cjs/S5742/generated-meta.js +3 -3
- package/cjs/S5742/index.js +3 -3
- package/cjs/S5742/meta.js +3 -3
- package/cjs/S5742/rule.js +10 -7
- package/cjs/S5743/generated-meta.js +3 -3
- package/cjs/S5743/index.js +3 -3
- package/cjs/S5743/meta.js +3 -3
- package/cjs/S5743/rule.js +11 -9
- package/cjs/S5757/generated-meta.js +3 -3
- package/cjs/S5757/index.js +3 -3
- package/cjs/S5757/meta.js +3 -3
- package/cjs/S5757/rule.js +16 -13
- package/cjs/S5759/generated-meta.js +3 -3
- package/cjs/S5759/index.js +3 -3
- package/cjs/S5759/meta.js +3 -3
- package/cjs/S5759/rule.js +13 -10
- package/cjs/S5842/generated-meta.js +3 -3
- package/cjs/S5842/index.js +3 -3
- package/cjs/S5842/meta.js +3 -3
- package/cjs/S5842/rule.js +5 -5
- package/cjs/S5843/config.js +3 -3
- package/cjs/S5843/generated-meta.js +3 -3
- package/cjs/S5843/index.js +3 -3
- package/cjs/S5843/meta.js +3 -3
- package/cjs/S5843/rule.js +25 -22
- package/cjs/S5850/generated-meta.js +3 -3
- package/cjs/S5850/index.js +3 -3
- package/cjs/S5850/meta.js +3 -3
- package/cjs/S5850/rule.js +7 -6
- package/cjs/S5852/generated-meta.js +3 -3
- package/cjs/S5852/index.js +3 -3
- package/cjs/S5852/meta.js +3 -3
- package/cjs/S5852/rule.js +5 -5
- package/cjs/S5856/generated-meta.js +3 -3
- package/cjs/S5856/index.js +3 -3
- package/cjs/S5856/meta.js +3 -3
- package/cjs/S5856/rule.js +13 -10
- package/cjs/S5860/generated-meta.js +3 -3
- package/cjs/S5860/index.js +3 -3
- package/cjs/S5860/meta.js +3 -3
- package/cjs/S5860/rule.js +33 -29
- package/cjs/S5863/generated-meta.js +3 -3
- package/cjs/S5863/index.js +3 -3
- package/cjs/S5863/meta.js +3 -3
- package/cjs/S5863/rule.js +18 -14
- package/cjs/S5867/generated-meta.js +3 -3
- package/cjs/S5867/index.js +3 -3
- package/cjs/S5867/meta.js +3 -3
- package/cjs/S5867/rule.js +11 -10
- package/cjs/S5868/generated-meta.js +3 -3
- package/cjs/S5868/index.js +3 -3
- package/cjs/S5868/meta.js +3 -3
- package/cjs/S5868/rule.js +10 -8
- package/cjs/S5869/generated-meta.js +3 -3
- package/cjs/S5869/index.js +3 -3
- package/cjs/S5869/meta.js +3 -3
- package/cjs/S5869/rule.js +9 -8
- package/cjs/S5876/generated-meta.js +3 -3
- package/cjs/S5876/index.js +3 -3
- package/cjs/S5876/meta.js +3 -3
- package/cjs/S5876/rule.js +15 -11
- package/cjs/S5958/generated-meta.js +3 -3
- package/cjs/S5958/index.js +3 -3
- package/cjs/S5958/meta.js +3 -3
- package/cjs/S5958/rule.js +15 -12
- package/cjs/S5973/generated-meta.js +3 -3
- package/cjs/S5973/index.js +3 -3
- package/cjs/S5973/meta.js +3 -3
- package/cjs/S5973/rule.js +13 -10
- package/cjs/S6019/generated-meta.js +3 -3
- package/cjs/S6019/index.js +3 -3
- package/cjs/S6019/meta.js +3 -3
- package/cjs/S6019/rule.js +7 -6
- package/cjs/S6035/generated-meta.js +3 -3
- package/cjs/S6035/index.js +3 -3
- package/cjs/S6035/meta.js +3 -3
- package/cjs/S6035/rule.js +5 -5
- package/cjs/S6079/generated-meta.js +3 -3
- package/cjs/S6079/index.js +3 -3
- package/cjs/S6079/meta.js +3 -3
- package/cjs/S6079/rule.js +12 -9
- package/cjs/S6080/generated-meta.js +3 -3
- package/cjs/S6080/index.js +3 -3
- package/cjs/S6080/meta.js +3 -3
- package/cjs/S6080/rule.js +16 -13
- package/cjs/S6092/generated-meta.js +3 -3
- package/cjs/S6092/index.js +3 -3
- package/cjs/S6092/meta.js +3 -3
- package/cjs/S6092/rule.js +12 -10
- package/cjs/S6245/generated-meta.js +3 -3
- package/cjs/S6245/index.js +3 -3
- package/cjs/S6245/meta.js +3 -3
- package/cjs/S6245/rule.js +17 -12
- package/cjs/S6249/generated-meta.js +3 -3
- package/cjs/S6249/index.js +3 -3
- package/cjs/S6249/meta.js +3 -3
- package/cjs/S6249/rule.js +10 -8
- package/cjs/S6252/generated-meta.js +3 -3
- package/cjs/S6252/index.js +3 -3
- package/cjs/S6252/meta.js +3 -3
- package/cjs/S6252/rule.js +15 -11
- package/cjs/S6265/generated-meta.js +4 -4
- package/cjs/S6265/index.js +3 -3
- package/cjs/S6265/meta.js +3 -3
- package/cjs/S6265/rule.js +30 -23
- package/cjs/S6268/generated-meta.js +3 -3
- package/cjs/S6268/index.js +3 -3
- package/cjs/S6268/meta.js +3 -3
- package/cjs/S6268/rule.js +8 -7
- package/cjs/S6270/generated-meta.js +4 -4
- package/cjs/S6270/index.js +3 -3
- package/cjs/S6270/meta.js +3 -3
- package/cjs/S6270/rule.js +15 -12
- package/cjs/S6275/generated-meta.js +4 -4
- package/cjs/S6275/index.js +3 -3
- package/cjs/S6275/meta.js +3 -3
- package/cjs/S6275/rule.js +5 -5
- package/cjs/S6281/generated-meta.js +3 -3
- package/cjs/S6281/index.js +3 -3
- package/cjs/S6281/meta.js +3 -3
- package/cjs/S6281/rule.js +25 -20
- package/cjs/S6299/generated-meta.js +3 -3
- package/cjs/S6299/index.js +3 -3
- package/cjs/S6299/meta.js +3 -3
- package/cjs/S6299/rule.js +5 -5
- package/cjs/S6302/generated-meta.js +4 -4
- package/cjs/S6302/index.js +3 -3
- package/cjs/S6302/meta.js +3 -3
- package/cjs/S6302/rule.js +9 -8
- package/cjs/S6303/generated-meta.js +4 -4
- package/cjs/S6303/index.js +3 -3
- package/cjs/S6303/meta.js +3 -3
- package/cjs/S6303/rule.js +15 -13
- package/cjs/S6304/generated-meta.js +3 -3
- package/cjs/S6304/index.js +3 -3
- package/cjs/S6304/meta.js +3 -3
- package/cjs/S6304/rule.js +9 -8
- package/cjs/S6308/generated-meta.js +4 -4
- package/cjs/S6308/index.js +3 -3
- package/cjs/S6308/meta.js +3 -3
- package/cjs/S6308/rule.js +10 -8
- package/cjs/S6317/generated-meta.js +3 -3
- package/cjs/S6317/index.js +3 -3
- package/cjs/S6317/meta.js +3 -3
- package/cjs/S6317/rule.js +8 -7
- package/cjs/S6319/generated-meta.js +3 -3
- package/cjs/S6319/index.js +3 -3
- package/cjs/S6319/meta.js +3 -3
- package/cjs/S6319/rule.js +5 -5
- package/cjs/S6321/generated-meta.js +3 -3
- package/cjs/S6321/index.js +3 -3
- package/cjs/S6321/meta.js +3 -3
- package/cjs/S6321/rule.js +28 -26
- package/cjs/S6323/generated-meta.js +3 -3
- package/cjs/S6323/index.js +3 -3
- package/cjs/S6323/meta.js +3 -3
- package/cjs/S6323/rule.js +7 -6
- package/cjs/S6324/generated-meta.js +3 -3
- package/cjs/S6324/index.js +3 -3
- package/cjs/S6324/meta.js +3 -3
- package/cjs/S6324/rule.js +5 -5
- package/cjs/S6326/generated-meta.js +3 -3
- package/cjs/S6326/index.js +3 -3
- package/cjs/S6326/meta.js +3 -3
- package/cjs/S6326/rule.js +5 -5
- package/cjs/S6327/generated-meta.js +3 -3
- package/cjs/S6327/index.js +3 -3
- package/cjs/S6327/meta.js +3 -3
- package/cjs/S6327/rule.js +5 -5
- package/cjs/S6328/generated-meta.js +3 -3
- package/cjs/S6328/index.js +3 -3
- package/cjs/S6328/meta.js +3 -3
- package/cjs/S6328/rule.js +7 -6
- package/cjs/S6329/generated-meta.js +3 -3
- package/cjs/S6329/index.js +3 -3
- package/cjs/S6329/meta.js +3 -3
- package/cjs/S6329/rule.js +10 -8
- package/cjs/S6330/generated-meta.js +4 -4
- package/cjs/S6330/index.js +3 -3
- package/cjs/S6330/meta.js +3 -3
- package/cjs/S6330/rule.js +5 -5
- package/cjs/S6331/generated-meta.js +3 -3
- package/cjs/S6331/index.js +3 -3
- package/cjs/S6331/meta.js +3 -3
- package/cjs/S6331/rule.js +3 -3
- package/cjs/S6332/generated-meta.js +3 -3
- package/cjs/S6332/index.js +3 -3
- package/cjs/S6332/meta.js +3 -3
- package/cjs/S6332/rule.js +5 -5
- package/cjs/S6333/generated-meta.js +3 -3
- package/cjs/S6333/index.js +3 -3
- package/cjs/S6333/meta.js +3 -3
- package/cjs/S6333/rule.js +11 -9
- package/cjs/S6351/generated-meta.js +3 -3
- package/cjs/S6351/index.js +3 -3
- package/cjs/S6351/meta.js +3 -3
- package/cjs/S6351/rule.js +25 -22
- package/cjs/S6353/generated-meta.js +3 -3
- package/cjs/S6353/index.js +3 -3
- package/cjs/S6353/meta.js +3 -3
- package/cjs/S6353/rule.js +5 -5
- package/cjs/S6397/generated-meta.js +3 -3
- package/cjs/S6397/index.js +3 -3
- package/cjs/S6397/meta.js +3 -3
- package/cjs/S6397/rule.js +5 -5
- package/cjs/S6418/config.js +3 -3
- package/cjs/S6418/generated-meta.js +3 -3
- package/cjs/S6418/index.js +3 -3
- package/cjs/S6418/meta.js +3 -3
- package/cjs/S6418/rule.js +12 -27
- package/cjs/S6426/generated-meta.js +3 -3
- package/cjs/S6426/index.js +3 -3
- package/cjs/S6426/meta.js +3 -3
- package/cjs/S6426/rule.js +8 -7
- package/cjs/S6437/generated-meta.js +3 -3
- package/cjs/S6437/index.js +3 -3
- package/cjs/S6437/meta.js +3 -3
- package/cjs/S6437/rule.js +18 -10
- package/cjs/S6439/generated-meta.js +4 -4
- package/cjs/S6439/index.js +3 -3
- package/cjs/S6439/meta.js +3 -3
- package/cjs/S6439/rule.js +12 -10
- package/cjs/S6442/generated-meta.js +4 -4
- package/cjs/S6442/index.js +3 -3
- package/cjs/S6442/meta.js +3 -3
- package/cjs/S6442/rule.js +14 -11
- package/cjs/S6443/generated-meta.js +4 -4
- package/cjs/S6443/index.js +3 -3
- package/cjs/S6443/meta.js +3 -3
- package/cjs/S6443/rule.js +12 -10
- package/cjs/S6486/generated-meta.js +3 -3
- package/cjs/S6486/index.js +3 -3
- package/cjs/S6486/meta.js +3 -3
- package/cjs/S6486/rule.js +9 -8
- package/cjs/S6564/generated-meta.js +3 -3
- package/cjs/S6564/index.js +3 -3
- package/cjs/S6564/meta.js +3 -3
- package/cjs/S6564/rule.js +7 -6
- package/cjs/S6594/generated-meta.js +3 -3
- package/cjs/S6594/index.js +3 -3
- package/cjs/S6594/meta.js +3 -3
- package/cjs/S6594/rule.js +15 -11
- package/cjs/S6627/generated-meta.js +3 -3
- package/cjs/S6627/index.js +3 -3
- package/cjs/S6627/meta.js +3 -3
- package/cjs/S6627/rule.js +9 -7
- package/cjs/S6759/generated-meta.js +3 -3
- package/cjs/S6759/index.js +3 -3
- package/cjs/S6759/meta.js +3 -3
- package/cjs/S6759/rule.js +13 -9
- package/cjs/S6958/generated-meta.js +3 -3
- package/cjs/S6958/index.js +3 -3
- package/cjs/S6958/meta.js +3 -3
- package/cjs/S6958/rule.js +2 -2
- package/cjs/S6959/generated-meta.js +3 -3
- package/cjs/S6959/index.js +3 -3
- package/cjs/S6959/meta.js +3 -3
- package/cjs/S6959/rule.js +12 -9
- package/cjs/S7059/generated-meta.js +5 -4
- package/cjs/S7059/index.js +3 -3
- package/cjs/S7059/meta.js +3 -3
- package/cjs/S7059/rule.js +11 -8
- package/cjs/S7639/generated-meta.js +3 -3
- package/cjs/S7639/index.js +3 -3
- package/cjs/S7639/meta.js +3 -3
- package/cjs/S7639/rule.js +8 -7
- package/cjs/S7790/generated-meta.js +3 -3
- package/cjs/S7790/index.js +3 -3
- package/cjs/S7790/meta.js +3 -3
- package/cjs/S7790/rule.js +10 -8
- package/cjs/S8441/generated-meta.js +3 -3
- package/cjs/S8441/index.js +3 -3
- package/cjs/S8441/meta.js +3 -3
- package/cjs/S8441/rule.js +16 -12
- package/cjs/{helpers/aws/index.js → S8479/generated-meta.js} +35 -19
- package/cjs/S8479/index.js +21 -0
- package/cjs/S8479/meta.js +22 -0
- package/cjs/S8479/rule.js +239 -0
- package/cjs/S881/generated-meta.js +3 -3
- package/cjs/S881/index.js +3 -3
- package/cjs/S881/meta.js +3 -3
- package/cjs/S881/rule.js +5 -5
- package/cjs/S888/generated-meta.js +3 -3
- package/cjs/S888/index.js +3 -3
- package/cjs/S888/meta.js +3 -3
- package/cjs/S888/rule.js +7 -6
- package/cjs/S930/generated-meta.js +3 -3
- package/cjs/S930/index.js +3 -3
- package/cjs/S930/meta.js +3 -3
- package/cjs/S930/rule.js +17 -15
- package/cjs/helpers/accessibility.js +3 -3
- package/cjs/helpers/ast.js +12 -9
- package/cjs/helpers/aws/s3.js +9 -6
- package/cjs/helpers/cache.js +3 -3
- package/cjs/helpers/chai.js +41 -43
- package/cjs/helpers/collection.js +3 -3
- package/cjs/helpers/configs.js +2 -2
- package/cjs/helpers/cookie-flag-check.js +19 -17
- package/cjs/helpers/entropy.js +33 -0
- package/cjs/helpers/express.js +127 -128
- package/cjs/helpers/files.js +4 -4
- package/cjs/helpers/find-up/closest.js +3 -3
- package/cjs/helpers/internal-metrics.js +27 -0
- package/cjs/helpers/mocha.js +50 -54
- package/cjs/helpers/module-ts.js +8 -3
- package/cjs/helpers/package-jsons/closest.js +3 -3
- package/cjs/helpers/package-jsons/dependencies.js +135 -1
- package/cjs/helpers/package-jsons/index.js +1 -0
- package/cjs/helpers/package-jsons/parse.js +3 -3
- package/cjs/helpers/recognizers/Detector.js +3 -3
- package/cjs/helpers/recognizers/detectors/CamelCaseDetector.js +3 -3
- package/cjs/helpers/recognizers/detectors/ContainsDetector.js +3 -3
- package/cjs/helpers/recognizers/detectors/EndWithDetector.js +3 -3
- package/cjs/helpers/recognizers/detectors/KeywordsDetector.js +3 -3
- package/cjs/helpers/regex/ast.js +7 -6
- package/cjs/helpers/regex/extract.js +11 -11
- package/cjs/helpers/regex/group.js +2 -2
- package/cjs/helpers/regex/location.js +2 -2
- package/cjs/helpers/regex/range.js +5 -4
- package/cjs/helpers/regex/rule-template.js +4 -3
- package/cjs/helpers/sinon.js +33 -36
- package/cjs/helpers/supertest.js +34 -37
- package/cjs/helpers/vitest.js +29 -32
- package/cjs/plugin-rules.js +5 -3
- package/docs/aws-ec2-unencrypted-ebs-volume.md +1 -1
- package/docs/aws-iam-all-privileges.md +1 -1
- package/docs/aws-iam-public-access.md +1 -1
- package/docs/aws-opensearchservice-domain.md +1 -1
- package/docs/aws-rds-unencrypted-databases.md +1 -1
- package/docs/aws-s3-bucket-granted-access.md +1 -1
- package/docs/aws-sqs-unencrypted-queue.md +1 -1
- package/docs/class-name.md +3 -3
- package/docs/content-length.md +1 -1
- package/docs/cors.md +1 -1
- package/docs/dompurify-unsafe-config.md +7 -0
- package/docs/file-permissions.md +1 -1
- package/docs/insecure-cookie.md +1 -1
- package/docs/link-with-target-blank.md +1 -1
- package/docs/no-hardcoded-ip.md +1 -1
- package/docs/no-unsafe-unzip.md +4 -2
- package/docs/publicly-writable-directories.md +1 -1
- package/docs/x-powered-by.md +1 -1
- package/package.json +39 -1
- package/types/S101/config.d.ts +1 -1
- package/types/S1128/generated-meta.d.ts +1 -0
- package/types/S1313/generated-meta.d.ts +1 -1
- package/types/S134/config.d.ts +1 -1
- package/types/S2208/generated-meta.d.ts +1 -0
- package/types/S3317/generated-meta.d.ts +1 -0
- package/types/S3499/generated-meta.d.ts +1 -0
- package/types/S3500/generated-meta.d.ts +1 -0
- package/types/S3513/generated-meta.d.ts +1 -0
- package/types/S3514/generated-meta.d.ts +1 -0
- package/types/S3524/generated-meta.d.ts +1 -0
- package/types/S3525/generated-meta.d.ts +1 -0
- package/types/S3531/generated-meta.d.ts +1 -0
- package/types/S3533/generated-meta.d.ts +1 -0
- package/types/S3776/meta.d.ts +2 -0
- package/types/S4624/generated-meta.d.ts +1 -0
- package/types/S4634/generated-meta.d.ts +1 -0
- package/types/S4822/generated-meta.d.ts +1 -0
- package/types/S5042/generated-meta.d.ts +2 -2
- package/types/S6439/generated-meta.d.ts +1 -1
- package/types/S6442/generated-meta.d.ts +1 -1
- package/types/S6443/generated-meta.d.ts +1 -1
- package/types/S7059/generated-meta.d.ts +1 -0
- package/types/S8479/generated-meta.d.ts +17 -0
- package/types/S8479/index.d.ts +1 -0
- package/types/S8479/meta.d.ts +2 -0
- package/types/S8479/rule.d.ts +2 -0
- package/types/helpers/ancestor.d.ts +1 -1
- package/types/helpers/aws/s3.d.ts +1 -1
- package/types/helpers/chai.d.ts +3 -5
- package/types/helpers/entropy.d.ts +1 -0
- package/types/helpers/express.d.ts +38 -43
- package/types/helpers/files.d.ts +6 -21
- package/types/helpers/internal-metrics.d.ts +5 -0
- package/types/helpers/mocha.d.ts +19 -21
- package/types/helpers/package-jsons/dependencies.d.ts +36 -0
- package/types/helpers/regex/ast.d.ts +1 -1
- package/types/helpers/regex/rule-template.d.ts +1 -1
- package/types/helpers/sinon.d.ts +3 -5
- package/types/helpers/supertest.d.ts +3 -5
- package/types/helpers/type.d.ts +1 -1
- package/types/helpers/vitest.d.ts +3 -5
- package/types/plugin-rules.d.ts +1 -0
- package/cjs/helpers/decorators/index.js +0 -34
- package/cjs/helpers/decorators/interceptor.js +0 -88
- package/cjs/helpers/index.js +0 -60
- package/cjs/helpers/recognizers/index.js +0 -37
- package/cjs/helpers/rule-detect-react.js +0 -29
- package/cjs/helpers/validate-version.js +0 -94
- package/types/helpers/aws/index.d.ts +0 -3
- package/types/helpers/decorators/index.d.ts +0 -2
- package/types/helpers/decorators/interceptor.d.ts +0 -16
- package/types/helpers/index.d.ts +0 -28
- package/types/helpers/recognizers/index.d.ts +0 -2
- package/types/helpers/rule-detect-react.d.ts +0 -2
- package/types/helpers/validate-version.d.ts +0 -13
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* SonarQube JavaScript Plugin
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) SonarSource Sàrl
|
|
5
5
|
* mailto:info AT sonarsource DOT com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* You can redistribute and/or modify this program under the terms of
|
|
8
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
9
9
|
*
|
|
10
10
|
* This program is distributed in the hope that it will be useful,
|
|
11
11
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
@@ -36,7 +36,7 @@ __exportStar(require("./meta.js"), exports);
|
|
|
36
36
|
exports.meta = {
|
|
37
37
|
type: 'problem',
|
|
38
38
|
docs: {
|
|
39
|
-
description: '
|
|
39
|
+
description: 'Cross-Origin Resource Sharing (CORS) policy should be restricted to trusted origins',
|
|
40
40
|
recommended: true,
|
|
41
41
|
url: 'https://sonarsource.github.io/rspec/#/rspec/S5122/javascript',
|
|
42
42
|
requiresTypeChecking: false,
|
package/cjs/S5122/index.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.rule = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* SonarQube JavaScript Plugin
|
|
6
|
-
* Copyright (C)
|
|
6
|
+
* Copyright (C) SonarSource Sàrl
|
|
7
7
|
* mailto:info AT sonarsource DOT com
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* You can redistribute and/or modify this program under the terms of
|
|
10
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
11
11
|
*
|
|
12
12
|
* This program is distributed in the hope that it will be useful,
|
|
13
13
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
package/cjs/S5122/meta.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.hasSecondaries = exports.eslintId = exports.implementation = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* SonarQube JavaScript Plugin
|
|
6
|
-
* Copyright (C)
|
|
6
|
+
* Copyright (C) SonarSource Sàrl
|
|
7
7
|
* mailto:info AT sonarsource DOT com
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* You can redistribute and/or modify this program under the terms of
|
|
10
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
11
11
|
*
|
|
12
12
|
* This program is distributed in the hope that it will be useful,
|
|
13
13
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
package/cjs/S5122/rule.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* SonarQube JavaScript Plugin
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) SonarSource Sàrl
|
|
5
5
|
* mailto:info AT sonarsource DOT com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* You can redistribute and/or modify this program under the terms of
|
|
8
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
9
9
|
*
|
|
10
10
|
* This program is distributed in the hope that it will be useful,
|
|
11
11
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
@@ -51,7 +51,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
51
51
|
})();
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
exports.rule = void 0;
|
|
54
|
-
const
|
|
54
|
+
const ancestor_js_1 = require("../helpers/ancestor.js");
|
|
55
|
+
const generate_meta_js_1 = require("../helpers/generate-meta.js");
|
|
56
|
+
const module_js_1 = require("../helpers/module.js");
|
|
57
|
+
const ast_js_1 = require("../helpers/ast.js");
|
|
58
|
+
const location_js_1 = require("../helpers/location.js");
|
|
55
59
|
const meta = __importStar(require("./generated-meta.js"));
|
|
56
60
|
const MESSAGE = `Make sure that enabling CORS is safe here.`;
|
|
57
61
|
const SECONDARY_MESSAGE = 'Sensitive configuration';
|
|
@@ -83,7 +87,7 @@ const ROUTINE_METHODS = new Set([
|
|
|
83
87
|
'unsubscribe',
|
|
84
88
|
]);
|
|
85
89
|
exports.rule = {
|
|
86
|
-
meta: (0,
|
|
90
|
+
meta: (0, generate_meta_js_1.generateMeta)(meta),
|
|
87
91
|
create(context) {
|
|
88
92
|
return {
|
|
89
93
|
CallExpression(node) {
|
|
@@ -99,7 +103,7 @@ exports.rule = {
|
|
|
99
103
|
*/
|
|
100
104
|
function checkNodeHttp(context, node) {
|
|
101
105
|
// Check if the node is a call to the 'http.createServer' method
|
|
102
|
-
const fqn = (0,
|
|
106
|
+
const fqn = (0, module_js_1.getFullyQualifiedName)(context, node.callee);
|
|
103
107
|
if (fqn !== 'http.createServer') {
|
|
104
108
|
return;
|
|
105
109
|
}
|
|
@@ -109,13 +113,13 @@ function checkNodeHttp(context, node) {
|
|
|
109
113
|
return;
|
|
110
114
|
}
|
|
111
115
|
// Check if the first argument is a callback function
|
|
112
|
-
const callback = (0,
|
|
116
|
+
const callback = (0, ast_js_1.resolveFunction)(context, arg0);
|
|
113
117
|
if (!callback) {
|
|
114
118
|
return;
|
|
115
119
|
}
|
|
116
120
|
// Check if the callback has a response parameter
|
|
117
121
|
const resParameter = callback.params[1];
|
|
118
|
-
if (!resParameter || !(0,
|
|
122
|
+
if (!resParameter || !(0, ast_js_1.isIdentifier)(resParameter)) {
|
|
119
123
|
return;
|
|
120
124
|
}
|
|
121
125
|
// Retrieve the variable declaration of the response parameter
|
|
@@ -131,26 +135,26 @@ function checkNodeHttp(context, node) {
|
|
|
131
135
|
const identifier = resUsage.identifier;
|
|
132
136
|
// Find the first ancestor that is a call to the 'writeHead' method
|
|
133
137
|
const writeHeadCall = identifier?.parent?.parent;
|
|
134
|
-
if (!(writeHeadCall?.type === 'CallExpression' && (0,
|
|
138
|
+
if (!(writeHeadCall?.type === 'CallExpression' && (0, ast_js_1.isCallingMethod)(writeHeadCall, 2, 'writeHead'))) {
|
|
135
139
|
continue;
|
|
136
140
|
}
|
|
137
141
|
// Check if the header argument of the 'writeHead' method is defined
|
|
138
|
-
const headerValue = (0,
|
|
142
|
+
const headerValue = (0, ast_js_1.getValueOfExpression)(context, writeHeadCall.arguments[1], 'ObjectExpression');
|
|
139
143
|
if (!headerValue) {
|
|
140
144
|
continue;
|
|
141
145
|
}
|
|
142
146
|
// Check if the header argument contains the 'Access-Control-Allow-Origin' property
|
|
143
|
-
const accessProperty = (0,
|
|
147
|
+
const accessProperty = (0, ast_js_1.getProperty)(headerValue, ACCESS_CONTROL_ALLOW_ORIGIN, context);
|
|
144
148
|
if (!accessProperty) {
|
|
145
149
|
continue;
|
|
146
150
|
}
|
|
147
151
|
// Check if the 'Access-Control-Allow-Origin' property is set to '*'
|
|
148
|
-
const accessValue = (0,
|
|
152
|
+
const accessValue = (0, ast_js_1.getValueOfExpression)(context, accessProperty.value, 'Literal');
|
|
149
153
|
if (accessValue?.value === '*') {
|
|
150
|
-
(0,
|
|
154
|
+
(0, location_js_1.report)(context, {
|
|
151
155
|
node: writeHeadCall.callee,
|
|
152
156
|
message: MESSAGE,
|
|
153
|
-
}, [(0,
|
|
157
|
+
}, [(0, location_js_1.toSecondaryLocation)(accessProperty, SECONDARY_MESSAGE)]);
|
|
154
158
|
}
|
|
155
159
|
}
|
|
156
160
|
}
|
|
@@ -159,50 +163,50 @@ function checkNodeHttp(context, node) {
|
|
|
159
163
|
*/
|
|
160
164
|
function checkExpressCors(context, node) {
|
|
161
165
|
// Check if the node is a call to the 'express.use' method
|
|
162
|
-
const fqn = (0,
|
|
166
|
+
const fqn = (0, module_js_1.getFullyQualifiedName)(context, node.callee);
|
|
163
167
|
if (fqn !== 'express.use') {
|
|
164
168
|
return;
|
|
165
169
|
}
|
|
166
170
|
// Check if the first argument is defined
|
|
167
|
-
const argValue = (0,
|
|
171
|
+
const argValue = (0, ast_js_1.getValueOfExpression)(context, node.arguments[0], 'CallExpression');
|
|
168
172
|
if (!argValue) {
|
|
169
173
|
return;
|
|
170
174
|
}
|
|
171
175
|
// Check if the first argument is a call to the 'cors' method
|
|
172
|
-
const argFqn = (0,
|
|
176
|
+
const argFqn = (0, module_js_1.getFullyQualifiedName)(context, argValue);
|
|
173
177
|
if (argFqn !== 'cors') {
|
|
174
178
|
return;
|
|
175
179
|
}
|
|
176
180
|
// Check if the call to the 'cors' method has an argument (default configuration is sensitive)
|
|
177
181
|
const corsOptions = argValue.arguments[0];
|
|
178
182
|
if (!corsOptions) {
|
|
179
|
-
(0,
|
|
183
|
+
(0, location_js_1.report)(context, {
|
|
180
184
|
node,
|
|
181
185
|
message: MESSAGE,
|
|
182
186
|
});
|
|
183
187
|
return;
|
|
184
188
|
}
|
|
185
189
|
// Check if the argument of the 'cors' method is an object
|
|
186
|
-
const corsOptionsValue = (0,
|
|
190
|
+
const corsOptionsValue = (0, ast_js_1.getValueOfExpression)(context, corsOptions, 'ObjectExpression');
|
|
187
191
|
if (!corsOptionsValue) {
|
|
188
192
|
return;
|
|
189
193
|
}
|
|
190
194
|
// Check if the 'origin' property is defined (default configuration is sensitive)
|
|
191
|
-
const originProperty = (0,
|
|
195
|
+
const originProperty = (0, ast_js_1.getProperty)(corsOptionsValue, 'origin', context);
|
|
192
196
|
if (!originProperty) {
|
|
193
|
-
(0,
|
|
197
|
+
(0, location_js_1.report)(context, {
|
|
194
198
|
node: node.callee,
|
|
195
199
|
message: MESSAGE,
|
|
196
|
-
}, [(0,
|
|
200
|
+
}, [(0, location_js_1.toSecondaryLocation)(corsOptions, SECONDARY_MESSAGE)]);
|
|
197
201
|
return;
|
|
198
202
|
}
|
|
199
203
|
// Check if the 'origin' property is set to '*'
|
|
200
|
-
const originValue = (0,
|
|
204
|
+
const originValue = (0, ast_js_1.getValueOfExpression)(context, originProperty.value, 'Literal');
|
|
201
205
|
if (originValue?.value === '*') {
|
|
202
|
-
(0,
|
|
206
|
+
(0, location_js_1.report)(context, {
|
|
203
207
|
node: node.callee,
|
|
204
208
|
message: MESSAGE,
|
|
205
|
-
}, [(0,
|
|
209
|
+
}, [(0, location_js_1.toSecondaryLocation)(originProperty, SECONDARY_MESSAGE)]);
|
|
206
210
|
}
|
|
207
211
|
}
|
|
208
212
|
/**
|
|
@@ -210,7 +214,7 @@ function checkExpressCors(context, node) {
|
|
|
210
214
|
*/
|
|
211
215
|
function checkExpressUserControlledOrigin(context, node) {
|
|
212
216
|
// Check if the node is a call to an express routine method
|
|
213
|
-
const fqn = (0,
|
|
217
|
+
const fqn = (0, module_js_1.getFullyQualifiedName)(context, node.callee)?.split('.');
|
|
214
218
|
if (!(fqn?.length === 2 && fqn[0] === 'express' && ROUTINE_METHODS.has(fqn[1]))) {
|
|
215
219
|
return;
|
|
216
220
|
}
|
|
@@ -220,18 +224,18 @@ function checkExpressUserControlledOrigin(context, node) {
|
|
|
220
224
|
return;
|
|
221
225
|
}
|
|
222
226
|
// Check if the second argument is a callback function
|
|
223
|
-
const callback = (0,
|
|
227
|
+
const callback = (0, ast_js_1.resolveFunction)(context, arg1);
|
|
224
228
|
if (!callback) {
|
|
225
229
|
return;
|
|
226
230
|
}
|
|
227
231
|
// Check if the callback has a request parameter
|
|
228
232
|
const reqParameter = callback.params[0];
|
|
229
|
-
if (!reqParameter || !(0,
|
|
233
|
+
if (!reqParameter || !(0, ast_js_1.isIdentifier)(reqParameter)) {
|
|
230
234
|
return;
|
|
231
235
|
}
|
|
232
236
|
// Check if the callback has a response parameter
|
|
233
237
|
const resParameter = callback.params[1];
|
|
234
|
-
if (!resParameter || !(0,
|
|
238
|
+
if (!resParameter || !(0, ast_js_1.isIdentifier)(resParameter)) {
|
|
235
239
|
return;
|
|
236
240
|
}
|
|
237
241
|
// Retrieve the variable declaration of the response parameter
|
|
@@ -247,11 +251,11 @@ function checkExpressUserControlledOrigin(context, node) {
|
|
|
247
251
|
const identifier = resUsage.identifier;
|
|
248
252
|
// Find the first ancestor that is a call to the 'setHeader' method
|
|
249
253
|
const setHeaderCall = identifier?.parent?.parent;
|
|
250
|
-
if (!(setHeaderCall?.type === 'CallExpression' && (0,
|
|
254
|
+
if (!(setHeaderCall?.type === 'CallExpression' && (0, ast_js_1.isCallingMethod)(setHeaderCall, 2, 'setHeader'))) {
|
|
251
255
|
continue;
|
|
252
256
|
}
|
|
253
257
|
// Check if the first argument of the 'setHeader' method is 'Access-Control-Allow-Origin'
|
|
254
|
-
const headerName = (0,
|
|
258
|
+
const headerName = (0, ast_js_1.getValueOfExpression)(context, setHeaderCall.arguments[0], 'Literal');
|
|
255
259
|
if (!headerName ||
|
|
256
260
|
typeof headerName.value !== 'string' ||
|
|
257
261
|
headerName.value.toLowerCase() !== ACCESS_CONTROL_ALLOW_ORIGIN.toLowerCase()) {
|
|
@@ -259,7 +263,7 @@ function checkExpressUserControlledOrigin(context, node) {
|
|
|
259
263
|
}
|
|
260
264
|
// Retrieve the value of the header argument
|
|
261
265
|
const headerArg = setHeaderCall.arguments[1];
|
|
262
|
-
const headerValue = (0,
|
|
266
|
+
const headerValue = (0, ast_js_1.getUniqueWriteUsageOrNode)(context, headerArg);
|
|
263
267
|
// Check if the header value is a user-controlled origin header
|
|
264
268
|
switch (headerValue.type) {
|
|
265
269
|
// Check if the header value is a call to the 'req.header' method with 'origin' as argument
|
|
@@ -267,14 +271,14 @@ function checkExpressUserControlledOrigin(context, node) {
|
|
|
267
271
|
const callee = headerValue.callee;
|
|
268
272
|
const calleeText = context.sourceCode.getText(callee);
|
|
269
273
|
if (calleeText === `${reqParameter.name}.header`) {
|
|
270
|
-
const originValue = (0,
|
|
274
|
+
const originValue = (0, ast_js_1.getValueOfExpression)(context, headerValue.arguments[0], 'Literal');
|
|
271
275
|
if (typeof originValue?.value === 'string' &&
|
|
272
276
|
originValue.value.toLowerCase() === 'origin' &&
|
|
273
277
|
!isValidated(callback, headerArg)) {
|
|
274
|
-
(0,
|
|
278
|
+
(0, location_js_1.report)(context, {
|
|
275
279
|
node: setHeaderCall.callee,
|
|
276
280
|
message: MESSAGE,
|
|
277
|
-
}, [(0,
|
|
281
|
+
}, [(0, location_js_1.toSecondaryLocation)(headerValue, SECONDARY_MESSAGE)]);
|
|
278
282
|
}
|
|
279
283
|
}
|
|
280
284
|
break;
|
|
@@ -284,10 +288,10 @@ function checkExpressUserControlledOrigin(context, node) {
|
|
|
284
288
|
const headerValueText = context.sourceCode.getText(headerValue);
|
|
285
289
|
if (headerValueText === `${reqParameter.name}.headers.origin` &&
|
|
286
290
|
!isValidated(callback, headerArg)) {
|
|
287
|
-
(0,
|
|
291
|
+
(0, location_js_1.report)(context, {
|
|
288
292
|
node: setHeaderCall.callee,
|
|
289
293
|
message: MESSAGE,
|
|
290
|
-
}, [(0,
|
|
294
|
+
}, [(0, location_js_1.toSecondaryLocation)(headerValue, SECONDARY_MESSAGE)]);
|
|
291
295
|
}
|
|
292
296
|
break;
|
|
293
297
|
}
|
|
@@ -297,7 +301,7 @@ function checkExpressUserControlledOrigin(context, node) {
|
|
|
297
301
|
* Checks if the user-controlled origin header is validated in the callback through a comparison.
|
|
298
302
|
*/
|
|
299
303
|
function isValidated(callback, header) {
|
|
300
|
-
if (!(0,
|
|
304
|
+
if (!(0, ast_js_1.isIdentifier)(header)) {
|
|
301
305
|
return false;
|
|
302
306
|
}
|
|
303
307
|
// Find the variable declaration of the header
|
|
@@ -311,7 +315,7 @@ function checkExpressUserControlledOrigin(context, node) {
|
|
|
311
315
|
const headerUsages = headerVariable.references;
|
|
312
316
|
for (const headerUsage of headerUsages) {
|
|
313
317
|
const identifier = headerUsage.identifier;
|
|
314
|
-
const validated = (0,
|
|
318
|
+
const validated = (0, ancestor_js_1.findFirstMatchingLocalAncestor)(identifier, node => node.type === 'BinaryExpression' && ['==', '!=', '===', '!=='].includes(node.operator));
|
|
315
319
|
if (validated) {
|
|
316
320
|
return true;
|
|
317
321
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* SonarQube JavaScript Plugin
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) SonarSource Sàrl
|
|
5
5
|
* mailto:info AT sonarsource DOT com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* You can redistribute and/or modify this program under the terms of
|
|
8
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
9
9
|
*
|
|
10
10
|
* This program is distributed in the hope that it will be useful,
|
|
11
11
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
@@ -36,7 +36,7 @@ __exportStar(require("./meta.js"), exports);
|
|
|
36
36
|
exports.meta = {
|
|
37
37
|
type: 'problem',
|
|
38
38
|
docs: {
|
|
39
|
-
description: '
|
|
39
|
+
description: 'Opened windows should not have access to the originating page',
|
|
40
40
|
recommended: true,
|
|
41
41
|
url: 'https://sonarsource.github.io/rspec/#/rspec/S5148/javascript',
|
|
42
42
|
requiresTypeChecking: false,
|
package/cjs/S5148/index.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.rule = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* SonarQube JavaScript Plugin
|
|
6
|
-
* Copyright (C)
|
|
6
|
+
* Copyright (C) SonarSource Sàrl
|
|
7
7
|
* mailto:info AT sonarsource DOT com
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* You can redistribute and/or modify this program under the terms of
|
|
10
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
11
11
|
*
|
|
12
12
|
* This program is distributed in the hope that it will be useful,
|
|
13
13
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
package/cjs/S5148/meta.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.eslintId = exports.implementation = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* SonarQube JavaScript Plugin
|
|
6
|
-
* Copyright (C)
|
|
6
|
+
* Copyright (C) SonarSource Sàrl
|
|
7
7
|
* mailto:info AT sonarsource DOT com
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* You can redistribute and/or modify this program under the terms of
|
|
10
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
11
11
|
*
|
|
12
12
|
* This program is distributed in the hope that it will be useful,
|
|
13
13
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
package/cjs/S5148/rule.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* SonarQube JavaScript Plugin
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) SonarSource Sàrl
|
|
5
5
|
* mailto:info AT sonarsource DOT com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* You can redistribute and/or modify this program under the terms of
|
|
8
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
9
9
|
*
|
|
10
10
|
* This program is distributed in the hope that it will be useful,
|
|
11
11
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
@@ -51,13 +51,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
51
51
|
})();
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
exports.rule = void 0;
|
|
54
|
-
const
|
|
54
|
+
const generate_meta_js_1 = require("../helpers/generate-meta.js");
|
|
55
|
+
const ast_js_1 = require("../helpers/ast.js");
|
|
55
56
|
const meta = __importStar(require("./generated-meta.js"));
|
|
56
57
|
const REQUIRED_OPTION = 'noopener';
|
|
57
58
|
const REQUIRED_OPTION_INDEX = 2;
|
|
58
59
|
const URL_INDEX = 0;
|
|
59
60
|
exports.rule = {
|
|
60
|
-
meta: (0,
|
|
61
|
+
meta: (0, generate_meta_js_1.generateMeta)(meta, {
|
|
61
62
|
messages: {
|
|
62
63
|
missingNoopener: 'Make sure not using "noopener" is safe here.',
|
|
63
64
|
},
|
|
@@ -65,12 +66,12 @@ exports.rule = {
|
|
|
65
66
|
create(context) {
|
|
66
67
|
return {
|
|
67
68
|
CallExpression: (node) => {
|
|
68
|
-
if (!(0,
|
|
69
|
+
if (!(0, ast_js_1.isMethodCall)(node)) {
|
|
69
70
|
return;
|
|
70
71
|
}
|
|
71
72
|
const { object, property } = node.callee;
|
|
72
|
-
const isWindowOpen = (0,
|
|
73
|
-
((0,
|
|
73
|
+
const isWindowOpen = (0, ast_js_1.isIdentifier)(property, 'open') &&
|
|
74
|
+
((0, ast_js_1.isIdentifier)(object, 'window') || isThisWindow(object));
|
|
74
75
|
if (!isWindowOpen) {
|
|
75
76
|
return;
|
|
76
77
|
}
|
|
@@ -93,7 +94,7 @@ exports.rule = {
|
|
|
93
94
|
function isThisWindow(node) {
|
|
94
95
|
return (node.type === 'MemberExpression' &&
|
|
95
96
|
node.object.type === 'ThisExpression' &&
|
|
96
|
-
(0,
|
|
97
|
+
(0, ast_js_1.isIdentifier)(node.property, 'window'));
|
|
97
98
|
}
|
|
98
99
|
function hasRequiredOption(context, argument) {
|
|
99
100
|
const stringOrNothing = extractString(context, argument);
|
|
@@ -105,8 +106,8 @@ function isHttpUrl(context, argument) {
|
|
|
105
106
|
(stringOrNothing.startsWith('http://') || stringOrNothing.startsWith('https://')));
|
|
106
107
|
}
|
|
107
108
|
function extractString(context, node) {
|
|
108
|
-
const literalNodeOrNothing = (0,
|
|
109
|
-
if (literalNodeOrNothing === undefined || !(0,
|
|
109
|
+
const literalNodeOrNothing = (0, ast_js_1.getValueOfExpression)(context, node, 'Literal');
|
|
110
|
+
if (literalNodeOrNothing === undefined || !(0, ast_js_1.isStringLiteral)(literalNodeOrNothing)) {
|
|
110
111
|
return undefined;
|
|
111
112
|
}
|
|
112
113
|
else {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* SonarQube JavaScript Plugin
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) SonarSource Sàrl
|
|
5
5
|
* mailto:info AT sonarsource DOT com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* You can redistribute and/or modify this program under the terms of
|
|
8
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
9
9
|
*
|
|
10
10
|
* This program is distributed in the hope that it will be useful,
|
|
11
11
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
package/cjs/S5247/index.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.rule = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* SonarQube JavaScript Plugin
|
|
6
|
-
* Copyright (C)
|
|
6
|
+
* Copyright (C) SonarSource Sàrl
|
|
7
7
|
* mailto:info AT sonarsource DOT com
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* You can redistribute and/or modify this program under the terms of
|
|
10
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
11
11
|
*
|
|
12
12
|
* This program is distributed in the hope that it will be useful,
|
|
13
13
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
package/cjs/S5247/meta.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.hasSecondaries = exports.eslintId = exports.implementation = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* SonarQube JavaScript Plugin
|
|
6
|
-
* Copyright (C)
|
|
6
|
+
* Copyright (C) SonarSource Sàrl
|
|
7
7
|
* mailto:info AT sonarsource DOT com
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* You can redistribute and/or modify this program under the terms of
|
|
10
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
11
11
|
*
|
|
12
12
|
* This program is distributed in the hope that it will be useful,
|
|
13
13
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
package/cjs/S5247/rule.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* SonarQube JavaScript Plugin
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) SonarSource Sàrl
|
|
5
5
|
* mailto:info AT sonarsource DOT com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* You can redistribute and/or modify this program under the terms of
|
|
8
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
9
9
|
*
|
|
10
10
|
* This program is distributed in the hope that it will be useful,
|
|
11
11
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
@@ -51,18 +51,22 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
51
51
|
})();
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
exports.rule = void 0;
|
|
54
|
-
const
|
|
54
|
+
const ast_js_1 = require("../helpers/ast.js");
|
|
55
|
+
const generate_meta_js_1 = require("../helpers/generate-meta.js");
|
|
56
|
+
const module_js_1 = require("../helpers/module.js");
|
|
57
|
+
const parser_services_js_1 = require("../helpers/parser-services.js");
|
|
58
|
+
const location_js_1 = require("../helpers/location.js");
|
|
55
59
|
const meta = __importStar(require("./generated-meta.js"));
|
|
56
60
|
const MESSAGE = 'Make sure disabling auto-escaping feature is safe here.';
|
|
57
61
|
exports.rule = {
|
|
58
|
-
meta: (0,
|
|
62
|
+
meta: (0, generate_meta_js_1.generateMeta)(meta),
|
|
59
63
|
create(context) {
|
|
60
64
|
const services = context.sourceCode.parserServices;
|
|
61
65
|
function isInvalidSanitizerFunction(node) {
|
|
62
|
-
let assignedFunction = (0,
|
|
63
|
-
(0,
|
|
64
|
-
if (!assignedFunction && node.type === 'Identifier' && (0,
|
|
65
|
-
assignedFunction = (0,
|
|
66
|
+
let assignedFunction = (0, ast_js_1.getValueOfExpression)(context, node, 'FunctionExpression') ??
|
|
67
|
+
(0, ast_js_1.getValueOfExpression)(context, node, 'ArrowFunctionExpression');
|
|
68
|
+
if (!assignedFunction && node.type === 'Identifier' && (0, parser_services_js_1.isRequiredParserServices)(services)) {
|
|
69
|
+
assignedFunction = (0, ast_js_1.resolveFromFunctionReference)(context, node);
|
|
66
70
|
}
|
|
67
71
|
if (assignedFunction) {
|
|
68
72
|
return isEmptySanitizerFunction(assignedFunction);
|
|
@@ -72,24 +76,24 @@ exports.rule = {
|
|
|
72
76
|
return {
|
|
73
77
|
CallExpression: (node) => {
|
|
74
78
|
const callExpression = node;
|
|
75
|
-
const fqn = (0,
|
|
79
|
+
const fqn = (0, module_js_1.getFullyQualifiedName)(context, callExpression);
|
|
76
80
|
if (fqn === 'handlebars.compile') {
|
|
77
|
-
(0,
|
|
81
|
+
(0, ast_js_1.checkSensitiveCall)(context, callExpression, 1, 'noEscape', true, MESSAGE);
|
|
78
82
|
}
|
|
79
83
|
if (fqn === 'marked.setOptions') {
|
|
80
|
-
(0,
|
|
84
|
+
(0, ast_js_1.checkSensitiveCall)(context, callExpression, 0, 'sanitize', false, MESSAGE);
|
|
81
85
|
}
|
|
82
86
|
if (fqn === 'markdown-it') {
|
|
83
|
-
(0,
|
|
87
|
+
(0, ast_js_1.checkSensitiveCall)(context, callExpression, 0, 'html', true, MESSAGE);
|
|
84
88
|
}
|
|
85
89
|
if (fqn === 'swig.setDefaults') {
|
|
86
|
-
(0,
|
|
90
|
+
(0, ast_js_1.checkSensitiveCall)(context, callExpression, 0, 'autoescape', false, MESSAGE);
|
|
87
91
|
}
|
|
88
92
|
},
|
|
89
93
|
NewExpression: (node) => {
|
|
90
94
|
const newExpression = node;
|
|
91
|
-
if ((0,
|
|
92
|
-
(0,
|
|
95
|
+
if ((0, module_js_1.getFullyQualifiedName)(context, newExpression) === 'kramed.Renderer') {
|
|
96
|
+
(0, ast_js_1.checkSensitiveCall)(context, newExpression, 0, 'sanitize', false, MESSAGE);
|
|
93
97
|
}
|
|
94
98
|
},
|
|
95
99
|
AssignmentExpression: (node) => {
|
|
@@ -98,12 +102,12 @@ exports.rule = {
|
|
|
98
102
|
if (left.type !== 'MemberExpression') {
|
|
99
103
|
return;
|
|
100
104
|
}
|
|
101
|
-
if (!((0,
|
|
102
|
-
(isMustacheIdentifier(left.object) && (0,
|
|
105
|
+
if (!((0, module_js_1.getFullyQualifiedName)(context, left) === 'mustache.escape' ||
|
|
106
|
+
(isMustacheIdentifier(left.object) && (0, ast_js_1.isIdentifier)(left.property, 'escape')))) {
|
|
103
107
|
return;
|
|
104
108
|
}
|
|
105
109
|
if (isInvalidSanitizerFunction(right)) {
|
|
106
|
-
(0,
|
|
110
|
+
(0, location_js_1.report)(context, {
|
|
107
111
|
node: left,
|
|
108
112
|
message: MESSAGE,
|
|
109
113
|
});
|
|
@@ -131,8 +135,8 @@ function isEmptySanitizerFunction(sanitizerFunction) {
|
|
|
131
135
|
const onlyStatement = body[0];
|
|
132
136
|
return !!(onlyStatement.type === 'ReturnStatement' &&
|
|
133
137
|
onlyStatement.argument &&
|
|
134
|
-
(0,
|
|
138
|
+
(0, ast_js_1.isIdentifier)(onlyStatement.argument, firstParamName));
|
|
135
139
|
}
|
|
136
140
|
function isMustacheIdentifier(node) {
|
|
137
|
-
return (0,
|
|
141
|
+
return (0, ast_js_1.isIdentifier)(node, 'Mustache');
|
|
138
142
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* SonarQube JavaScript Plugin
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) SonarSource Sàrl
|
|
5
5
|
* mailto:info AT sonarsource DOT com
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* You can redistribute and/or modify this program under the terms of
|
|
8
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
9
9
|
*
|
|
10
10
|
* This program is distributed in the hope that it will be useful,
|
|
11
11
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
package/cjs/S5256/index.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.rule = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* SonarQube JavaScript Plugin
|
|
6
|
-
* Copyright (C)
|
|
6
|
+
* Copyright (C) SonarSource Sàrl
|
|
7
7
|
* mailto:info AT sonarsource DOT com
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* You can redistribute and/or modify this program under the terms of
|
|
10
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
11
11
|
*
|
|
12
12
|
* This program is distributed in the hope that it will be useful,
|
|
13
13
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
package/cjs/S5256/meta.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.eslintId = exports.implementation = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* SonarQube JavaScript Plugin
|
|
6
|
-
* Copyright (C)
|
|
6
|
+
* Copyright (C) SonarSource Sàrl
|
|
7
7
|
* mailto:info AT sonarsource DOT com
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* You can redistribute and/or modify this program under the terms of
|
|
10
|
+
* the Sonar Source-Available License Version 1, as published by SonarSource Sàrl.
|
|
11
11
|
*
|
|
12
12
|
* This program is distributed in the hope that it will be useful,
|
|
13
13
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|