Showing 4 of 5 total issues
Function exports
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = (socket, controller) => { let speed = 0; let direction = 2; let balance = 0;
Function exports
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = (socket, controller) => { socket.token = ''; socket.on('authenticate', (cb) => { if (socket.token.length === 4 && socket.call !== undefined) {
Function exports
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = (socket) => { let attempts = 0; socket.on('connect', () => { debug('Connected');
Function exports
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
module.exports = (socket, controller) => { let speed = 0; let direction = 2; let balance = 0;
- Read upRead up