Showing 6,062 of 6,062 total issues
Function _makeDraggable
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_makeDraggable: function() {
var that = this,
options = this.options;
function filteredUi( ui ) {
- Create a ticketCreate a ticket
Function _createButtons
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createButtons: function() {
var that = this,
buttons = this.options.buttons;
// if we already have a button pane, remove it
- Create a ticketCreate a ticket
Function refreshPositions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshPositions: function(fast) {
//This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
if(this.offsetParent && this.helper) {
this.offset.parent = this._getParentOffset();
- Create a ticketCreate a ticket
Function _mouseStart
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function(event) {
var curleft, curtop, cursor,
o = this.options,
iniPos = this.element.position(),
- Create a ticketCreate a ticket
Function _determineButtonType
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_determineButtonType: function() {
var ancestor, labelSelector, checked;
if ( this.element.is("[type=checkbox]") ) {
this.type = "checkbox";
- Create a ticketCreate a ticket
Function growlUI
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.growlUI = function(title, message, timeout, onClose) {
var $m = $('<div class="growlUI"></div>');
if (title) $m.append('<h1>'+title+'</h1>');
if (message) $m.append('<h2>'+message+'</h2>');
if (timeout === undefined) timeout = 3000;
- Create a ticketCreate a ticket
Function open
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function( event ) {
var that = this,
target = $( event ? event.target : this.element )
// we need closest here due to mouseover bubbling,
// but always pointing at the same event target
- Create a ticketCreate a ticket
Function to
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
spaces.hsla.to = function ( rgba ) {
if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
return [ null, null, null, rgba[ 3 ] ];
}
var r = rgba[ 0 ] / 255,
- Create a ticketCreate a ticket
Function close
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
close: function( event ) {
var that = this,
target = $( event ? event.currentTarget : this.element ),
tooltip = this._find( target );
- Create a ticketCreate a ticket
Function show
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tab.prototype.show = function () {
var $this = this.element
var $ul = $this.closest('ul:not(.dropdown-menu)')
var selector = $this.data('target')
- Create a ticketCreate a ticket
Method upgradable_elements_of_proposals
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def upgradable_elements_of_proposals(proposals)
to_upgrade = []
# First find out the nodes with compute role, for later checks
compute_nodes = {}
- Create a ticketCreate a ticket
Method delete_upgrade_scripts
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def delete_upgrade_scripts(node)
return if node.admin?
scripts_to_delete = [
"prepare-repositories",
- Create a ticketCreate a ticket
Method upgrade_first_cluster_node
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def upgrade_first_cluster_node(node, other_node)
return true if node.upgraded?
node_api = Api::Node.new node.name
other_node_api = Api::Node.new other_node.name
node_api.save_node_state("controller", "upgrading")
- Create a ticketCreate a ticket
Method skip_unchanged_node?
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def skip_unchanged_node?(node_name, old_role, new_role)
# if old_role is nil, then we are applying the barclamp for the first time
return false if old_role.nil?
# if the servers have changed, we need to apply
- Create a ticketCreate a ticket
Method process_proposal!
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def process_proposal!(proposal)
{}.tap do |result|
result[:barclamp] = proposal.barclamp
unless proposal.name == "default"
- Create a ticketCreate a ticket
Method enable_repository
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def enable_repository(platform, arch, repo)
repo_object = Crowbar::Repository.where(platform: platform, arch: arch, repo: repo).first
if repo_object.nil?
message = "#{repo} repository for #{platform} / #{arch} does not exist."
Rails.logger.debug(message)
- Create a ticketCreate a ticket
Method prepare_nodes_for_crowbar_upgrade
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def prepare_nodes_for_crowbar_upgrade
proposal = Proposal.find_by(barclamp: "crowbar", name: "default")
# To all nodes, add a new role which prepares them for the upgrade
nodes_to_upgrade = []
- Create a ticketCreate a ticket
Method hit
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def hit
name = params[:name] || params[:id]
machine = Node.find_by_name(name)
respond_to do |format|
- Create a ticketCreate a ticket
Method save_archive
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def save_archive
if file.nil?
errors.add_on_blank :file
return false
end
- Create a ticketCreate a ticket
Method restarts_post
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def restarts_post
params.require(:node)
node_name = params[:node]
cookbook = params[:cookbook]
- Create a ticketCreate a ticket