mumuki/mumuki-laboratory

View on GitHub
app/assets/javascripts/mumuki_laboratory/application/primary.js

Summary

Maintainability
A
0 mins
Test Coverage

Function onReady has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

    onReady() {
      mumuki.resize(this.onResize.bind(this));

      this._availableTabs.forEach((selector) => this._tabParagraphs(selector).contents().unwrap().wrapAll('<p>'));

Severity: Minor
Found in app/assets/javascripts/mumuki_laboratory/application/primary.js - About 1 hr to fix

    Function initialize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Invalid

        initialize() {
          super.initialize();
          this.$characterSpeechBubble = $('.mu-kids-character-speech-bubble');
          this.$characterSpeechBubbleNormal = this.$characterSpeechBubble.children('.mu-kids-character-speech-bubble-normal');
          this.$contextModalButton = new mumuki.Button($('.mu-kids-context .modal-footer button'));
    Severity: Minor
    Found in app/assets/javascripts/mumuki_laboratory/application/primary.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status