src/search/search.js
Function buildNode
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildNode(name, state) {
const result = state.searchResults.find(res => res.name === name);
const width = 500;
const height = 200;
if (result) {
Function Search
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Search(render, state, data) {
return h("div", [
h("input#search", {
hook: {
insert: init(data, state, render),