wasilak/notes-manager

View on GitHub
libs/web/static/app/components/note.js

Summary

Maintainability
A
0 mins
Test Coverage

Showing 0 of 2 total issues

Function controller has 5 arguments (exceeds 4 allowed). Consider refactoring.
Wontfix

controller: function ($scope, $rootScope, $stateParams, ApiService, $state) {
Severity: Minor
Found in libs/web/static/app/components/note.js - About 35 mins to fix

    Identical blocks of code found in 2 locations. Consider refactoring.
    Wontfix

    if (!result.success) {
    vm.note = vm.noteOriginal
    $rootScope.notifications.push('AIRewrite error (' + result.response.code + '): ' + result.response.message);
    } else {
    vm.note.response.title = result.response.rewritten.title;
    Severity: Major
    Found in libs/web/static/app/components/note.js and 1 other location - About 3 hrs to fix
    libs/web/static/app/components/new.js on lines 51..57

    There are no issues that match your filters.

    Category
    Status