Z-Wave-Me/home-automation-ui

View on GitHub
js/modules/widgets/components/_camera.js

Summary

Maintainability
A
3 hrs
Test Coverage

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 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

There are no issues that match your filters.

Category
Status