nunsez/frontend-project-lvl3

View on GitHub

Showing 3 of 3 total issues

Function init has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const init = (i18n) => {
  const schema = yup.string().url();
  const state = {
    process: {
      // ready, getting, finished, failed
Severity: Minor
Found in src/init.js - About 1 hr to fix

    Function renderPosts has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const renderPosts = (collection) => {
        const header = document.createElement('h2');
        header.textContent = i18n.t('posts');
    
        const fragment = document.createDocumentFragment();
    Severity: Minor
    Found in src/view.js - About 1 hr to fix

      Function rssAddHandle has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const rssAddHandle = (watchedState, validate) => (evt) => {
        evt.preventDefault();
        watchedState.form.state = null;
      
        const formData = new FormData(evt.target);
      Severity: Minor
      Found in src/init.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language