antimalware/manul

View on GitHub
src/log_analyzer/js/mime-types.js

Summary

Maintainability
D
2 days
Test Coverage

File mime-types.js has 970 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 Copyright (c) 2013 Gildas Lormeau. All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
Severity: Major
Found in src/log_analyzer/js/mime-types.js - About 2 days to fix

    Avoid deeply nested control flow statements.
    Open

                            if (typeof val == "string") {
                                mimeTypes[val] = type + "/" + subtype;
                            } else {
                                for (index = 0; index < val.length; index++) {
                                    mimeTypes[val[index]] = type + "/" + subtype;
    Severity: Major
    Found in src/log_analyzer/js/mime-types.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status