Reconmap/web-client

View on GitHub
src/components/ui/CommandTerminal.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Function connectTerminal has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        const connectTerminal = () => {
            const agentServiceProtocol = Configuration.isSecureTransportEnabled() ? 'wss' : 'ws';
            const agentServiceHostPort = Configuration.getAgentServiceHostPort();
            const webSocket = new WebSocket(`${agentServiceProtocol}://${agentServiceHostPort}/term?token=` + user.access_token);
            webSocket.binaryType = 'arraybuffer';
Severity: Minor
Found in src/components/ui/CommandTerminal.jsx - About 1 hr to fix

There are no issues that match your filters.

Category
Status