olegskl/invasive-kanji

View on GitHub
extension/js/framescript.js

Summary

Maintainability
B
5 hrs
Test Coverage

File framescript.js has 299 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*jslint browser: true, devel: true */
/*globals chrome, addEventHandlerCalledOnce, weightedEditDistance */

// -------------------------- Step-by-step procedure ---------------------------
// 1. Request a random dictionary entry from the background page;
Severity: Minor
Found in extension/js/framescript.js - About 3 hrs to fix

    Function addQuestion has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function addQuestion(question, callback) {
            var isFirstQuestion = !questions.length,
                nodes;
    
            // The question must be an object:
    Severity: Minor
    Found in extension/js/framescript.js - About 1 hr to fix

      Function stealFocus has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function stealFocus(callback) {
              // Callback might be an event object:
              if (typeof callback !== 'function') {
                  callback = noop;
              }
      Severity: Minor
      Found in extension/js/framescript.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status