@iobroker/repochecker 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,9 @@ Branch (`master/main/dev`) is optional.
|
|
|
20
20
|
-->
|
|
21
21
|
|
|
22
22
|
## Changelog
|
|
23
|
+
### 2.7.1 (2024-07-26)
|
|
24
|
+
* (mcm1957) Reduce setTimeout/setInterval error to warning temporary.
|
|
25
|
+
|
|
23
26
|
### 2.7.0 (2024-07-26)
|
|
24
27
|
* (mcm1957) Some non trivial keywords related to adapter are enforced now [#234].
|
|
25
28
|
* (mcm1957) Severity if [E105] / [W105] has been corrected [#204].
|
package/index.js
CHANGED
|
@@ -2373,7 +2373,8 @@ 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
|
}
|
package/package.json
CHANGED