Showing 5,781 of 10,536 total issues
Consider simplifying this complex logical expression. Open
Open
if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || el.attr('target'))) {
// HACK: This is to allow ng-clicks to be processed before the transition is initiated:
var transition_1 = $timeout(function () {
if (!el.attr('disabled')) {
$state.go(target.uiState, target.uiStateParams, target.uiStateOpts);
Function MessageFormatParser
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function MessageFormatParser(text, startIndex, $parse, pluralCat, stringifier,
mustHaveExpression, trustedContext, allOrNothing) {
Consider simplifying this complex logical expression. Open
Open
"pluralCat": function(n, opt_precision) { var vf = getVF(n, opt_precision); if (n % 10 == 0 || n % 100 >= 11 && n % 100 <= 19 || vf.v == 2 && vf.f % 100 >= 11 && vf.f % 100 <= 19) { return PLURAL_CATEGORY.ZERO; } if (n % 10 == 1 && n % 100 != 11 || vf.v == 2 && vf.f % 10 == 1 && vf.f % 100 != 11 || vf.v != 2 && vf.f % 10 == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
Consider simplifying this complex logical expression. Open
Open
"pluralCat": function(n, opt_precision) { var vf = getVF(n, opt_precision); if (n % 10 == 0 || n % 100 >= 11 && n % 100 <= 19 || vf.v == 2 && vf.f % 100 >= 11 && vf.f % 100 <= 19) { return PLURAL_CATEGORY.ZERO; } if (n % 10 == 1 && n % 100 != 11 || vf.v == 2 && vf.f % 10 == 1 && vf.f % 100 != 11 || vf.v != 2 && vf.f % 10 == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
Consider simplifying this complex logical expression. Open
Open
if (isNaN(kval)) {
(kc !== 13) // enter
&& (kc !== 8) // bs
&& (kc !== 9) // tab
Function $get
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce, $browser) {
Function plotPoints
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function plotPoints(datapoints, radius, fillStyle, offset, shadow, axisx, axisy, symbol) {
Consider simplifying this complex logical expression. Open
Open
if (series[i].bars.horizontal ?
(mx <= Math.max(b, x) && mx >= Math.min(b, x) &&
my >= y + barLeft && my <= y + barRight) :
(mx >= x + barLeft && mx <= x + barRight &&
my >= Math.min(b, y) && my <= Math.max(b, y)))
Consider simplifying this complex logical expression. Open
Open
if (r.raise(s.rowDetailUpdating, {
row: i,
detail: o
}), i.find("> td:hidden").each(function() {
var t = e(this).index(),
Consider simplifying this complex logical expression. Open
Open
if ((u = za(a, c + b.options.indent, u, e))) {
e = 0;
var d;
if (b.isItemExpanded(a)) {
var h = a[b.options.dataFields.items];
Function export
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def export(report,
Function generate_excel
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def generate_excel(report,
Consider simplifying this complex logical expression. Open
Open
if "child_space" not in report.keys() or "energy_category_names" not in report['child_space'].keys() or \
len(report['child_space']["energy_category_names"]) == 0 \
or 'child_space_names_array' not in report['child_space'].keys() \
or report['child_space']['energy_category_names'] is None \
or len(report['child_space']['child_space_names_array']) == 0 \
Consider simplifying this complex logical expression. Open
Open
if 'values_saving' not in reporting_period_data.keys() or \
reporting_period_data['values_saving'] is None or \
len(reporting_period_data['values_saving']) == 0 or \
'timestamps' not in reporting_period_data.keys() or \
reporting_period_data['timestamps'] is None or \
Function generate_excel
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def generate_excel(report,
Function generate_excel
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def generate_excel(report,
Function export
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def export(report,
Function generate_excel
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def generate_excel(report,
Function generate_excel
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def generate_excel(report,
Function generate_excel
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def generate_excel(report,