Showing 2,136 of 2,138 total issues
Function format
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
format: function(d, format) {
if (!d) return;
var leftPad = function(n) {
n = n.toString();
Function calculateTicks
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
calculateTicks: function(axis){
var o = axis.options, i, v;
axis.ticks = [];
if(o.ticks){
Function format
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
format: function(d, format) {
if (!d) return;
var leftPad = function(n) {
n = n.toString();
Function draw
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function(point) {
var p = [0,1].map(function(i){
return (this.size[i] + point[i] - this.pointer[i]);
}.bind(this));
Method find_call_to_block
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def find_call_to_block(block_name, file_name, line)
# line.match("(?<![_\"])#{method}(?![_\"])")
if(block_name.start_with?("BASE/"))
method = block_name.slice(/BASE\/(.*)/, 1)
Function validate_settings_form_help_page_settings
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function validate_settings_form_help_page_settings(oForm){
var helpPageOptions = $(oForm).select('input[name="admin_settings[help_type]"]');
var selectedOption = 'none selected';
var popupContent;
var linkPattern = /(^((http|https|ftp):\/\/){0,1}[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$)/ig;
Method index
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def index
authorize Portal::Offering, :api_index?
# policy_scope will limit offerings to ones available to given user.
# All the other filtering will filter this initial set of offerings.
offerings = policy_scope(Portal::Offering).includes(API::V1::Offering::INCLUDES_DEF)
Method visible?
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def visible?
#
# Admins or material admins can view all.
#
Method index
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def index
if ENV['DYNAMIC_ROBOTS_TXT'] == 'true'
lines = []
Method included
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.included(clazz)
## add before_save hooks
clazz.class_eval do
@@protected_publication_states=[:published]
Function constructor
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor (props: any) {
super(props);
this.state = {
counts: {},
// the current values of the filters
Function computeSize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
computeSize: function(width, height, innerSize) {
var innerWidth, innerHeight, outerWidth, outerHeight;
if (innerSize) {
outerWidth = width + this.borderSize.width;
outerHeight = height + this.borderSize.height;
Function lambda
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var lambda = function(date, part) {
switch (part) {
// date
case 'a': return i18n.WEEKDAYS_MEDIUM[date.getDay()];
case 'A': return i18n.WEEKDAYS[date.getDay()];
Function lambda
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var lambda = function(date, part) {
switch (part) {
// date
case 'a': return i18n.WEEKDAYS_MEDIUM[date.getDay()];
case 'A': return i18n.WEEKDAYS[date.getDay()];
Function request
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
request: function(url) {
this.url = url;
this.method = this.options.method;
var params = Object.isString(this.options.parameters) ?
this.options.parameters :
Function transitionTo
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function transitionTo(gallery,index) {
var oldCounter = counter;
if((counter >= gallery.length) || (index >= gallery.length)) { counter = 0; var e2b = true; }
else if((counter < 0) || (index < 0)) { counter = gallery.length-1; var b2e = true; }
Function extendYRangeIfNeededByBar
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
extendYRangeIfNeededByBar: function(axis){
if(axis.options.max == null){
var newmax = axis.max,
i, s, b, c,
stackedSums = {},
Function base64encode
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function base64encode(str) {
var out, i, len;
var c1, c2, c3;
len = str.length;
Function lambda
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var lambda = function(date, part) {
switch (part) {
// date
case 'a': return i18n.WEEKDAYS_MEDIUM[date.getDay()];
case 'A': return i18n.WEEKDAYS[date.getDay()];
Function lambda
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var lambda = function(date, part) {
switch (part) {
// date
case 'a': return i18n.WEEKDAYS_MEDIUM[date.getDay()];
case 'A': return i18n.WEEKDAYS[date.getDay()];