File main.js
has 375 lines of code (exceeds 250 allowed). Consider refactoring.
$(document).ready(function() {
var table = null;
var socket = io.connect(window.location.protocol +
'//' + document.domain +
Function toggleDocumentation
has 53 lines of code (exceeds 25 allowed). Consider refactoring.
function toggleDocumentation(){
var navitem = $('#doctoggle').parent();
var activeClasses = 'col-md-6 col-lg-6 col-sm-6';
Function parse_matl_results
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
def parse_matl_results(output: str) -> List[Dict[str, str]]:
"""Convert MATL output to a custom data structure.
Takes all the output and parses it out into sections to pass back
to the client which indicates stderr/stdout/images, etc.
Function refresh_releases
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
def refresh_releases(
repository: str = Config.MATL_REPOSITORY,
source_root: pathlib.Path = Config.MATL_SOURCE_DIRECTORY,
) -> None:
"""Fetch new release information from GitHub and update local database."""
Function process_message
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
def process_message(self, message: str) -> None:
"""Append a message to be sent back to the user."""
print(message)
if message == "[PAUSE]":