Showing 68 of 172 total issues
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function () {
var _ = React.DOM,
__ = this.gls;
return _.div({ className: 'main-component' },
- Create a ticketCreate a ticket
Function getTagsAvailable
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getTagsAvailable: function () {
var that = this,
_ = React.DOM,
__ = this.gls,
item_binding = that.getBinding('item'),
- Create a ticketCreate a ticket
Function render
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function () {
var _ = React.DOM,
__ = this.gls,
cx = React.addons.classSet,
preferences_binding = this.getBinding('preferences'),
- Create a ticketCreate a ticket
Function renderAlpaca
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderAlpaca: function () {
var that = this,
preferences_binding = this.getDefaultBinding(),
data_binding = this.getBinding('data'),
instance = preferences_binding.sub('instance_temp'),
- Create a ticketCreate a ticket
Function _r
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_r: function (obj) {
var namespace, that = this, key, arr = [];
if (obj) {
for (key in obj) {
- Create a ticketCreate a ticket
Function r
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function r(obj) {
var key, arr = [];
if (obj) {
for (key in obj) {
if (typeof obj[key] === "object") {
- Create a ticketCreate a ticket
Function render
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function () {
var that = this,
_ = React.DOM,
binding = this.getDefaultBinding(),
title = binding.get('metrics.title'),
- Create a ticketCreate a ticket
Function debounce
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
debounce: function(func, wait, immediate) {
var timeout, args, context, timestamp, result;
var later = function() {
var last = +new Date() - timestamp;
- Create a ticketCreate a ticket
Function init
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function () {
var that = this,
ctx = this.getMoreartyContext(),
defaultBinding = ctx.getBinding().sub('default'),
servicesBinding = ctx.getBinding().sub('services'),
- Create a ticketCreate a ticket
Function getComponent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getComponent:function (node) {
var components = this.components,
data_binding = this.getBinding('data'),
preferences_binding = this.getBinding('preferences'),
component,
- Create a ticketCreate a ticket
Function gls
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
gls: function (key, type) {
var default_language = this.getDefaultLang(),
languages_binding = this.getMoreartyContext().getBinding().sub('data.languages'),
index_lang = languages_binding.get().findIndex(function (lang) {
return lang.get('id') === default_language;
- Create a ticketCreate a ticket
Function r
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function r(obj) {
var key, arr = [];
if (obj) {
for (key in obj) {
if (typeof obj[key] === "object") {
- Create a ticketCreate a ticket
Function throttle
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
throttle: function(func, wait, options) {
var context, args, result;
var timeout = null;
var previous = 0;
options || (options = {});
- Create a ticketCreate a ticket
Function componentWillMount
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentWillMount: function () {
var that = this;
that.getBinding('data').addListener('devicesOnDashboard', function () {
if (that.isMounted()) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (obj[key].indexOf('namespaces') !== -1 && obj[key].split(':').length > 1) {
obj[key].split(',').forEach(function (val) {
namespace = that._getNamespace(val.split(':')[1], val.split(':')[2]) || [];
if (namespace) {
arr = arr.concat(namespace);
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (!obj[key].hasOwnProperty('toolbarSticky')) {
obj[key].toolbarSticky = true;
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (filtered.toArray().length > 0) {
namespace = filtered.toArray()[0].toJS();
if (namespace) { // check that it existsd in namespaces
arr = arr.concat(namespace.params.map(function (para) {
return para[val.split(':')[2]];
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (!obj[key].hasOwnProperty('helper')) {
obj[key].helper = '';
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (filtered.toArray().length > 0) {
namespace = filtered.toArray()[0].toJS();
if (namespace) { // check that it existsd in namespaces
arr = arr.concat(namespace.params.map(function (para) {
return para[val.split(':')[2]];
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return text;
- Create a ticketCreate a ticket