Showing 5,781 of 10,536 total issues
Consider simplifying this complex logical expression. Open
Open
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;}
Consider simplifying this complex logical expression. Open
Open
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;}
Consider simplifying this complex logical expression. Open
Open
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;}
Consider simplifying this complex logical expression. Open
Open
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;}
Consider simplifying this complex logical expression. Open
Open
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;}
Consider simplifying this complex logical expression. Open
Open
"pluralCat": function(n, opt_precision) { if (n % 10 == 1 && n % 100 != 11 && n % 100 != 71 && n % 100 != 91) { return PLURAL_CATEGORY.ONE; } if (n % 10 == 2 && n % 100 != 12 && n % 100 != 72 && n % 100 != 92) { return PLURAL_CATEGORY.TWO; } if ((n % 10 >= 3 && n % 10 <= 4 || n % 10 == 9) && (n % 100 < 10 || n % 100 > 19) && (n % 100 < 70 || n % 100 > 79) && (n % 100 < 90 || n % 100 > 99)) { return PLURAL_CATEGORY.FEW; } if (n != 0 && n % 1000000 == 0) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;}
Consider simplifying this complex logical expression. Open
Open
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;}
Consider simplifying this complex logical expression. Open
Open
if (isNaN(v) || v < axis.min || v > axis.max
// skip those lying on the axes if we got a border
|| (t == "full"
&& ((typeof bw == "object" && bw[axis.position] > 0) || bw > 0)
&& (v == axis.min || v == axis.max)))
Consider simplifying this complex logical expression. Open
Open
if (opts.mode == "time") {
axis.tickGenerator = function(axis) {
var ticks = [];
var d = dateGenerator(axis.min, opts);
Consider simplifying this complex logical expression. Open
Open
if (e.footable = a, a.options.filter.enabled === !0) {
if (t(a.table).data("filter") === !1) return;
a.timers.register("filter"), t(a.table).unbind(".filtering").bind({
"footable_initialized.filtering": function() {
var i = t(a.table),
Consider simplifying this complex logical expression. Open
Open
if (!T && b) {
var d = !0;
0 > b.x && ((b.x = 0), (d = !1));
b.x > J.x && ((b.x = J.x), (d = !1));
0 > b.y && ((b.y = 0), (d = !1));
Consider simplifying this complex logical expression. Open
Open
if (b.isItemFixed(a))
switch (c) {
case "disabled":
return d.fixed && d.fixed.disabled
? d.fixed.disabled
Consider simplifying this complex logical expression. Open
Open
if (!T && 1 === b.which) {
M[0].getBoundingClientRect();
b = a.getMousePos(b);
w.scrollMousePos || (w.scrollMousePos = b);
var c = M[0].offsetTop + (b.y - w.scrollMousePos.y);
Consider simplifying this complex logical expression. Open
Open
if (
(a[b.options.dataFields.hasChildren] ||
(a[b.options.dataFields.items] &&
0 !== a[b.options.dataFields.items].length)) &&
!(
Consider simplifying this complex logical expression. Open
Open
if ((c = A(d, a, c, r, e)) && !b.isItemFixed(d)) {
e = 0;
var h;
if (
r ||
Function _createHalfASCII
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _createHalfASCII = function(margin) {
var cellSize = 1;
margin = (typeof margin == 'undefined')? cellSize * 2 : margin;
var size = _this.getModuleCount() * cellSize + margin * 2;
Function qrKanji
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var qrKanji = function(data) {
var _mode = QRMode.MODE_KANJI;
var _data = data;
Function $StateRefDynamicDirective
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $StateRefDynamicDirective($uiRouter, $timeout) {
var $state = $uiRouter.stateService;
return {
restrict: 'A',
require: ['?^uiSrefActive', '?^uiSrefActiveEq'],
Function keyup
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, keyup: function (e) {
var blocked = false;
switch(e.keyCode) {
case 40: // down arrow
case 38: // up arrow
Function fallback
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fallback: function fallback() {
// This code should pass in IE7... :(
var messageElement;
this.element.className = "".concat(this.element.className, " dz-browser-not-supported");
var _iteratorNormalCompletion2 = true;