Ivankalachikov/frontend-project-lvl3

View on GitHub

Showing 2 of 4 total issues

Function app has 131 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const app = () => {
  const userLocale = navigator.languages && navigator.languages.length
    ? navigator.languages[0]
    : navigator.language;
  const i18n = i18next.createInstance({ lng: userLocale });
Severity: Major
Found in src/app.js - About 5 hrs to fix

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

    const renderPosts = (posts, openedPostsIds, i18n) => {
      const postsContainer = document.querySelector('.posts');
      postsContainer.innerHTML = '';
      const postsTitle = document.createElement('h2');
      const postsList = document.createElement('ul');
    Severity: Minor
    Found in src/render.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language