patternweb/patternx

View on GitHub
src/search/search.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

function buildNode(name, state) {
  const result = state.searchResults.find(res => res.name === name);
  const width = 500;
  const height = 200;
  if (result) {
Severity: Minor
Found in src/search/search.js - About 1 hr to fix

    Function Search has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function Search(render, state, data) {
      return h("div", [
        h("input#search", {
          hook: {
            insert: init(data, state, render),
    Severity: Minor
    Found in src/search/search.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status