Showing 836 of 1,675 total issues
Function hideFilters
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hideFilters: function(table, c) {
var $filterRow, $filterRow2, timer;
$(table)
.find('.' + ts.css.filterRow)
.addClass('hideme')
Function getConnections
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.getConnections = function(options, flat) {
if (!options) {
options = {};
} else if (options.constructor == String) {
options = { "scope": options };
Function detach
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.detach = function(connection, ignoreTarget, forceDetach, fireEvent, originalEvent) {
var idx = _ju.findWithFunction(self.connections, function(c) { return c.id == connection.id}),
actuallyDetached = false;
fireEvent = (fireEvent !== false);
if (idx >= 0) {
Function can_go_player_up
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fn.can_go_player_up = function(widget_grid_data) {
var p_bottom_row = widget_grid_data.row + widget_grid_data.size_y - 1;
var result = true;
var upper_rows = [];
var min_row = 10000;
Function select_or_unselect_all_permissions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function select_or_unselect_all_permissions(clicked_elt, cols_data_name, rows_data_name, rows_or_cols_name){
var group_id = $(clicked_elt).data(cols_data_name);
var permission_id = $(clicked_elt).data(rows_data_name);
var rows_or_cols = $(clicked_elt).data("rows_or_cols_"+rows_or_cols_name);
var at_least_one_selected = false;
Function scroll_in
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fn.scroll_in = function(axis, data) {
var dir_prop = dir_map[axis];
var area_size = 50;
var scroll_inc = 30;
Method validate_change_with_children
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def validate_change_with_children
begin
wbs_activity = WbsActivity.find(params[:id])
wbs_activity_root_element = WbsActivityElement.where('wbs_activity_id = ? and is_root = ?', wbs_activity.id, true).first
Function onClick
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onClick: function(id, opt){
if (this.root != id && !this.busy) {
this.busy = true;
this.root = id;
var that = this;
Function createLabelContainer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createLabelContainer: function(type, idLabel, dim) {
var NS = 'http://www.w3.org/2000/svg';
if(type == 'HTML' || type == 'Native') {
return $E('div', {
'id': idLabel,
Function onMouseMove
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onMouseMove: function(e, win, event) {
var label, evt = $.event.get(e, win);
if(this.pressed) {
this.moved = true;
this.config.onDragMove(this.pressed, event, evt);
Function setId
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.setId = function(el, newId, doNotSetAttribute) {
var id = el.constructor == String ? el : _currentInstance.getId(el),
sConns = _currentInstance.getConnections({source:id, scope:'*'}, true),
tConns = _currentInstance.getConnections({target:id, scope:'*'}, true);
Function selectEndpoints
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.selectEndpoints = function(params) {
params = params || {};
params.scope = params.scope || "*";
var noElementFilters = !params.element && !params.source && !params.target,
elements = noElementFilters ? "*" : prepareList(params.element),
Function _updateOffset
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateOffset = function(params) {
var timestamp = params.timestamp, recalc = params.recalc, offset = params.offset, elId = params.elId;
if (_suspendDrawing && !timestamp) timestamp = _suspendedAt;
if (!recalc) {
if (timestamp && timestamp === offsetTimestamps[elId])
Function opposite
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
opposite:function(axis) {
var pi = paintInfo,
idx = axis == "x" ? 0 : 1,
areInProximity = {
"x":function() {
Function _applyStyles
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_applyStyles = function(parent, node, style, dimensions, uiComponent) {
if (style.gradient) {
_updateGradient(parent, node, style, dimensions, uiComponent);
}
Function select_or_unselect_all
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function select_or_unselect_all(clicked_elt){
var mp_id = $(clicked_elt).data("mp_id");
var rows_or_cols = $(clicked_elt).data("rows_or_cols");
var at_least_one_selected = false;
var number_of_elt = 0;
Function register_widget
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fn.register_widget = function($el) {
var isDOM = $el instanceof jQuery;
var wgd = isDOM ? this.dom_to_coords($el) : $el;
var posChanged = false;
isDOM || ($el = wgd.el);
Function drawScale
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawScale() {
for (var i = 0; i < calculatedScale.steps; i++) {
//If the line object is there
if (config.scaleShowLine) {
ctx.beginPath();
Method send_feedback
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def send_feedback
# No authorize required since everyone can send a feedback if the feature have been enabled using the allow_feedback admin settings.
latest_record_version = Version.last.nil? ? Version.create(:comment => 'No update data has been save') : Version.last
@latest_repo_update = latest_record_version.repository_latest_update #Home::latest_repo_update
@latest_local_update = latest_record_version.local_latest_update
Method display_results_without_activities
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def display_results_without_activities(module_project)
res = String.new
pbs_project_element = @pbs_project_element || current_component
pemodule = Pemodule.find(module_project.pemodule.id)