eiriksm/commit-a-day

View on GitHub
static/js/browser.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function controller has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  app.controller = function() {
    this.plugins = [];
    this.enabledPlugins = {};
    for (var prop in c.plugins) {
      if (c.plugins.hasOwnProperty(prop)) {
Severity: Major
Found in static/js/browser.js - About 3 hrs to fix

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

      app.view = function(ctrl) {
        return m('div.content', [
          m('div.choices', [
            m('h3', 'Optionally disable some plugins'),
            ctrl.plugins.map(function(n) {
    Severity: Minor
    Found in static/js/browser.js - About 1 hr to fix

      Function start has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          this.start = function() {
            var user = this.username();
            m.startComputation();
            ctrl.loading = true;
            ctrl.loadingText = ctrl.getLoadingText();
      Severity: Minor
      Found in static/js/browser.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status