adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function exports has 180 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (grunt) {

    var _       = require("lodash"),
        build   = require("./build")(grunt),
        common  = require("./lib/common")(grunt),        
Severity: Major
Found in tasks/npm-install.js - About 7 hrs to fix

    Function _makeHighlightDiv has 179 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            _makeHighlightDiv: function (element, doAnimation) {
                var elementBounds = element.getBoundingClientRect(),
                    highlight = window.document.createElement("div"),
                    elementStyling = window.getComputedStyle(element),
                    transitionDuration = parseFloat(elementStyling.getPropertyValue('transition-duration')),
    Severity: Major
    Found in src/LiveDevelopment/Agents/RemoteFunctions.js - About 7 hrs to fix

      File FindReplace.js has 462 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/search/FindReplace.js - About 7 hrs to fix

        File MultiRangeInlineEditor.js has 459 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/MultiRangeInlineEditor.js - About 7 hrs to fix

          File LiveDevMultiBrowser.js has 459 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/LiveDevelopment/LiveDevMultiBrowser.js - About 7 hrs to fix

            File FindInFilesDomain.js has 457 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*
             * Copyright (c) 2015 - 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/search/node/FindInFilesDomain.js - About 7 hrs to fix

              Function _getBlockCommentPrefixSuffixEdit has 174 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _getBlockCommentPrefixSuffixEdit(editor, prefix, suffix, linePrefixes, sel, selectionsToTrack, command) {
                      var doc            = editor.document,
                          ctx            = TokenUtils.getInitialContext(editor._codeMirror, {line: sel.start.line, ch: sel.start.ch}),
                          selEndIndex    = editor.indexFromPos(sel.end),
                          lineExp        = _createLineExpressions(linePrefixes, prefix, suffix),
              Severity: Major
              Found in src/editor/EditorCommandHandlers.js - About 6 hrs to fix

                File unittests.js has 455 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/StaticServer/unittests.js - About 6 hrs to fix

                  File jquery.ui.autocomplete.js has 455 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*!
                   * jQuery UI Autocomplete @VERSION
                   *
                   * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
                   * Dual licensed under the MIT or GPL Version 2 licenses.

                    Function support has 172 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    jQuery.support = (function() {
                    
                        var support,
                            all,
                            a,

                      Function init has 171 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function init(domainManager) {
                          if (!domainManager.hasDomain("extensionManager")) {
                              domainManager.registerDomain("extensionManager", {major: 0, minor: 1});
                          }
                          domainManager.registerCommand(
                      Severity: Major
                      Found in src/extensibility/node/ExtensionManagerDomain.js - About 6 hrs to fix

                        File ExtensionManagerDialog.js has 451 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/extensibility/ExtensionManagerDialog.js - About 6 hrs to fix

                          Function open has 168 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              FindBar.prototype.open = function () {
                                  var self = this;
                          
                                  // Normally, creating a new Find bar will simply cause the old one to close
                                  // automatically. This can cause timing issues because the focus change might
                          Severity: Major
                          Found in src/search/FindBar.js - About 6 hrs to fix

                            File main.js has 445 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/UrlCodeHints/main.js - About 6 hrs to fix

                              Function exports has 166 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              module.exports = function( grunt ) {
                              
                              var path = require( "path" );
                              
                              grunt.registerMultiTask( "copy", "Copy files to destination folder and replace @VERSION with pkg.version", function() {

                                File CodeInspection.js has 441 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/language/CodeInspection.js - About 6 hrs to fix

                                  Function _generateHTML has 163 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _generateHTML: function(inst) {
                                          var today = new Date();
                                          today = this._daylightSavingAdjust(
                                              new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time
                                          var isRTL = this._get(inst, 'isRTL');

                                    File jquery.ui.position.js has 437 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /*!
                                     * jQuery UI Position @VERSION
                                     *
                                     * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
                                     * Dual licensed under the MIT or GPL Version 2 licenses.

                                      File strings.js has 435 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      /*
                                       * Copyright (c) 2014 - 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/nls/hr/strings.js - About 6 hrs to fix

                                        Function position has 161 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        $.fn.position = function( options ) {
                                            if ( !options || !options.of ) {
                                                return _position.apply( this, arguments );
                                            }
                                        
                                        
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language