newscoop/JS-Scoopwriter

View on GitHub
app/scripts/services/SnippetTemplate.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createFromApiData has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        self.createFromApiData = function (data) {
            var template = new SnippetTemplate();

            ['id', 'name', 'enabled', 'favourite'].forEach(function (attr) {
                template[attr] = data[attr];
Severity: Minor
Found in app/scripts/services/SnippetTemplate.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status