const fa2 = [ [ "Remove this unused import of 'useLazyGetSupplierEmailAddressQuery'.", "Code Smell", "Minor" ], [ "Replace this if-then-else flow by a single return statement.", "Code Smell", "Minor" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 25 to the 15 allowed.", "Code Smell", "Critical" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 25 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 88 to the 15 allowed.", "Code Smell", "Critical" ], [ "Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.", "Code Smell", "Critical" ], [ "Refactor this function to reduce its Cognitive Complexity from 51 to the 15 allowed.", "Code Smell", "Critical" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 42 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state. Instead, move this component definition out of the parent component “Stepper” and pass data as props.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state. Instead, move this component definition out of the parent component “Stepper” and pass data as props.", "Code Smell", "Major" ], [ "Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state. Instead, move this component definition out of the parent component “Stepper” and pass data as props.", "Code Smell", "Major" ], [ "Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state. Instead, move this component definition out of the parent component “Stepper” and pass data as props.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.", "Code Smell", "Critical" ], [ "Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed.", "Code Smell", "Critical" ], [ "Refactor this function to always return the same type.", "Code Smell", "Major" ], [ "This branch's code block is the same as the block for the branch on line 259.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 32 to the 15 allowed.", "Code Smell", "Critical" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Missing 'key' prop for element in iterator", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 52 to the 15 allowed.", "Code Smell", "Critical" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 94 to the 15 allowed.", "Code Smell", "Critical" ], [ "Refactor this function to reduce its Cognitive Complexity from 23 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 33 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 35 to the 15 allowed.", "Code Smell", "Critical" ], [ "React Hook 'useTranslation' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useNavigate' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useState' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useGetApproveRejectButtonState' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useState' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useEffect' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 28 to the 15 allowed.", "Code Smell", "Critical" ], [ "Remove this useless assignment to variable 'queryParams'.", "Code Smell", "Major" ], [ "Remove the declaration of the unused 'queryParams' variable.", "Code Smell", "Minor" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 92 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 44 to the 15 allowed.", "Code Smell", "Critical" ], [ "React Hook 'useTranslation' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useNavigate' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useState' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useGetApproveRejectButtonState' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useState' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useEffect' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 34 to the 15 allowed.", "Code Smell", "Critical" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 89 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "This branch's code block is the same as the block for the branch on line 303.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 61 to the 15 allowed.", "Code Smell", "Critical" ], [ "React Hook 'useTranslation' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useNavigate' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useState' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useGetApproveRejectButtonState' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useSelector' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useState' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useState' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "React Hook 'useEffect' is called in function 'index' that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word 'use'.", "Bug", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Remove this unused import of 'Search'.", "Code Smell", "Minor" ], [ "Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 29 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.", "Code Smell", "Critical" ], [ "Remove this commented out code.", "Code Smell", "Major" ], [ "Remove this useless assignment to variable 'currentPage'.", "Code Smell", "Major" ], [ "Remove the declaration of the unused 'currentPage' variable.", "Code Smell", "Minor" ], [ "Remove this useless assignment to variable 'handlePageChange'.", "Code Smell", "Major" ], [ "Remove the declaration of the unused 'handlePageChange' variable.", "Code Smell", "Minor" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor the code to avoid using this boolean literal.", "Code Smell", "Minor" ], [ "Refactor this function to reduce its Cognitive Complexity from 113 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 325 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Use the opposite operator (!==) instead.", "Code Smell", "Minor" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "'react' import is duplicated.", "Code Smell", "Minor" ], [ "'react' import is duplicated.", "Code Smell", "Minor" ], [ "Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Missing 'key' prop for element in iterator", "Code Smell", "Major" ], [ "Do not use Array index in keys", "Code Smell", "Major" ], [ "Remove this unused import of 'logOutUser'.", "Code Smell", "Minor" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 33 to the 15 allowed.", "Code Smell", "Critical" ], [ "This branch's code block is the same as the block for the branch on line 45.", "Code Smell", "Major" ], [ "Replace this if-then-else flow by a single return statement.", "Code Smell", "Minor" ], [ "Refactor this function to reduce its Cognitive Complexity from 30 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.", "Code Smell", "Critical" ], [ "Remove this unused import of 'useState'.", "Code Smell", "Minor" ], [ "Refactor this function to reduce its Cognitive Complexity from 55 to the 15 allowed.", "Code Smell", "Critical" ], [ "Remove this useless assignment to variable 'userRole'.", "Code Smell", "Major" ], [ "Remove the declaration of the unused 'userRole' variable.", "Code Smell", "Minor" ], [ "Remove this commented out code.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 40 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "'react' import is duplicated.", "Code Smell", "Minor" ], [ "Refactor this function to reduce its Cognitive Complexity from 280 to the 15 allowed.", "Code Smell", "Critical" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Extract this nested ternary operation into an independent statement.", "Code Smell", "Major" ], [ "Refactor this function to reduce its Cognitive Complexity from 32 to the 15 allowed.", "Code Smell", "Critical" ], [ "Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed.", "Code Smell", "Critical" ], [ "Use concise character class syntax '\\d' instead of '[0-9]'.", "Code Smell", "Minor" ], [ "Use concise character class syntax '\\d' instead of '[0-9]'.", "Code Smell", "Minor" ], [ "Unexpected missing generic font family", "Bug", "Major" ], [ "Extract the assignment of 'newObj[dimensionField.name]' from this expression.", "Code Smell", "Major" ], [ "Extract the assignment of 'newObj[dimensionField.name]' from this expression.", "Code Smell", "Major" ], [ "Remove this useless assignment to variable 'state'.", "Code Smell", "Major" ], [ "Introduce a new variable or use its initial value before reassigning 'state'.", "Bug", "Minor" ], [ "Remove this useless assignment to variable 'state'.", "Code Smell", "Major" ], [ "Introduce a new variable or use its initial value before reassigning 'state'.", "Bug", "Minor" ], [ "Remove this commented out code.", "Code Smell", "Major" ], [ "Duplicate key 'specs have been submitted successfully with Product ID'.", "Bug", "Major" ], [ "Duplicate key 'Product Id #'.", "Bug", "Major" ], [ "Duplicate key 'Brand Protection has been notified for further action'.", "Bug", "Major" ], [ "Duplicate key 'Product Management has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Brand Protection has been notified for further action'.", "Bug", "Major" ], [ "Duplicate key 'Supplier has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Supplier has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Please press ok to give your approval.'.", "Bug", "Major" ], [ "Duplicate key 'Agency has been notified for further action!'.", "Bug", "Major" ], [ "Duplicate key 'Supplier has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'specs have been submitted successfully with Product ID'.", "Bug", "Major" ], [ "Duplicate key 'Product Management has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Supplier has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Please write your reason of rejection and inform Mercedes-Benz AG'.", "Bug", "Major" ], [ "Duplicate key 'Supplier has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Please press ok to give your approval.'.", "Bug", "Major" ], [ "Duplicate key 'Supplier has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Germany'.", "Bug", "Major" ], [ "Duplicate key 'Brand Protection has been notified for further action'.", "Bug", "Major" ], [ "Duplicate key 'Product Management has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Supplier has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Please write your reason of rejection and inform'.", "Bug", "Major" ], [ "Duplicate key 'Supplier has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Supplier has been notified for further action.'.", "Bug", "Major" ], [ "Duplicate key 'Germany'.", "Bug", "Major" ] ] console.log(fa2.length); const fa3 = fa2.filter(e => e[2] !== 'Minor'); console.log(fa3.length); const fa4 = fa2.map(e => ([ ...e, e[0].includes('Refactor') ? 'Needs proper analysis to check on how the same task can be done while refactored to smaller lines of code without breaking the funcionality. This can be risky before the short period of Go Live. Also this is just a Code Smell' : e[0].includes('React Hook') ? 'Fix is primarily chaning the file name from index.js to something more suitable. However changing files few days before Go Live can mess up the links within the app and hence risk. Will have to done with proper investigation and testing' : e[0].includes('This branch') ? 'Needs proper investigation and thorough analysis as it can imapact other components associated with it' : 'Although this is a minor change, we are planning for a thorough refactoring of whole of our code base in the ppp-web-app sometime later after the first Go Live, as it will be time consuming and will require proper testing so that nothing is missed. This fix will be part of that and infact we will ensure no issues are left out then. So this is planned and will be taken later' ])) console.log(fa4);
Write, Run & Share Javascript code online using OneCompiler's JS online compiler for free. It's one of the robust, feature-rich online compilers for Javascript language. Getting started with the OneCompiler's Javascript editor is easy and fast. The editor shows sample boilerplate code when you choose language as Javascript and start coding.
Javascript(JS) is a object-oriented programming language which adhere to ECMA Script Standards. Javascript is required to design the behaviour of the web pages.
var readline = require('readline');
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
terminal: false
});
rl.on('line', function(line){
console.log("Hello, " + line);
});
Keyword | Description | Scope |
---|---|---|
var | Var is used to declare variables(old way of declaring variables) | Function or global scope |
let | let is also used to declare variables(new way) | Global or block Scope |
const | const is used to declare const values. Once the value is assigned, it can not be modified | Global or block Scope |
let greetings = `Hello ${name}`
const msg = `
hello
world!
`
An array is a collection of items or values.
let arrayName = [value1, value2,..etc];
// or
let arrayName = new Array("value1","value2",..etc);
let mobiles = ["iPhone", "Samsung", "Pixel"];
// accessing an array
console.log(mobiles[0]);
// changing an array element
mobiles[3] = "Nokia";
Arrow Functions helps developers to write code in concise way, it’s introduced in ES6.
Arrow functions can be written in multiple ways. Below are couple of ways to use arrow function but it can be written in many other ways as well.
() => expression
const numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
const squaresOfEvenNumbers = numbers.filter(ele => ele % 2 == 0)
.map(ele => ele ** 2);
console.log(squaresOfEvenNumbers);
let [firstName, lastName] = ['Foo', 'Bar']
let {firstName, lastName} = {
firstName: 'Foo',
lastName: 'Bar'
}
const {
title,
firstName,
lastName,
...rest
} = record;
//Object spread
const post = {
...options,
type: "new"
}
//array spread
const users = [
...adminUsers,
...normalUsers
]
function greetings({ name = 'Foo' } = {}) { //Defaulting name to Foo
console.log(`Hello ${name}!`);
}
greet() // Hello Foo
greet({ name: 'Bar' }) // Hi Bar
IF is used to execute a block of code based on a condition.
if(condition){
// code
}
Else part is used to execute the block of code when the condition fails.
if(condition){
// code
} else {
// code
}
Switch is used to replace nested If-Else statements.
switch(condition){
case 'value1' :
//code
[break;]
case 'value2' :
//code
[break;]
.......
default :
//code
[break;]
}
For loop is used to iterate a set of statements based on a condition.
for(Initialization; Condition; Increment/decrement){
//code
}
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while (condition) {
// code
}
Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.
do {
// code
} while (condition);
ES6 introduced classes along with OOPS concepts in JS. Class is similar to a function which you can think like kind of template which will get called when ever you initialize class.
class className {
constructor() { ... } //Mandatory Class method
method1() { ... }
method2() { ... }
...
}
class Mobile {
constructor(model) {
this.name = model;
}
}
mbl = new Mobile("iPhone");