Z-Wave-Me/home-automation-ui

View on GitHub

Showing 68 of 172 total issues

Function Helpers has 123 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var Helpers = new function() {
        var Helpers = function() {

        };

Severity: Major
Found in js/helpers/js.js - About 4 hrs to fix

Function render has 115 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render: function () {
            var that = this,
                cx = React.addons.classSet,
                preferencesBinding = that.getBinding('preferences'),
                dataBinding = that.getBinding('data'),
Severity: Major
Found in js/modules/preferences/components/models/_widget.js - About 4 hrs to fix

Function render has 101 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render: function () {
            var that = this,
                _ = React.DOM,
                __ = this.gls,
                cx = React.addons.classSet,
Severity: Major
Found in js/modules/preferences/components/models/_profile.js - About 4 hrs to fix

Function render has 97 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render: function () {
            var _ = React.DOM,
                cx = React.addons.classSet,
                preferences_binding = this.getBinding('preferences'),
                item_binding = this.getDefaultBinding(),
Severity: Major
Found in js/modules/preferences/components/models/instance.js - About 3 hrs to fix

Function pull has 88 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        pull: function () {
            var that = this,
                functions = {},
                ctx = that.getMoreartyContext(),
                servicesBinding = ctx.getBinding().sub('services'),
Severity: Major
Found in js/mixins/sync/autosync.js - About 3 hrs to fix

Function componentDidMount has 84 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        componentDidMount: function () {
            var that = this,
                color = '#40e8f0',
                radius = 50,
                border = 15,
Severity: Major
Found in js/modules/widgets/common/level_selector.js - About 3 hrs to fix

Function render has 80 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render: function () {
            var _ = React.DOM,
                cx = React.addons.classSet;

            return _.div({onClick: this.stopPropagationAndPreventDefault, key:'picker-container', className: 'picker-container cp-small'},
Severity: Major
Found in js/modules/widgets/common/color_picker.js - About 3 hrs to fix

Function render has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render: function () {
            var that = this,
                cx = React.addons.classSet,
                preferencesBinding = that.getBinding('preferences'),
                dataBinding = that.getBinding('data'),
Severity: Major
Found in js/modules/preferences/components/models/_room.js - About 2 hrs to fix

File _widget.js has 274 lines of code (exceeds 250 allowed). Consider refactoring.
Open

define([
    // components
    '../common/_buttons_group',
    '../common/_inline_input',
    'mixins/data/data-layer',
Severity: Minor
Found in js/modules/preferences/components/models/_widget.js - About 2 hrs to fix

File color_picker.js has 267 lines of code (exceeds 250 allowed). Consider refactoring.
Open

define([
    // mixins
    'mixins/sync/sync-layer',
    'mixins/data/manipulation',
    'mixins/ui/color-manipulation',
Severity: Minor
Found in js/modules/widgets/common/color_picker.js - About 2 hrs to fix

Function render has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render: function () {
            var _ = React.DOM,
                binding = this.getDefaultBinding(),
                metrics_binding = binding.sub('metrics'),
                device_type = binding.get('deviceType'),
Severity: Major
Found in js/modules/widgets/components/base.js - About 2 hrs to fix

Function getModule has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getModule: function (_module) {
            var _ = React.DOM,
                __ = this.gls,
                defaults = _module.get('defaults'),
                id = _module.get('id'),
Severity: Major
Found in js/modules/preferences/components/modules_components/step1.js - About 2 hrs to fix

Function getNamespacesData has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            getNamespacesData: function (ctx, model) {
                var data_binding = ctx.getBinding().sub('data'),
                    namespaces = data_binding.sub('namespaces'),
                    options = model.options,
                    defaultObject = {
Severity: Major
Found in js/helpers/js.js - About 2 hrs to fix

Function getNamespacesData has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getNamespacesData: function (ctx, model) {
            var data_binding = ctx.getBinding().sub('data'),
                namespaces = data_binding.sub('namespaces'),
                options = model.options,
                defaultObject = {
Severity: Major
Found in js/mixins/data/manipulation.js - About 2 hrs to fix

Function render has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render: function () {
            var _ = React.DOM,
                __ = this.gls,
                preferences_binding = this.getDefaultBinding(),
                instance_binding = preferences_binding.sub('instance_temp'),
Severity: Major
Found in js/modules/preferences/components/modules_components/step2.js - About 2 hrs to fix

Function postSyncHandler has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                postSyncHandler: function (ctx, response, collection, xhr) {
                    var that = this,
                        remove_devices_ids,
                        dataBinding = ctx.getBinding().sub('data'),
                        devices_binding = dataBinding.sub('devices');
Severity: Major
Found in js/state/services.js - About 2 hrs to fix

Function componentDidMount has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        componentDidMount: function () {
            var that = this,
                color = '#40e8f0',
                radius = 20,
                border = 5,
Severity: Major
Found in js/modules/widgets/components/_thermostat.js - About 2 hrs to fix

Function getButtons has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getButtons: function () {
            var _ = React.DOM,
                __ = this.gls,
                binding = this.getDefaultBinding();

Severity: Major
Found in js/modules/preferences/components/common/_buttons_group.js - About 2 hrs to fix

Function render has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render: function () {
            var _ = React.DOM,
                __ = this.gls,
                cx = React.addons.classSet,
                binding = this.getDefaultBinding(),
Severity: Minor
Found in js/modules/core/components/header.js - About 2 hrs to fix

Function render has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render: function () {
            var _ = React.DOM,
                binding = this.getDefaultBinding();

            return _.div({
Severity: Minor
Found in js/modules/widgets/common/level_selector.js - About 1 hr to fix
Severity
Category
Status
Source
Language