cockpit-session-recording icon indicating copy to clipboard operation
cockpit-session-recording copied to clipboard

Covscan - Deadcode

Open justin-stephenson opened this issue 3 years ago • 0 comments

1. Defect type: [NO_EFFECT]
1. cockpit-session-recording/src/lib/qunit-tests.js:20: unused_expr: Discarding the programmer-written value ""use strict"". What was this code intended to accomplish?
2. cockpit-session-recording/src/lib/qunit-tests.js:20: remediation: Perhaps this code is incomplete or mistyped in some way.
#    18|    */
#    19|   
#    20|-> "use strict";
#    21|   
#    22|   import QUnit from "qunit/qunit/qunit.js";
Collapse
2. Defect type: [CONSTANT_EXPRESSION_RESULT]
1. cockpit-session-recording/dist/index.js:412561: typeof_misuse: "typeof event.cancelBubble !== "unknown"" is always "true" except in JavaScript implementations that add ""unknown"" to the standard set of possible values for "typeof".
# 412559|       if (event.stopPropagation) {
# 412560|         event.stopPropagation();
# 412561|->     } else if (typeof event.cancelBubble !== 'unknown') {
# 412562|         // The ChangeEventPlugin registers a "propertychange" event for
# 412563|         // IE. This event does not support bubbling or cancelling, and
Collapse
3. Defect type: [CONSTANT_EXPRESSION_RESULT]
1. cockpit-session-recording/dist/index.js:412546: typeof_misuse: "typeof event.returnValue !== "unknown"" is always "true" except in JavaScript implementations that add ""unknown"" to the standard set of possible values for "typeof".
# 412544|       if (event.preventDefault) {
# 412545|         event.preventDefault();
# 412546|->     } else if (typeof event.returnValue !== 'unknown') {
# 412547|         event.returnValue = false;
# 412548|       }
Collapse
4. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:402864: possible_types: At condition "(x > 0) - (x < 0)", the type of "x > 0" must be Boolean.
2. cockpit-session-recording/dist/index.js:402864: possible_types: At condition "(x > 0) - (x < 0)", the type of "x < 0" must be Boolean.
3. cockpit-session-recording/dist/index.js:402864: dead_error_condition: The condition "(x > 0) - (x < 0)" must be true.
4. cockpit-session-recording/dist/index.js:402864: dead_error_line: Execution cannot reach the expression "+x" inside this statement: "return ((x > 0) - (x < 0)) ...".
# 402862|   
# 402863|       function sign(x) {
# 402864|->         return (x > 0) - (x < 0) || +x;
# 402865|       }
# 402866|   
Collapse
5. Defect type: [IDENTICAL_BRANCHES]
1. cockpit-session-recording/dist/index.js:394684: identical_branches: Ternary expression on condition "b === 3" has identical then and else expressions: "":e"". Should one of the expressions be modified, or the entire ternary expression replaced?
# 394682|                           : b === 2
# 394683|                           ? ':a'
# 394684|->                         : b === 3
# 394685|                           ? ':e'
# 394686|                           : ':e';
Collapse
6. Defect type: [NO_EFFECT]
1. cockpit-session-recording/dist/index.js:376824: unused_expr: Discarding the result of "!((__WEBPACK_AMD_DEFINE_ARRAY__ = []) , (__WEBPACK_AMD_DEFINE_RESULT__ = function.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) , ((__WEBPACK_AMD_DEFINE_RESULT__ !== undefined) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)))". What was this code intended to accomplish?
2. cockpit-session-recording/dist/index.js:376824: remediation: Perhaps this code is incomplete or mistyped in some way.
# 376822|   
# 376823|   if ( true ) {
# 376824|-> 	!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function() {
# 376825|   		return jQuery;
# 376826|   	}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
Collapse
7. Defect type: [NO_EFFECT]
1. cockpit-session-recording/dist/index.js:359273: unused_expr: Discarding the result of "!((__WEBPACK_AMD_DEFINE_ARRAY__ = [exports]) , (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) , (__WEBPACK_AMD_DEFINE_RESULT__ = ((typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function") ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__)) , ((__WEBPACK_AMD_DEFINE_RESULT__ !== undefined) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)))". What was this code intended to accomplish?
2. cockpit-session-recording/dist/index.js:359273: remediation: Perhaps this code is incomplete or mistyped in some way.
# 359271|       /* istanbul ignore next */
# 359272|       if (true) {
# 359273|->         !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
# 359274|   				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
# 359275|   				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
Collapse
8. Defect type: [IDENTICAL_BRANCHES]
2. cockpit-session-recording/dist/index.js:329575: identical_branches: The same code is executed regardless of whether "(unit === "year") || ((unit === "hour") || (unit === "week"))" is true, because the 'then' and 'else' branches are identical. Should one of the branches be modified, or the entire 'if' statement replaced?
# 329573|     }
# 329574|   
# 329575|->   if (unit === 'year' || unit === 'hour' || unit === 'week') {
# 329576|       if (number === 1) {
# 329577|         suffix = 'ye';
Collapse
9. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103591: cond_cannot_single: Condition "select", taking true branch. Now the value of "select" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103595: cannot_single: At condition "(select === null) || (select === void 0)", the value of "select" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103591: cond_types: Condition "select", taking true branch. Now the type of "select" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103595: truth: At condition "(select === null) || (select === void 0)", the truth value of "select" must be true.
6. cockpit-session-recording/dist/index.js:103595: possible_types: At condition "(select === null) || (select === void 0)", the type of "select" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103595: dead_error_condition: The condition "(select === null) || (select === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103595: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((select === null) || (sele...".
# 103593|               column: {
# 103594|                   extraParams: {
# 103595|->                     onSelect: select === null || select === void 0 ? void 0 : select.onSelect,
# 103596|                       selectVariant: 'checkbox',
# 103597|                       allRowsSelected: select.isSelected
Collapse
10. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103571: cond_cannot_single: Condition "sort", taking true branch. Now the value of "sort" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103585: cannot_single: At condition "(sort === null) || (sort === void 0)", the value of "sort" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103571: cond_types: Condition "sort", taking true branch. Now the type of "sort" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103585: truth: At condition "(sort === null) || (sort === void 0)", the truth value of "sort" must be true.
6. cockpit-session-recording/dist/index.js:103585: possible_types: At condition "(sort === null) || (sort === void 0)", the type of "sort" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103585: dead_error_condition: The condition "(sort === null) || (sort === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103585: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((sort === null) || (sort =...".
# 103583|                       extraParams: {
# 103584|                           sortBy: sort.sortBy,
# 103585|->                         onSort: sort === null || sort === void 0 ? void 0 : sort.onSort
# 103586|                       }
# 103587|                   }
Collapse
11. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103571: cond_cannot_single: Condition "sort", taking true branch. Now the value of "sort" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103574: cannot_single: At condition "(sort === null) || (sort === void 0)", the value of "sort" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103571: cond_types: Condition "sort", taking true branch. Now the type of "sort" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103574: truth: At condition "(sort === null) || (sort === void 0)", the truth value of "sort" must be true.
6. cockpit-session-recording/dist/index.js:103574: possible_types: At condition "(sort === null) || (sort === void 0)", the type of "sort" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103574: dead_error_condition: The condition "(sort === null) || (sort === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103574: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((sort === null) || (sort =...".
# 103572|           if (sort.isFavorites) {
# 103573|               sortParams = Object(_Table_utils_decorators_sortable__WEBPACK_IMPORTED_MODULE_5__["sortableFavorites"])({
# 103574|->                 onSort: sort === null || sort === void 0 ? void 0 : sort.onSort,
# 103575|                   columnIndex: sort.columnIndex,
# 103576|                   sortBy: sort.sortBy
Collapse
12. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103481: cond_types: Condition "compoundExpandProp !== null", taking true branch. Now the type of "compoundExpandProp" cannot be null.
2. cockpit-session-recording/dist/index.js:103485: implied_types: "compoundExpandProp.isExpanded" implies that the type of "compoundExpandProp" cannot be any of undefined and null.
3. cockpit-session-recording/dist/index.js:103490: possible_types: At condition "(compoundExpandProp === null) || (compoundExpandProp === void 0)", the type of "compoundExpandProp" cannot be any of undefined and null.
4. cockpit-session-recording/dist/index.js:103490: dead_error_condition: The condition "(compoundExpandProp === null) || (compoundExpandProp === void 0)" cannot be true.
5. cockpit-session-recording/dist/index.js:103490: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((compoundExpandProp === nu...".
# 103488|               column: {
# 103489|                   extraParams: {
# 103490|->                     onExpand: compoundExpandProp === null || compoundExpandProp === void 0 ? void 0 : compoundExpandProp.onToggle
# 103491|                   }
# 103492|               }
Collapse
13. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103467: cond_types: Condition "expand !== null", taking true branch. Now the type of "expand" cannot be null.
2. cockpit-session-recording/dist/index.js:103469: implied_types: "expand.rowIndex" implies that the type of "expand" cannot be any of undefined and null.
3. cockpit-session-recording/dist/index.js:103476: possible_types: At condition "(expand === null) || (expand === void 0)", the type of "expand" cannot be any of undefined and null.
4. cockpit-session-recording/dist/index.js:103476: dead_error_condition: The condition "(expand === null) || (expand === void 0)" cannot be true.
5. cockpit-session-recording/dist/index.js:103476: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((expand === null) || (expa...".
# 103474|               column: {
# 103475|                   extraParams: {
# 103476|->                     onCollapse: expand === null || expand === void 0 ? void 0 : expand.onToggle
# 103477|                   }
# 103478|               }
Collapse
14. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103467: cond_types: Condition "expand !== null", taking true branch. Now the type of "expand" cannot be null.
2. cockpit-session-recording/dist/index.js:103469: implied_types: "expand.rowIndex" implies that the type of "expand" cannot be any of undefined and null.
3. cockpit-session-recording/dist/index.js:103470: possible_types: At condition "(expand === null) || (expand === void 0)", the type of "expand" cannot be any of undefined and null.
4. cockpit-session-recording/dist/index.js:103470: dead_error_condition: The condition "(expand === null) || (expand === void 0)" cannot be true.
5. cockpit-session-recording/dist/index.js:103470: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((expand === null) || (expa...".
# 103468|           ? Object(_Table_utils_decorators_collapsible__WEBPACK_IMPORTED_MODULE_6__["collapsible"])(null, {
# 103469|               rowIndex: expand.rowIndex,
# 103470|->             columnIndex: expand === null || expand === void 0 ? void 0 : expand.columnIndex,
# 103471|               rowData: {
# 103472|                   isOpen: expand.isExpanded
Collapse
15. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103452: cond_cannot_single: Condition "actions", taking true branch. Now the value of "actions" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103462: cannot_single: At condition "(actions === null) || (actions === void 0)", the value of "actions" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103452: cond_types: Condition "actions", taking true branch. Now the type of "actions" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103462: truth: At condition "(actions === null) || (actions === void 0)", the truth value of "actions" must be true.
6. cockpit-session-recording/dist/index.js:103462: possible_types: At condition "(actions === null) || (actions === void 0)", the type of "actions" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103462: dead_error_condition: The condition "(actions === null) || (actions === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103462: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((actions === null) || (act...".
# 103460|                       dropdownPosition: actions === null || actions === void 0 ? void 0 : actions.dropdownPosition,
# 103461|                       dropdownDirection: actions === null || actions === void 0 ? void 0 : actions.dropdownDirection,
# 103462|->                     actionsToggle: actions === null || actions === void 0 ? void 0 : actions.actionsToggle
# 103463|                   }
# 103464|               }
Collapse
16. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103452: cond_cannot_single: Condition "actions", taking true branch. Now the value of "actions" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103461: cannot_single: At condition "(actions === null) || (actions === void 0)", the value of "actions" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103452: cond_types: Condition "actions", taking true branch. Now the type of "actions" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103461: truth: At condition "(actions === null) || (actions === void 0)", the truth value of "actions" must be true.
6. cockpit-session-recording/dist/index.js:103461: possible_types: At condition "(actions === null) || (actions === void 0)", the type of "actions" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103461: dead_error_condition: The condition "(actions === null) || (actions === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103461: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((actions === null) || (act...".
# 103459|                   extraParams: {
# 103460|                       dropdownPosition: actions === null || actions === void 0 ? void 0 : actions.dropdownPosition,
# 103461|->                     dropdownDirection: actions === null || actions === void 0 ? void 0 : actions.dropdownDirection,
# 103462|                       actionsToggle: actions === null || actions === void 0 ? void 0 : actions.actionsToggle
# 103463|                   }
Collapse
17. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103452: cond_cannot_single: Condition "actions", taking true branch. Now the value of "actions" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103460: cannot_single: At condition "(actions === null) || (actions === void 0)", the value of "actions" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103452: cond_types: Condition "actions", taking true branch. Now the type of "actions" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103460: truth: At condition "(actions === null) || (actions === void 0)", the truth value of "actions" must be true.
6. cockpit-session-recording/dist/index.js:103460: possible_types: At condition "(actions === null) || (actions === void 0)", the type of "actions" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103460: dead_error_condition: The condition "(actions === null) || (actions === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103460: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((actions === null) || (act...".
# 103458|               column: {
# 103459|                   extraParams: {
# 103460|->                     dropdownPosition: actions === null || actions === void 0 ? void 0 : actions.dropdownPosition,
# 103461|                       dropdownDirection: actions === null || actions === void 0 ? void 0 : actions.dropdownDirection,
# 103462|                       actionsToggle: actions === null || actions === void 0 ? void 0 : actions.actionsToggle
Collapse
18. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103452: cond_cannot_single: Condition "actions", taking true branch. Now the value of "actions" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103456: cannot_single: At condition "(actions === null) || (actions === void 0)", the value of "actions" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103452: cond_types: Condition "actions", taking true branch. Now the type of "actions" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103456: truth: At condition "(actions === null) || (actions === void 0)", the truth value of "actions" must be true.
6. cockpit-session-recording/dist/index.js:103456: possible_types: At condition "(actions === null) || (actions === void 0)", the type of "actions" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103456: dead_error_condition: The condition "(actions === null) || (actions === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103456: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((actions === null) || (act...".
# 103454|           ? actionParamsFunc(null, {
# 103455|               rowData: {
# 103456|->                 disableActions: actions === null || actions === void 0 ? void 0 : actions.disable
# 103457|               },
# 103458|               column: {
Collapse
19. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103431: cond_cannot_single: Condition "favorites", taking true branch. Now the value of "favorites" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103440: cannot_single: At condition "(favorites === null) || (favorites === void 0)", the value of "favorites" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103431: cond_types: Condition "favorites", taking true branch. Now the type of "favorites" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103440: truth: At condition "(favorites === null) || (favorites === void 0)", the truth value of "favorites" must be true.
6. cockpit-session-recording/dist/index.js:103440: possible_types: At condition "(favorites === null) || (favorites === void 0)", the type of "favorites" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103440: dead_error_condition: The condition "(favorites === null) || (favorites === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103440: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((favorites === null) || (f...".
# 103438|               column: {
# 103439|                   extraParams: {
# 103440|->                     onFavorite: favorites === null || favorites === void 0 ? void 0 : favorites.onFavorite
# 103441|                   }
# 103442|               }
Collapse
20. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103431: cond_cannot_single: Condition "favorites", taking true branch. Now the value of "favorites" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103436: cannot_single: At condition "(favorites === null) || (favorites === void 0)", the value of "favorites" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103431: cond_types: Condition "favorites", taking true branch. Now the type of "favorites" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103436: truth: At condition "(favorites === null) || (favorites === void 0)", the truth value of "favorites" must be true.
6. cockpit-session-recording/dist/index.js:103436: possible_types: At condition "(favorites === null) || (favorites === void 0)", the type of "favorites" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103436: dead_error_condition: The condition "(favorites === null) || (favorites === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103436: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((favorites === null) || (f...".
# 103434|               rowData: {
# 103435|                   favorited: favorites.isFavorited,
# 103436|->                 favoritesProps: favorites === null || favorites === void 0 ? void 0 : favorites.props
# 103437|               },
# 103438|               column: {
Collapse
21. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103431: cond_cannot_single: Condition "favorites", taking true branch. Now the value of "favorites" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103433: cannot_single: At condition "(favorites === null) || (favorites === void 0)", the value of "favorites" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103431: cond_types: Condition "favorites", taking true branch. Now the type of "favorites" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103433: truth: At condition "(favorites === null) || (favorites === void 0)", the truth value of "favorites" must be true.
6. cockpit-session-recording/dist/index.js:103433: possible_types: At condition "(favorites === null) || (favorites === void 0)", the type of "favorites" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103433: dead_error_condition: The condition "(favorites === null) || (favorites === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103433: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((favorites === null) || (f...".
# 103431|       const favoriteParams = favorites
# 103432|           ? Object(_Table_utils_decorators_favoritable__WEBPACK_IMPORTED_MODULE_10__["favoritable"])(null, {
# 103433|->             rowIndex: favorites === null || favorites === void 0 ? void 0 : favorites.rowIndex,
# 103434|               rowData: {
# 103435|                   favorited: favorites.isFavorited,
Collapse
22. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103415: cond_cannot_single: Condition "select", taking true branch. Now the value of "select" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103425: cannot_single: At condition "(select === null) || (select === void 0)", the value of "select" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103415: cond_types: Condition "select", taking true branch. Now the type of "select" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103425: truth: At condition "(select === null) || (select === void 0)", the truth value of "select" must be true.
6. cockpit-session-recording/dist/index.js:103425: possible_types: At condition "(select === null) || (select === void 0)", the type of "select" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103425: dead_error_condition: The condition "(select === null) || (select === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103425: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((select === null) || (sele...".
# 103423|               column: {
# 103424|                   extraParams: {
# 103425|->                     onSelect: select === null || select === void 0 ? void 0 : select.onSelect,
# 103426|                       selectVariant: select.variant || 'checkbox'
# 103427|                   }
Collapse
23. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103415: cond_cannot_single: Condition "select", taking true branch. Now the value of "select" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103421: cannot_single: At condition "(select === null) || (select === void 0)", the value of "select" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103415: cond_types: Condition "select", taking true branch. Now the type of "select" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103421: truth: At condition "(select === null) || (select === void 0)", the truth value of "select" must be true.
6. cockpit-session-recording/dist/index.js:103421: possible_types: At condition "(select === null) || (select === void 0)", the type of "select" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103421: dead_error_condition: The condition "(select === null) || (select === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103421: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((select === null) || (sele...".
# 103419|                   selected: select.isSelected,
# 103420|                   disableSelection: select === null || select === void 0 ? void 0 : select.disable,
# 103421|->                 props: select === null || select === void 0 ? void 0 : select.props
# 103422|               },
# 103423|               column: {
Collapse
24. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:103415: cond_cannot_single: Condition "select", taking true branch. Now the value of "select" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:103420: cannot_single: At condition "(select === null) || (select === void 0)", the value of "select" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:103415: cond_types: Condition "select", taking true branch. Now the type of "select" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:103420: truth: At condition "(select === null) || (select === void 0)", the truth value of "select" must be true.
6. cockpit-session-recording/dist/index.js:103420: possible_types: At condition "(select === null) || (select === void 0)", the type of "select" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:103420: dead_error_condition: The condition "(select === null) || (select === void 0)" cannot be true.
8. cockpit-session-recording/dist/index.js:103420: dead_error_line: Execution cannot reach the sub-expression "void 0" inside this expression: "((select === null) || (sele...".
# 103418|               rowData: {
# 103419|                   selected: select.isSelected,
# 103420|->                 disableSelection: select === null || select === void 0 ? void 0 : select.disable,
# 103421|                   props: select === null || select === void 0 ? void 0 : select.props
# 103422|               },
Collapse
25. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:27119: cond_cannot_single: Condition "maxWidths", taking true branch. Now the value of "maxWidths" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:27120: cannot_single: At condition "maxWidths", the value of "maxWidths" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:27119: cond_types: Condition "maxWidths", taking true branch. Now the type of "maxWidths" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:27120: truth: At condition "maxWidths", the truth value of "maxWidths" must be true.
6. cockpit-session-recording/dist/index.js:27120: possible_types: At condition "maxWidths", the type of "maxWidths" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:27120: dead_error_condition: The condition "maxWidths" must be true.
8. cockpit-session-recording/dist/index.js:27120: dead_error_line: Execution cannot reach the expression "{}" inside this statement: "Object.entries((maxWidths |...".
# 27118|       const maxWidthStyles = {};
# 27119|       if (maxWidths) {
# 27120|->         Object.entries(maxWidths || {}).map(([breakpoint, value]) => (maxWidthStyles[`--pf-l-gallery--GridTemplateColumns--max${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));
# 27121|       }
# 27122|       const widthStyles = Object.assign(Object.assign({}, minWidthStyles), maxWidthStyles);
Collapse
26. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:27115: cond_cannot_single: Condition "minWidths", taking true branch. Now the value of "minWidths" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:27116: cannot_single: At condition "minWidths", the value of "minWidths" cannot be equal to 0.
4. cockpit-session-recording/dist/index.js:27115: cond_types: Condition "minWidths", taking true branch. Now the type of "minWidths" cannot be any of undefined, null and NaN.
5. cockpit-session-recording/dist/index.js:27116: truth: At condition "minWidths", the truth value of "minWidths" must be true.
6. cockpit-session-recording/dist/index.js:27116: possible_types: At condition "minWidths", the type of "minWidths" cannot be any of undefined, null and NaN.
7. cockpit-session-recording/dist/index.js:27116: dead_error_condition: The condition "minWidths" must be true.
8. cockpit-session-recording/dist/index.js:27116: dead_error_line: Execution cannot reach the expression "{}" inside this statement: "Object.entries((minWidths |...".
# 27114|       const minWidthStyles = {};
# 27115|       if (minWidths) {
# 27116|->         Object.entries(minWidths || {}).map(([breakpoint, value]) => (minWidthStyles[`--pf-l-gallery--GridTemplateColumns--min${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));
# 27117|       }
# 27118|       const maxWidthStyles = {};
Collapse
27. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:19663: cond_cannot_single: Condition "widths", taking true branch. Now the value of "widths" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:19664: cannot_single: At condition "widths", the value of "widths" cannot be equal to 0.
3. cockpit-session-recording/dist/index.js:19653: assignment: Assigning: "widths" = "undefined".
5. cockpit-session-recording/dist/index.js:19663: cond_types: Condition "widths", taking true branch. Now the type of "widths" cannot be any of undefined, null and NaN.
6. cockpit-session-recording/dist/index.js:19664: truth: At condition "widths", the truth value of "widths" must be true.
7. cockpit-session-recording/dist/index.js:19664: possible_types: At condition "widths", the type of "widths" cannot be any of undefined, null and NaN.
8. cockpit-session-recording/dist/index.js:19664: dead_error_condition: The condition "widths" must be true.
9. cockpit-session-recording/dist/index.js:19664: dead_error_line: Execution cannot reach the expression "{}" inside this statement: "Object.entries((widths || {...".
# 19662|       const widthStyles = {};
# 19663|       if (widths) {
# 19664|->         Object.entries(widths || {}).map(([breakpoint, value]) => (widthStyles[`--pf-c-toolbar__item--Width${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));
# 19665|       }
# 19666|       return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object.assign({ className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_Toolbar_toolbar__WEBPACK_IMPORTED_MODULE_2___default.a.toolbarItem, variant &&
Collapse
28. Defect type: [CONSTANT_EXPRESSION_RESULT]
1. cockpit-session-recording/dist/index.js:17913: pointless_expression: The expression "id && id" does not accomplish anything because it evaluates to either of its identical operands, "id".
2. cockpit-session-recording/dist/index.js:17913: remediation: Did you intend the operands to be different?
# 17911|           const localActiveKey = defaultActiveKey !== undefined ? uncontrolledActiveKey : activeKey;
# 17912|           return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_TabsContext__WEBPACK_IMPORTED_MODULE_10__["TabsContextProvider"], { value: { variant } },
# 17913|->             react__WEBPACK_IMPORTED_MODULE_1__["createElement"](Component, Object.assign({ "aria-label": ariaLabel, className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__["css"])(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_2___default.a.tabs, isFilled && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_2___default.a.modifiers.fill, isSecondary && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_2___default.a.modifiers.secondary, isVertical && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_2___default.a.modifiers.vertical, isBox && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_2___default.a.modifiers.box, showScrollButtons && !isVertical && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_2___default.a.modifiers.scrollable, usePageInsets && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_2___default.a.modifiers.pageInsets, Object(_helpers_util__WEBPACK_IMPORTED_MODULE_7__["formatBreakpointMods"])(inset, _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_2___default.a), variantStyle[variant], className) }, Object(_helpers__WEBPACK_IMPORTED_MODULE_11__["getOUIAProps"])(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),
# 17914|                   react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__["css"])(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_2___default.a.tabsScrollButton, isSecondary && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_3___default.a.modifiers.secondary), "aria-label": leftScrollAriaLabel, onClick: this.scrollLeft, disabled: disableLeftScrollButton, "aria-hidden": disableLeftScrollButton },
# 17915|                       react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_patternfly_react_icons_dist_esm_icons_angle_left_icon__WEBPACK_IMPORTED_MODULE_5__["default"], null)),
Collapse
29. Defect type: [IDENTICAL_BRANCHES]
1. cockpit-session-recording/dist/index.js:16565: identical_branches: Ternary expression on condition "isTypeahead" has identical then and else expressions: "react__WEBPACK_IMPORTED_MODULE_1__["createRef"]()". Should one of the expressions be modified, or the entire ternary expression replaced?
# 16563|           const { variant } = props;
# 16564|           const isTypeahead = variant === _selectConstants__WEBPACK_IMPORTED_MODULE_6__["SelectVariant"].typeahead || variant === _selectConstants__WEBPACK_IMPORTED_MODULE_6__["SelectVariant"].typeaheadMulti;
# 16565|->         this.toggle = isTypeahead ? react__WEBPACK_IMPORTED_MODULE_1__["createRef"]() : react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
# 16566|       }
# 16567|       componentDidMount() {
Collapse
30. Defect type: [CONSTANT_EXPRESSION_RESULT]
1. cockpit-session-recording/dist/index.js:10786: pointless_expression: The expression "isOnPath && isOnPath" does not accomplish anything because it evaluates to either of its identical operands, "isOnPath".
2. cockpit-session-recording/dist/index.js:10786: remediation: Did you intend the operands to be different?
# 10784|           onClick && onClick(event);
# 10785|       };
# 10786|->     const _isOnPath = (isOnPath && isOnPath) || (drilldownItemPath && drilldownItemPath.includes(itemId)) || false;
# 10787|       let _drill;
# 10788|       if (direction) {
Collapse
31. Defect type: [DEADCODE]
1. cockpit-session-recording/dist/index.js:10315: cond_cannot_single: Condition "current", taking true branch. Now the value of "current" cannot be equal to 0.
2. cockpit-session-recording/dist/index.js:10325: cannot_single: At condition "current", the value of "current" cannot be equal to 0.
3. cockpit-session-recording/dist/index.js:10314: assignment: Assigning: "current" = "undefined".
5. cockpit-session-recording/dist/index.js:10315: cond_types: Condition "current", taking true branch. Now the type of "current" cannot be any of undefined, null and NaN.
6. cockpit-session-recording/dist/index.js:10325: truth: At condition "current", the truth value of "current" must be true.
7. cockpit-session-recording/dist/index.js:10325: possible_types: At condition "current", the type of "current" cannot be any of undefined, null and NaN.
8. cockpit-session-recording/dist/index.js:10325: dead_error_condition: The condition "current" must be true.
9. cockpit-session-recording/dist/index.js:10325: dead_error_line: Execution cannot reach the expression "null" inside this statement: "nextMenu = (current.querySe...".
# 10323|               }
# 10324|               else {
# 10325|->                 const nextMenu = current.querySelector('#' + this.props.activeMenu) || current || null;
# 10326|                   const nextTarget = Array.from(nextMenu.getElementsByTagName('UL')[0].children).filter(el => !(el.classList.contains('pf-m-disabled') || el.classList.contains('pf-c-divider')))[0].firstChild;
# 10327|                   nextTarget.focus();
Collapse
32. Defect type: [CONSTANT_EXPRESSION_RESULT]
1. cockpit-session-recording/dist/index.js:8383: pointless_expression: The expression "header && header" does not accomplish anything because it evaluates to either of its identical operands, "header".
2. cockpit-session-recording/dist/index.js:8383: remediation: Did you intend the operands to be different?
#  8381|       return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object.assign({ className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_2___default.a.formFieldGroup, isExpanded && isExpandable && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_2___default.a.modifiers.expanded, className) }, props),
#  8382|           isExpandable && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_helpers__WEBPACK_IMPORTED_MODULE_5__["GenerateId"], { prefix: "form-field-group-toggle" }, id => (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FormFieldGroupToggle__WEBPACK_IMPORTED_MODULE_4__["FormFieldGroupToggle"], Object.assign({ onToggle: onToggle, isExpanded: isExpanded, "aria-label": toggleAriaLabel, toggleId: id }, (headerTitleText && { 'aria-labelledby': `${header.props.titleText.id} ${id}` })))))),
#  8383|->         header && header,
#  8384|           (!isExpandable || (isExpandable && isExpanded)) && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_2___default.a.formFieldGroupBody) }, children))));
#  8385|   };
Collapse
33. Defect type: [CONSTANT_EXPRESSION_RESULT]
1. cockpit-session-recording/dist/index.js:8185: pointless_expression: The expression "actions && actions" does not accomplish anything because it evaluates to either of its identical operands, "actions".
2. cockpit-session-recording/dist/index.js:8185: remediation: Did you intend the operands to be different?
#  8183|                   react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_2___default.a.formFieldGroupHeaderTitleText), id: titleText.id }, titleText.text))),
#  8184|               titleDescription && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_2___default.a.formFieldGroupHeaderDescription) }, titleDescription)),
#  8185|->         react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_2___default.a.formFieldGroupHeaderActions) }, actions && actions)));
#  8186|   };
#  8187|   FormFieldGroupHeader.displayName = 'FormFieldGroupHeader';
Collapse
34. Defect type: [CONSTANT_EXPRESSION_RESULT]
1. cockpit-session-recording/dist/index.js:3344: pointless_expression: The expression "actions && actions" does not accomplish anything because it evaluates to either of its identical operands, "actions".
2. cockpit-session-recording/dist/index.js:3344: remediation: Did you intend the operands to be different?
#  3342|       return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object.assign({ className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_CodeBlock_code_block__WEBPACK_IMPORTED_MODULE_2___default.a.codeBlock, className) }, props),
#  3343|           react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_CodeBlock_code_block__WEBPACK_IMPORTED_MODULE_2___default.a.codeBlockHeader) },
#  3344|->             react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_CodeBlock_code_block__WEBPACK_IMPORTED_MODULE_2___default.a.codeBlockActions) }, actions && actions)),
#  3345|           react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_CodeBlock_code_block__WEBPACK_IMPORTED_MODULE_2___default.a.codeBlockContent) }, children)));
#  3346|   };
Collapse
35. Defect type: [CONSTANT_EXPRESSION_RESULT]
1. cockpit-session-recording/dist/index.js:3110: pointless_expression: The expression "additionalActions && additionalActions" does not accomplish anything because it evaluates to either of its identical operands, "additionalActions".
2. cockpit-session-recording/dist/index.js:3110: remediation: Did you intend the operands to be different?
#  3108|                                       });
#  3109|                                   } }, this.state.copied ? clickTip : hoverTip)),
#  3110|->                         additionalActions && additionalActions))))),
#  3111|                   variant !== 'inline-compact' && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_6__["GenerateId"], { prefix: "" }, id => (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
#  3112|                       react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__["css"])(_patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_2___default.a.clipboardCopyGroup) },

justin-stephenson avatar Apr 22 '22 13:04 justin-stephenson