cyclejs/cycle-core

View on GitHub
examples/basic/http-random-user/src/index.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function main has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function main(sources: {DOM: DOMSource, HTTP: HTTPSource}) {
  const getRandomUser$ = sources.DOM.select('.get-random').events('click')
    .map(() => {
      const randomNum = Math.round(Math.random() * 9) + 1;
      return {
Severity: Minor
Found in examples/basic/http-random-user/src/index.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status