crowbar/crowbar-core

View on GitHub

Showing 6,062 of 6,062 total issues

Function insertNode has 9 arguments (exceeds 4 allowed). Consider refactoring.
Open

  NodeList.prototype.insertNode = function(role, id, alias, admin, platform, platform_version, cluster, remotes, initial) {
Severity: Major
Found in crowbar_framework/vendor/assets/javascripts/jquery/nodeList.js - About 1 hr to fix

Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    fix: function( event ) {
        if ( event[ jQuery.expando ] ) {
            return event;
        }

Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/jquery.js - About 1 hr to fix

Function onKeyDown has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function onKeyDown(e) {
      if (!focused) onFocus();

      var code = e.e.keyCode;
      // IE does strange things with escape.

Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    finish: function( type ) {
        if ( type !== false ) {
            type = type || "fx";
        }
        return this.each(function() {
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/jquery.js - About 1 hr to fix

Function _initSource has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _initSource: function() {
        var array, url,
            that = this;
        if ( $.isArray(this.options.source) ) {
            array = this.options.source;
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/ui.js - About 1 hr to fix

Function _create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _create: function() {
        var selectees,
            that = this;

        this.element.addClass("ui-selectable");
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/ui.js - About 1 hr to fix

Function _create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _create: function() {
        this.originalCss = {
            display: this.element[0].style.display,
            width: this.element[0].style.width,
            minHeight: this.element[0].style.minHeight,
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/ui.js - About 1 hr to fix

Function _createWidget has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createWidget: function( options, element ) {
        element = $( element || this.defaultElement || this )[ 0 ];
        this.element = $( element );
        this.uuid = uuid++;
        this.eventNamespace = "." + this.widgetName + this.uuid;
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/ui.js - About 1 hr to fix

Function highlight has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.effects.effect.highlight = function( o, done ) {
    var elem = $( this ),
        props = [ "backgroundImage", "backgroundColor", "opacity" ],
        mode = $.effects.setMode( elem, o.mode || "show" ),
        animation = {
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/ui.js - About 1 hr to fix

Function transfer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.effects.effect.transfer = function( o, done ) {
    var elem = $( this ),
        target = $( o.to ),
        targetFixed = target.css( "position" ) === "fixed",
        body = $("body"),
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/ui.js - About 1 hr to fix

Function values has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    values: function( index, newValue ) {
        var vals,
            newValues,
            i;

Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/ui.js - About 1 hr to fix

Function puff has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.effects.effect.puff = function( o, done ) {
    var elem = $( this ),
        mode = $.effects.setMode( elem, o.mode || "hide" ),
        hide = mode === "hide",
        percent = parseInt( o.percent, 10 ) || 150,
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/ui.js - About 1 hr to fix

Function invalidEntry has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  DynamicTable.prototype.invalidEntry = function() {
    var optionals = this.options.optional.toString().split(',');
    var isInvalid = false;
    var invalidInput = false

Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/jquery/dynamicTable.js - About 1 hr to fix

Function previewDefault has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        previewDefault: function (file, previewId, isDisabled) {
            if (!this.showPreview) {
                return;
            }
            var self = this, frameClass = '', fname = file ? file.name : '',
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/bootstrap/fileinput.js - About 1 hr to fix

Function renderFileActions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        renderFileActions: function (showUpload, showDelete, disabled, url, key) {
            if (!showUpload && !showDelete) {
                return '';
            }
            var self = this,
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/bootstrap/fileinput.js - About 1 hr to fix

Function replaceStack has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    replaceStack: function(callback) {
      var prefix = '',
          inline = this.isInline(),
          stack;

Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/misc/handlebars.js - About 1 hr to fix

Function checkPosition has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Affix.prototype.checkPosition = function () {
    if (!this.$element.is(':visible')) return

    var height       = this.$element.height()
    var offset       = this.options.offset
Severity: Minor
Found in crowbar_framework/vendor/assets/javascripts/bootstrap/affix.js - About 1 hr to fix

Method upgrade_controller_clusters has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def upgrade_controller_clusters
        ::Crowbar::UpgradeStatus.new.save_substep(:controller_nodes, :running)

        return upgrade_controllers_disruptive if upgrade_mode == :normal

Severity: Minor
Found in crowbar_framework/app/models/api/upgrade.rb - About 1 hr to fix

Method meta_tags has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def meta_tags
    [].tap do |output|
      output.push tag(
        :meta,
        charset: "utf-8"
Severity: Minor
Found in crowbar_framework/app/helpers/application_helper.rb - About 1 hr to fix

Method set_state has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def set_state(state)
    # use the real transition function for this
    cb = CrowbarService.new
    result = cb.transition "default", @node.name, state

Severity: Minor
Found in crowbar_framework/app/models/node.rb - About 1 hr to fix
Severity
Category
Status
Source
Language