iobroker-community-adapters / ioBroker.fronius

ioBroker Adapter für Fronius Wechselrichter mit Fronius Datalogger Web ab Version 2.0.4-1 oder Fronius Datamanager ab Version 3.0.3-1
MIT License
22 stars 21 forks source link

[QA] eslint reports issues at main.js #303

Closed mcm1957 closed 1 year ago

mcm1957 commented 1 year ago

After fixing all autofixable errors eslint still complains at module devObjecs.js. Please check - normally eslint has very few false positives.

E:\GitHub\iobroker-community-adapters\ioBroker.fronius\main.js
    24:11  error  '__dirname' is already defined as a built-in global variable               no-redeclare
    33:11  error  'apiTest' is assigned a value but never used                               no-unused-vars
   162:39  error  'apiTest' is not defined                                                   no-undef
   218:38  error  'error' is defined but never used. Allowed unused args must match /^_/u    no-unused-vars
   224:26  error  'error' is defined but never used. Allowed unused args must match /^_/u    no-unused-vars
   252:34  error  'error' is defined but never used. Allowed unused args must match /^_/u    no-unused-vars
   263:26  error  'apiTest' is not defined                                                   no-undef
   282:26  error  'error' is defined but never used. Allowed unused args must match /^_/u    no-unused-vars
   298:41  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   299:43  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   300:46  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   303:38  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   304:40  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   346:24  error  'apiTest' is not defined                                                   no-undef
   351:20  error  'apiTest' is not defined                                                   no-undef
   356:20  error  'apiTest' is not defined                                                   no-undef
   361:20  error  'apiTest' is not defined                                                   no-undef
   366:20  error  'apiTest' is not defined                                                   no-undef
   426:38  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   426:68  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   432:38  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   432:70  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   473:45  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   573:33  error  's1current' is defined but never used                                      no-unused-vars
   573:44  error  's2current' is defined but never used                                      no-unused-vars
   577:43  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
   653:26  error  'apiTest' is not defined                                                   no-undef
   694:24  error  'apiTest' is not defined                                                   no-undef
   700:20  error  'apiTest' is not defined                                                   no-undef
   706:20  error  'apiTest' is not defined                                                   no-undef
   749:26  error  'apiTest' is not defined                                                   no-undef
   786:26  error  'apiTest' is not defined                                                   no-undef
   828:26  error  'apiTest' is not defined                                                   no-undef
   870:24  error  'apiTest' is not defined                                                   no-undef
   875:20  error  'apiTest' is not defined                                                   no-undef
   880:20  error  'apiTest' is not defined                                                   no-undef
   885:20  error  'apiTest' is not defined                                                   no-undef
  1071:24  error  'apiTest' is not defined                                                   no-undef
  1077:20  error  'apiTest' is not defined                                                   no-undef
  1083:20  error  'apiTest' is not defined                                                   no-undef
  1121:24  error  'apiTest' is not defined                                                   no-undef
  1126:20  error  'apiTest' is not defined                                                   no-undef
  1316:15  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
  1316:75  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
  1318:17  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
  1318:53  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
  1337:19  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
  1337:56  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
  1339:9   error  Unexpected var, use let or const instead                                   no-var
  1355:43  error  Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins
  1357:17  error  Unexpected var, use let or const instead                                   no-var
  1357:21  error  'val' is already defined                                                   no-redeclare
  1372:13  error  Unexpected var, use let or const instead                                   no-var
  1372:17  error  'val' is already defined                                                   no-redeclare

✖ 69 problems (69 errors, 0 warnings)
mcm1957 commented 1 year ago

fixed with 2.0.0-alpha.4