DmitryKr2021/frontend-project-11

View on GitHub

Showing 2 of 2 total issues

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

const app = () => {
  const elements = {
    feedback: document.querySelector('.feedback'),
    form: document.querySelector('form'),
    input: document.getElementById('url-input'),
Severity: Major
Found in src/app.js - About 3 hrs to fix

    Function addPosts has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const addPosts = (elements, i18n, loaded, update) => {
      const createList = (post, postLink, postTitle, ul) => {
        const li = document.createElement('li');
        li.classList.add('list-group-item', 'border-0', 'border-end-0', 'd-flex', 'justify-content-between', 'align-items-start');
        li.innerHTML = `<a href= ${postLink}
    Severity: Minor
    Found in src/modules/view.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language