adobe/brackets

View on GitHub
src/editor/EditorManager.js

Summary

Maintainability
B
5 hrs
Test Coverage

File EditorManager.js has 326 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
Severity: Minor
Found in src/editor/EditorManager.js - About 3 hrs to fix

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

        function _openInlineWidget(editor, providers, defaultErrorMsg) {
            PerfUtils.markStart(PerfUtils.INLINE_WIDGET_OPEN);
    
            // Run through inline-editor providers until one responds
            var pos = editor.getCursorPos(),
    Severity: Minor
    Found in src/editor/EditorManager.js - About 1 hr to fix

      Function _createEditorForDocument has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          function _createEditorForDocument(doc, makeMasterEditor, container, range, editorOptions) {
      Severity: Minor
      Found in src/editor/EditorManager.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status