@iobroker/repochecker 2.7.0 → 2.7.2
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 +6 -0
- package/doc/issues.json +3 -0
- package/index.js +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,12 @@ Branch (`master/main/dev`) is optional.
|
|
|
20
20
|
-->
|
|
21
21
|
|
|
22
22
|
## Changelog
|
|
23
|
+
### 2.7.2 (2024-07-26)
|
|
24
|
+
* (mcm1957) package-lock.json check fixed.
|
|
25
|
+
|
|
26
|
+
### 2.7.1 (2024-07-26)
|
|
27
|
+
* (mcm1957) Reduce setTimeout/setInterval error to warning temporary.
|
|
28
|
+
|
|
23
29
|
### 2.7.0 (2024-07-26)
|
|
24
30
|
* (mcm1957) Some non trivial keywords related to adapter are enforced now [#234].
|
|
25
31
|
* (mcm1957) Severity if [E105] / [W105] has been corrected [#204].
|
package/doc/issues.json
CHANGED
|
@@ -647,6 +647,9 @@
|
|
|
647
647
|
"W522": {
|
|
648
648
|
"title": "Please consider migrating to admin 5 UI (jsonConfig)."
|
|
649
649
|
},
|
|
650
|
+
"W523": {
|
|
651
|
+
"title": "`package-lock.json` not found in repo! Please remove from .gitignore!"
|
|
652
|
+
},
|
|
650
653
|
"W606": {
|
|
651
654
|
"title": "Could not retrieve timestamp of LATEST revision at npm."
|
|
652
655
|
},
|
package/index.js
CHANGED
|
@@ -2331,8 +2331,8 @@ function checkCode(context) {
|
|
|
2331
2331
|
context.errors.push('[E503] "iob_npm.done" found in repo! Remove that file');
|
|
2332
2332
|
}
|
|
2333
2333
|
|
|
2334
|
-
if (!context
|
|
2335
|
-
context.warnings.push('[
|
|
2334
|
+
if (!context.filesList.includes('package-lock.json')) {
|
|
2335
|
+
context.warnings.push('[W523] "package-lock.json" not found in repo! Please remove from .gitignore!');
|
|
2336
2336
|
}
|
|
2337
2337
|
|
|
2338
2338
|
if (context['/.travis.yml']) {
|
|
@@ -2373,14 +2373,15 @@ function checkCode(context) {
|
|
|
2373
2373
|
if (context['/' + context.packageJson.main].includes('setTimeout(') && !context['/' + context.packageJson.main].includes('clearTimeout(')) {
|
|
2374
2374
|
if (context.ioPackageJson.common.compact) {
|
|
2375
2375
|
// if compact mode supported, it is critical
|
|
2376
|
-
context.errors.push(`[E505] setTimeout found in "${context.packageJson.main}", but no clearTimeout detected`);
|
|
2376
|
+
// context.errors.push(`[E505] setTimeout found in "${context.packageJson.main}", but no clearTimeout detected`);
|
|
2377
|
+
context.warnings.push(`[W505] setTimeout found in "${context.packageJson.main}", but no clearTimeout detected`);
|
|
2377
2378
|
} else {
|
|
2378
2379
|
context.warnings.push(`[W505] setTimeout found in "${context.packageJson.main}", but no clearTimeout detected`);
|
|
2379
2380
|
}
|
|
2380
2381
|
}
|
|
2381
2382
|
}
|
|
2382
2383
|
}
|
|
2383
|
-
// max
|
|
2384
|
+
// max E523
|
|
2384
2385
|
resolve(context);
|
|
2385
2386
|
})
|
|
2386
2387
|
.catch(e => reject(e));
|
package/package.json
CHANGED