Z-Wave-Me/home-automation-ui

View on GitHub

Showing 68 of 172 total issues

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

        render: function () {
            var that = this,
                _ = React.DOM,
                __ = this.gls,
                cx = React.addons.classSet,
Severity: Minor
Found in js/modules/widgets/components/_switch.js - About 1 hr to fix

Function getInitialState has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getInitialState: function () {
            return {
                show: false,
                options: { // pair option - command
                    "hasZoomIn": {
Severity: Minor
Found in js/modules/widgets/components/_camera.js - About 1 hr to fix

Function getCategory has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getCategory: function (category) {
            var that = this,
                _ = React.DOM,
                cx = React.addons.classSet,
                data_binding = this.getBinding('data'),
Severity: Minor
Found in js/modules/preferences/components/modules_components/step1.js - About 1 hr to fix

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

        render: function () {
            var _ = React.DOM,
                __ = this.gls,
                binding = this.getDefaultBinding(),
                preferencesBinding = this.getBinding('preferences'),
Severity: Minor
Found in js/modules/preferences/main.js - About 1 hr to fix

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

        render: function () {
            var _ = React.DOM,
                that = this,
                data_binding = this.getBinding('data'),
                instances_binding = data_binding.sub('instances'),
Severity: Minor
Found in js/modules/preferences/components/instances_menu.js - About 1 hr to fix

Function request has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        request: function (options) {
            var that = this,
                xhr = new XMLHttpRequest(),
                query = this._getQueryParams(window.location.search),
                apiPort = query.hasOwnProperty('port') ? query.port : window.location.port,
Severity: Minor
Found in js/mixins/sync/xhr.js - About 1 hr to fix

Function getModels has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getModels: function () {
            var that = this,
                _ = React.DOM,
                preferencesBinding = this.getBinding('preferences'),
                dataBinding = this.getBinding('data'),
Severity: Minor
Found in js/modules/preferences/components/common/_base_left_panel.js - About 1 hr to fix

Function removeHandler has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        removeHandler: function () {
            var that = this,
                item = that.getBinding('item'),
                items = that.getBinding('items'),
                index = items.get().indexOf(item.get()),
Severity: Minor
Found in js/modules/preferences/components/common/_buttons_group.js - About 1 hr to fix

Function success has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                        success: function (response, xhr) {
                            if (callback && typeof callback === 'function') {
                                callback(response);
                            }

Severity: Minor
Found in js/mixins/sync/autosync.js - About 1 hr to fix

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

        render: function () {
            var __ = React.DOM,
                binding = this.getDefaultBinding(),
                data_binding = this.getBinding('data'),
                primary_filter = binding.get('primaryFilter'),
Severity: Minor
Found in js/modules/widgets/main.js - About 1 hr to fix

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

        render: function () {
            var _ = React.DOM,
                __ = this.gls,
                notification = this.getBinding('notification'),
                index = this.props.index,
Severity: Minor
Found in js/modules/notifications/components/event.js - About 1 hr to fix

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

        render: function () {
            var that = this,
                _ = React.DOM,
                __ = this.gls,
                instanceId = this.getBinding('preferences').get('leftPanelItemSelectedId'),
Severity: Minor
Found in js/modules/preferences/components/models/_automation.js - About 1 hr to fix

Function getDevicesAvailable has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getDevicesAvailable: function () {
            var that = this,
                _ = React.DOM,
                __ = this.gls,
                devices_binding = that.getBinding('data').sub('devices'),
Severity: Minor
Found in js/modules/preferences/components/models/_profile.js - About 1 hr to fix

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

        render: function () {
            var _ = React.DOM,
                binding = this.getDefaultBinding(),
                title = binding.sub('metrics').get('title'),
                url = binding.sub('metrics').get('url');
Severity: Minor
Found in js/modules/widgets/components/_camera.js - About 1 hr to fix

Function getDevicesAvailable has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getDevicesAvailable: function () {
            var that = this,
                _ = React.DOM,
                __ = this.gls,
                devices_binding = that.getBinding('data').sub('devices'),
Severity: Minor
Found in js/modules/preferences/components/models/_room.js - About 1 hr to fix

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

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

Severity: Minor
Found in js/modules/core/main.js - About 1 hr to fix

Function save has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        save: function (options) {
            options = options || {};

            var that = this,
                model = options.model,
Severity: Minor
Found in js/mixins/sync/sync-layer.js - About 1 hr to fix

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

        render: function () {
            var binding = this.getDefaultBinding(),
                dataBinding = this.getBinding('data'),
                _ = React.DOM,
                __ = this.gls,
Severity: Minor
Found in js/modules/core/components/filters.js - About 1 hr to fix

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

        render: function () {
            var _ = React.DOM,
                binding = this.getDefaultBinding(),
                cx = React.addons.classSet,
                item_binding = binding,
Severity: Minor
Found in js/modules/widgets/components/_multilevel.js - About 1 hr to fix

Function saveHandler has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        saveHandler: function () {
            var that = this,
                item = this.getBinding('item'),
                items = this.getBinding('items');

Severity: Minor
Found in js/modules/preferences/components/common/_buttons_group.js - About 1 hr to fix
Severity
Category
Status
Source
Language