adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function Sizzle has 108 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var Sizzle = function( selector, context, results, seed ) {
    results = results || [];
    context = context || document;

    var origContext = context;

    Function _init has 107 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function _init() {
    
            $cursorInfo         = $("#status-cursor");
            $fileInfo           = $("#status-file");
            $indentType         = $("#indent-type");
    Severity: Major
    Found in src/editor/EditorStatusBar.js - About 4 hrs to fix

      Function string has 107 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                      function string(x) {
                          var c, j, r = '', allowNewLine = false;
      
                          if (jsonmode && x !== '"') {
                              warningAt("Strings must use doublequote.",

        Function _doSaveAs has 107 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function _doSaveAs(doc, settings) {
                var origPath,
                    saveAsDefaultPath,
                    defaultName,
                    result = new $.Deferred();
        Severity: Major
        Found in src/document/DocumentCommandHandlers.js - About 4 hrs to fix

          File main.js has 343 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/extensions/default/HTMLCodeHints/main.js - About 4 hrs to fix

            File RefactoringUtils.js has 341 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*
            * Copyright (c) 2013 - 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/extensions/default/JavaScriptRefactoring/RefactoringUtils.js - About 4 hrs to fix

              File ServerUtils.js has 337 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*
               * Copyright (c) 2019 - present Adobe. 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/languageTools/LanguageClient/ServerUtils.js - About 4 hrs to fix

                Function _renderItem has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    ExtensionManagerView.prototype._renderItem = function (entry, info) {
                        // Create a Mustache context object containing the entry data and our helper functions.
                
                        // Start with the basic info from the given entry, either the installation info or the
                        // registry info depending on what we're listing.
                Severity: Major
                Found in src/extensibility/ExtensionManagerView.js - About 4 hrs to fix

                  Function _graphicsFilePresentInProject has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function _graphicsFilePresentInProject(isPresent) {
                  
                          if (!isPresent) {
                              return;
                          }
                  Severity: Major
                  Found in src/extensions/default/OpenWithExternalApplication/GraphicsFile.js - About 4 hrs to fix

                    Function getTagInfo has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function getTagInfo(editor, constPos, isHtmlMode) {
                            // We're going to be changing pos a lot, but we don't want to mess up
                            // the pos the caller passed in so we use extend to make a safe copy of it.
                            var pos = $.extend({}, constPos),
                                ctx = TokenUtils.getInitialContext(editor._codeMirror, pos),
                    Severity: Major
                    Found in src/language/HTMLUtils.js - About 4 hrs to fix

                      Function labelled has 101 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          blockstmt('switch', function () {
                              var t = nexttoken,
                                  g = false;
                              funct['(breakage)'] += 1;
                              advance('(');

                        File brackets.js has 335 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/brackets.js - About 4 hrs to fix

                          File NavigationProvider.js has 334 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*
                           * Copyright (c) 2017 - 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/extensions/default/NavigationAndHistory/NavigationProvider.js - About 4 hrs to fix

                            Function addMenuItem has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                Menu.prototype.addMenuItem = function (command, keyBindings, position, relativeID) {
                                    var menuID = this.id,
                                        id,
                                        $menuItem,
                                        menuItem,
                            Severity: Major
                            Found in src/command/Menus.js - About 4 hrs to fix

                              Consider simplifying this complex logical expression.
                              Open

                                          if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
                                              if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                                              inst.snapElements[i].snapping = false;
                                              continue;
                                          }

                                File Gruntfile.js has 333 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*
                                 * Copyright (c) 2013 - 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 Gruntfile.js - About 4 hrs to fix

                                  File DocumentManager.js has 332 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/document/DocumentManager.js - About 4 hrs to fix

                                    Function _loadProject has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _loadProject(rootPath, isUpdating) {
                                            var result = new $.Deferred(),
                                                startLoad = new $.Deferred();
                                    
                                            // Some legacy code calls this API with a non-canonical path
                                    Severity: Major
                                    Found in src/project/ProjectManager.js - About 3 hrs to fix

                                      Function defaultPrefilter has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function defaultPrefilter( elem, props, opts ) {
                                          /* jshint validthis: true */
                                          var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                                              anim = this,
                                              orig = {},
                                      Severity: Major
                                      Found in src/thirdparty/jquery-2.1.3.js - About 3 hrs to fix

                                        Function _addBinding has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _addBinding(commandID, keyBinding, platform, userBindings) {
                                                var key,
                                                    result = null,
                                                    normalized,
                                                    normalizedDisplay,
                                        Severity: Major
                                        Found in src/command/KeyBindingManager.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language