o2r-project/o2r-UI

Fix compiler warnings

nuest opened this issue · 0 comments

nuest commented

From the docker-compose up logs of container ui:

ui               | Compiled with warnings.
ui               | 
ui               | ./src/components/createERC/requiredMetadata/Authors/Authors.js
ui               |   Line 10:5:  Useless constructor  no-useless-constructor
ui               | 
ui               | ./src/components/erc/ERC.js
ui               |   Line 119:30:  'element' is already defined  no-redeclare
ui               | 
ui               | ./src/helpers/programm-analysis/es6/symbol-table.js
ui               |   Line 123:34:  Expected '===' and instead saw '=='  eqeqeq
ui               | 
ui               | ./src/components/createERC/bindings/Bindings.js
ui               |   Line 12:8:     'SelectedCode' is defined but never used                                                                                      no-unused-vars
ui               |   Line 78:82:    Expected '!==' and instead saw '!='                                                                                           eqeqeq
ui               |   Line 83:109:   Expected '===' and instead saw '=='                                                                                           eqeqeq
ui               |   Line 85:85:    Expected '===' and instead saw '=='                                                                                           eqeqeq
ui               |   Line 85:208:   Expected '===' and instead saw '=='                                                                                           eqeqeq
ui               |   Line 94:115:   Expected '===' and instead saw '=='                                                                                           eqeqeq
ui               |   Line 201:50:   Expected '!==' and instead saw '!='                                                                                           eqeqeq
ui               |   Line 333:47:   Expected '===' and instead saw '=='                                                                                           eqeqeq
ui               |   Line 365:15:   Expected '!==' and instead saw '!='                                                                                           eqeqeq
ui               |   Line 380:84:   Expected '===' and instead saw '=='                                                                                           eqeqeq
ui               |   Line 492:29:   Expected '===' and instead saw '=='                                                                                           eqeqeq
ui               |   Line 496:29:   Expected '===' and instead saw '=='                                                                                           eqeqeq
ui               |   Line 618:44:   Expected '===' and instead saw '=='                                                                                           eqeqeq
ui               |   Line 725:131:  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank
ui               | 
ui               | ./src/components/startpageDemo/Startpage.js
ui               |   Line 13:13:  'spacing' is assigned a value but never used                                                                                  no-unused-vars
ui               |   Line 24:83:  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank
ui               |   Line 34:68:  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank
ui               | 
ui               | ./src/components/createERC/spatioTemporalMetadata/SpatioTemporalMetadata.js
ui               |   Line 148:40:  Expected '===' and instead saw '=='  eqeqeq
ui               | 
ui               | ./src/components/erc/Manipulate/FigureComparison/FigureComparison.js
ui               |   Line 19:5:  React Hook useEffect contains a call to 'setOpen'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [props.location.search] as a second argument to the useEffect Hook  react-hooks/exhaustive-deps
ui               | 
ui               | ./src/components/discovery/Map.js
ui               |   Line 1:8:    'L' is defined but never used                   no-unused-vars
ui               |   Line 1:13:   'geoJSON' is defined but never used             no-unused-vars
ui               |   Line 7:5:    'firstTime' is assigned a value but never used  no-unused-vars
ui               |   Line 38:13:  'bounds' is assigned a value but never used     no-unused-vars
ui               | 
ui               | ./src/components/inspectExamplesDemo/InspectExamples.js
ui               |   Line 2:108:  'ThemeProvider' is defined but never used  no-unused-vars
ui               |   Line 86:13:  'self' is assigned a value but never used  no-unused-vars
ui               | 
ui               | ./src/components/erc/Download/DownloadPop.js
ui               |   Line 2:113:  'Slide' is defined but never used  no-unused-vars
ui               | 
ui               | ./src/components/discovery/resultList.js
ui               |   Line 2:13:  'geoJSON' is defined but never used      no-unused-vars
ui               |   Line 5:41:  'CardActions' is defined but never used  no-unused-vars
ui               |   Line 5:97:  'TextField' is defined but never used    no-unused-vars
ui               | 
ui               | ./src/components/erc/Inspect/Inspect.js
ui               |   Line 31:36:  Expected '!==' and instead saw '!='  eqeqeq
ui               | 
ui               | ./src/helpers/programm-analysis/es6/slice.js
ui               |   Line 38:27:  Expected '===' and instead saw '=='  eqeqeq
ui               |   Line 41:26:  Expected '===' and instead saw '=='  eqeqeq
ui               |   Line 46:49:  Expected '===' and instead saw '=='  eqeqeq
ui               |   Line 47:46:  Expected '===' and instead saw '=='  eqeqeq
ui               | 
ui               | ./src/helpers/programm-analysis/es6/set.js
ui               |   Line 49:13:   Expected an object to be thrown      no-throw-literal
ui               |   Line 57:54:   Expected '!==' and instead saw '!='  eqeqeq
ui               |   Line 68:27:   Expected '===' and instead saw '=='  eqeqeq
ui               |   Line 72:52:   Expected '===' and instead saw '=='  eqeqeq
ui               |   Line 105:13:  Expected an object to be thrown      no-throw-literal
ui               | 
ui               | ./src/components/erc/Substitution/Substitution.js
ui               |   Line 4:41:   'CardActions' is defined but never used  no-unused-vars
ui               |   Line 12:10:  'file' is defined but never used         no-unused-vars
ui               |   Line 79:27:  Expected '===' and instead saw '=='      eqeqeq
ui               |   Line 83:18:  'file' is already defined                no-redeclare
ui               |   Line 84:27:  Expected '===' and instead saw '=='      eqeqeq
ui               |   Line 88:18:  'file' is already defined                no-redeclare
ui               | 
ui               | ./src/components/authorView/resultList.js
ui               |   Line 4:41:  'CardActions' is defined but never used  no-unused-vars
ui               |   Line 4:90:  'Paper' is defined but never used        no-unused-vars
ui               |   Line 4:97:  'TextField' is defined but never used    no-unused-vars
ui               | 
ui               | ./src/components/discovery/Discovery.js
ui               |   Line 4:94:    'withStyles' is defined but never used  no-unused-vars
ui               |   Line 59:49:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 65:49:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 114:42:  Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 261:75:  Expected '===' and instead saw '=='     eqeqeq
ui               | 
ui               | ./src/components/createERC/requiredMetadata/RequiredMetadata.js
ui               |   Line 53:14:  Missing '()' invoking a constructor  new-parens
ui               | 
ui               | ./src/components/erc/MainView/MainView.js
ui               |   Line 55:36:  Expected '!==' and instead saw '!='  eqeqeq
ui               |   Line 64:36:  Expected '!==' and instead saw '!='  eqeqeq
ui               |   Line 72:18:  Expected '===' and instead saw '=='  eqeqeq
ui               | 
ui               | ./src/components/discovery/queryBuilder.js
ui               |   Line 56:15:  Expected '===' and instead saw '=='  eqeqeq
ui               | 
ui               | ./src/helpers/programm-analysis/es6/printNode.js
ui               |   Line 5:5:    Expected a default case          default-case
ui               |   Line 30:13:  Expected an object to be thrown  no-throw-literal
ui               | 
ui               | ./src/helpers/react-image-diff.js
ui               |   Line 61:11:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
ui               |   Line 69:11:   img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
ui               |   Line 104:11:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
ui               |   Line 112:11:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
ui               |   Line 156:11:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
ui               |   Line 165:13:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
ui               | 
ui               | ./src/helpers/programm-analysis/es6/data-flow.js
ui               |   Line 67:37:    Expected '===' and instead saw '=='        eqeqeq
ui               |   Line 67:93:    Expected '!==' and instead saw '!='        eqeqeq
ui               |   Line 93:35:    Expected '===' and instead saw '=='        eqeqeq
ui               |   Line 178:9:    Expected a default case                    default-case
ui               |   Line 235:17:   'spec' is assigned a value but never used  no-unused-vars
ui               |   Line 282:67:   Expected '===' and instead saw '=='        eqeqeq
ui               |   Line 371:50:   Expected '===' and instead saw '=='        eqeqeq
ui               |   Line 398:23:   Expected '===' and instead saw '=='        eqeqeq
ui               |   Line 558:25:   Expected '===' and instead saw '=='        eqeqeq
ui               |   Line 565:92:   Expected '===' and instead saw '=='        eqeqeq
ui               |   Line 565:113:  Expected '===' and instead saw '=='        eqeqeq
ui               |   Line 618:9:    Expected a default case                    default-case
ui               | 
ui               | ./src/components/erc/Substitution/Substitute/Subsititute.js
ui               |   Line 72:34:   Expected '===' and instead saw '=='  eqeqeq
ui               |   Line 96:18:   Expected '===' and instead saw '=='  eqeqeq
ui               |   Line 126:77:  Expected '===' and instead saw '=='  eqeqeq
ui               | 
ui               | ./src/helpers/programm-analysis/es6/control-flow.js
ui               |   Line 74:13:    Expected an object to be thrown         no-throw-literal
ui               |   Line 77:23:    Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 80:28:    Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 83:108:   Unexpected use of comma operator        no-sequences
ui               |   Line 120:32:   '_' is assigned a value but never used  no-unused-vars
ui               |   Line 121:26:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 124:21:   '_' is assigned a value but never used  no-unused-vars
ui               |   Line 131:21:   '_' is assigned a value but never used  no-unused-vars
ui               |   Line 132:26:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 135:32:   '_' is assigned a value but never used  no-unused-vars
ui               |   Line 277:42:   '_' is assigned a value but never used  no-unused-vars
ui               |   Line 282:21:   '_' is assigned a value but never used  no-unused-vars
ui               |   Line 312:13:   Expected an object to be thrown         no-throw-literal
ui               |   Line 315:13:   Expected an object to be thrown         no-throw-literal
ui               |   Line 318:13:   Expected an object to be thrown         no-throw-literal
ui               |   Line 387:74:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 387:102:  Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 390:111:  Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 402:41:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 406:91:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 409:24:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 411:27:   Don't make functions within a loop      no-loop-func
ui               |   Line 412:27:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 420:59:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 423:40:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 438:40:   Expected '===' and instead saw '=='     eqeqeq
ui               |   Line 452:21:   'block' is already defined              no-redeclare
ui               |   Line 464:51:   Expected '!==' and instead saw '!='     eqeqeq
ui               |   Line 499:62:   Expected '!==' and instead saw '!='     eqeqeq
ui               |   Line 502:56:   Expected '===' and instead saw '=='     eqeqeq
ui               | 
ui               | ./src/components/erc/Manipulate/Manipulate.js
ui               |   Line 78:29:   Expected '===' and instead saw '=='                                                                                                                                                              eqeqeq
ui               |   Line 90:37:   Expected '===' and instead saw '=='                                                                                                                                                              eqeqeq
ui               |   Line 139:55:  Expected '!==' and instead saw '!='                                                                                                                                                              eqeqeq
ui               |   Line 233:69:  Expected '===' and instead saw '=='                                                                                                                                                              eqeqeq
ui               |   Line 268:55:  Redundant alt attribute. Screen-readers already announce `img` tags as an image. You don’t need to use the words `image`, `photo,` or `picture` (or any specified custom words) in the alt prop  jsx-a11y/img-redundant-alt
ui               | 
ui               | ./src/helpers/programm-analysis/es6/python-parser.js
ui               |   Line 7:5:    'oldParseError' is assigned a value but never used    no-unused-vars
ui               |   Line 44:5:   'LocatableFields' is assigned a value but never used  no-unused-vars
ui               |   Line 122:5:  Expected a default case                               default-case
ui               |   Line 209:9:  Duplicate case label                                  no-duplicate-case
ui               |   Line 224:9:  Duplicate case label                                  no-duplicate-case
ui               | 
ui               | ./src/components/erc/Inspect/CodeView/CodeView.js
ui               |   Line 80:14:  Expected '===' and instead saw '=='  eqeqeq
ui               | 
ui               | ./src/helpers/programm-analysis/es6/python3.js
ui               |   Line 86:1:       Expected a default case                                      default-case
ui               |   Line 89:1:       Unreachable code                                             no-unreachable
ui               |   Line 187:25:     Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 610:35:     'tstack' is assigned a value but never used                  no-unused-vars
ui               |   Line 633:14:     'popStack' is defined but never used                         no-unused-vars
ui               |   Line 638:5:      Unexpected labeled statement                                 no-labels
ui               |   Line 638:5:      '_token_stack:' is defined but never used                    no-unused-labels
ui               |   Line 647:48:     'a' is defined but never used                                no-unused-vars
ui               |   Line 669:98:     Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 682:9:      Expected a default case                                      default-case
ui               |   Line 744:5:      Unreachable code                                             no-unreachable
ui               |   Line 1072:5:     'YYSTATE' is assigned a value but never used                 no-unused-vars
ui               |   Line 1073:1:     Expected a default case                                      default-case
ui               |   Line 1076:46:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1087:25:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1089:25:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1097:46:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1099:45:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1111:47:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1123:46:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1133:53:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1151:42:    Unexpected control character(s) in regular expression: \x00  no-control-regex
ui               |   Line 1156:1:     Unreachable code                                             no-unreachable
ui               |   Line 1169:33:    'str' is already defined                                     no-redeclare
ui               |   Line 1171:42:    Unexpected control character(s) in regular expression: \x00  no-control-regex
ui               |   Line 1176:1:     Unreachable code                                             no-unreachable
ui               |   Line 1188:1:     Unreachable code                                             no-unreachable
ui               |   Line 1190:1:     Unreachable code                                             no-unreachable
ui               |   Line 1192:1:     Unreachable code                                             no-unreachable
ui               |   Line 1198:1:     Unreachable code                                             no-unreachable
ui               |   Line 1200:1:     Unreachable code                                             no-unreachable
ui               |   Line 1202:53:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1203:45:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1203:66:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1203:87:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1205:52:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1205:73:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1205:94:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1210:1:     Unreachable code                                             no-unreachable
ui               |   Line 1212:1:     Unreachable code                                             no-unreachable
ui               |   Line 1217:37:    'str' is already defined                                     no-redeclare
ui               |   Line 1219:46:    Unexpected control character(s) in regular expression: \x00  no-control-regex
ui               |   Line 1224:1:     Unreachable code                                             no-unreachable
ui               |   Line 1233:69:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1237:1:     Unreachable code                                             no-unreachable
ui               |   Line 1240:205:   Unnecessary escape character: \                              no-useless-escape
ui               |   Line 1240:222:   Unnecessary escape character: \                              no-useless-escape
ui               |   Line 1240:326:   Unnecessary escape character: \+                             no-useless-escape
ui               |   Line 1240:329:   Unnecessary escape character: \-                             no-useless-escape
ui               |   Line 1240:492:   Unnecessary escape character: \+                             no-useless-escape
ui               |   Line 1240:495:   Unnecessary escape character: \-                             no-useless-escape
ui               |   Line 1240:873:   Unnecessary escape character: \"                             no-useless-escape
ui               |   Line 1240:903:   Unnecessary escape character: \'                             no-useless-escape
ui               |   Line 1240:970:   Unnecessary escape character: \"                             no-useless-escape
ui               |   Line 1240:1000:  Unnecessary escape character: \'                             no-useless-escape
ui               |   Line 1250:8:     Missing '()' invoking a constructor                          new-parens
ui               | 
ui               | ./src/helpers/programm-analysis/R.js
ui               |   Line 86:1:      Expected a default case                                      default-case
ui               |   Line 89:1:      Unreachable code                                             no-unreachable
ui               |   Line 163:25:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 615:35:    'tstack' is assigned a value but never used                  no-unused-vars
ui               |   Line 638:14:    'popStack' is defined but never used                         no-unused-vars
ui               |   Line 643:5:     Unexpected labeled statement                                 no-labels
ui               |   Line 643:5:     '_token_stack:' is defined but never used                    no-unused-labels
ui               |   Line 652:48:    'a' is defined but never used                                no-unused-vars
ui               |   Line 674:98:    Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 687:9:     Expected a default case                                      default-case
ui               |   Line 749:5:     Unreachable code                                             no-unreachable
ui               |   Line 1077:5:    'YYSTATE' is assigned a value but never used                 no-unused-vars
ui               |   Line 1078:1:    Expected a default case                                      default-case
ui               |   Line 1085:1:    Unreachable code                                             no-unreachable
ui               |   Line 1086:25:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1088:25:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1102:53:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1119:42:   Unexpected control character(s) in regular expression: \x00  no-control-regex
ui               |   Line 1124:1:    Unreachable code                                             no-unreachable
ui               |   Line 1137:33:   'str' is already defined                                     no-redeclare
ui               |   Line 1139:42:   Unexpected control character(s) in regular expression: \x00  no-control-regex
ui               |   Line 1144:1:    Unreachable code                                             no-unreachable
ui               |   Line 1156:1:    Unreachable code                                             no-unreachable
ui               |   Line 1158:1:    Unreachable code                                             no-unreachable
ui               |   Line 1160:1:    Unreachable code                                             no-unreachable
ui               |   Line 1166:1:    Unreachable code                                             no-unreachable
ui               |   Line 1168:1:    Unreachable code                                             no-unreachable
ui               |   Line 1170:53:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1171:45:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1171:66:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1171:87:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1173:52:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1173:73:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1173:94:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1178:1:    Unreachable code                                             no-unreachable
ui               |   Line 1180:1:    Unreachable code                                             no-unreachable
ui               |   Line 1185:37:   'str' is already defined                                     no-redeclare
ui               |   Line 1187:46:   Unexpected control character(s) in regular expression: \x00  no-control-regex
ui               |   Line 1192:1:    Unreachable code                                             no-unreachable
ui               |   Line 1201:69:   Expected '===' and instead saw '=='                          eqeqeq
ui               |   Line 1205:1:    Unreachable code                                             no-unreachable
ui               |   Line 1208:196:  Unnecessary escape character: \                              no-useless-escape
ui               |   Line 1208:213:  Unnecessary escape character: \                              no-useless-escape
ui               |   Line 1208:304:  Unnecessary escape character: \+                             no-useless-escape
ui               |   Line 1208:307:  Unnecessary escape character: \-                             no-useless-escape
ui               |   Line 1208:444:  Unnecessary escape character: \+                             no-useless-escape
ui               |   Line 1208:447:  Unnecessary escape character: \-                             no-useless-escape
ui               |   Line 1208:795:  Unnecessary escape character: \"                             no-useless-escape
ui               |   Line 1208:825:  Unnecessary escape character: \'                             no-useless-escape
ui               |   Line 1208:892:  Unnecessary escape character: \"                             no-useless-escape
ui               |   Line 1208:922:  Unnecessary escape character: \'                             no-useless-escape
ui               |   Line 1218:8:    Missing '()' invoking a constructor                          new-parens
ui               | 
ui               | ./src/components/createERC/spatioTemporalMetadata/Map.js
ui               |   Line 88:15:  'latlngs' is assigned a value but never used  no-unused-vars
ui               | 
ui               | Search for the keywords to learn more about each warning.
ui               | To ignore, add // eslint-disable-next-line to the line before.
ui               |