shadowban-eu/TwitterShadowBanV2

View on GitHub
src/js/ui/Task.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function createTaskElement has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static createTaskElement(task) {
    const listItem = Task.template.firstElementChild.cloneNode(true);
    const header = listItem.querySelector('[data-task-component="header"]');
    const message = listItem.querySelector('[data-task-component="message"]');
    const description = listItem.querySelector('[data-task-component="description"]');
Severity: Minor
Found in src/js/ui/Task.js - About 1 hr to fix

    Function update has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      update(status, msg) {
        // icon
        const { icon } = this.components;
        switch (status) {
          case 'running':
    Severity: Minor
    Found in src/js/ui/Task.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status