wasilak/notes-manager

View on GitHub

Showing 67 of 74 total issues

File markdownlint-0.27.0.min.js has 3567 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! markdownlint 0.27.0 https://github.com/DavidAnson/markdownlint @license MIT */
var markdownlint;
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
 
 
Severity: Major
Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 1 wk to fix

    File highlight-11.8.0.min.js has 1160 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
    Highlight.js v11.8.0 (git: 65687a907b)
    (c) 2006-2023 undefined and other contributors
    License: BSD-3-Clause
    */
    Severity: Major
    Found in libs/web/static/css/libs/highlight-11.8.0.min.js - About 2 days to fix

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      G;Z(e,e.begin,{key:"beginScope"}),e.begin=h(e.begin,{joinWith:""})}})(e),(e=>{
      if(Array.isArray(e.end)){
      if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
      G
      ;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"),
      Severity: Major
      Found in libs/web/static/css/libs/highlight-11.8.0.min.js and 1 other location - About 5 hrs to fix
      libs/web/static/css/libs/highlight-11.8.0.min.js on lines 115..119

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      }),(e=>{if(Array.isArray(e.begin)){
      if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
      G
      ;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"),
      G;Z(e,e.begin,{key:"beginScope"}),e.begin=h(e.begin,{joinWith:""})}})(e),(e=>{
      Severity: Major
      Found in libs/web/static/css/libs/highlight-11.8.0.min.js and 1 other location - About 5 hrs to fix
      libs/web/static/css/libs/highlight-11.8.0.min.js on lines 119..124

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      return $http({
      cache: false,
      url: url,
      method: 'PUT',
      headers: {
      Severity: Major
      Found in libs/web/static/app/services/api.js and 1 other location - About 4 hrs to fix
      libs/web/static/app/services/api.js on lines 82..106

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      return $http({
      cache: false,
      url: url,
      method: 'POST',
      headers: {
      Severity: Major
      Found in libs/web/static/app/services/api.js and 1 other location - About 4 hrs to fix
      libs/web/static/app/services/api.js on lines 113..137

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      },m=[b,c,s,t,e.C_BLOCK_COMMENT_MODE,l,o],p={variants:[{begin:/=/,end:/;/},{
      begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
      keywords:u,contains:m.concat([{begin:/\(/,end:/\)/,keywords:u,
      contains:m.concat(["self"]),relevance:0}]),relevance:0},_={className:"function",
      Severity: Major
      Found in libs/web/static/css/libs/highlight-11.8.0.min.js and 1 other location - About 3 hrs to fix
      libs/web/static/css/libs/highlight-11.8.0.min.js on lines 444..447

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      },b=[c,s,t,e.C_BLOCK_COMMENT_MODE,l,o],m={variants:[{begin:/=/,end:/;/},{
      begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
      keywords:u,contains:b.concat([{begin:/\(/,end:/\)/,keywords:u,
      contains:b.concat(["self"]),relevance:0}]),relevance:0},p={
      Severity: Major
      Found in libs/web/static/css/libs/highlight-11.8.0.min.js and 1 other location - About 3 hrs to fix
      libs/web/static/css/libs/highlight-11.8.0.min.js on lines 485..488

      Consider simplifying this complex logical expression.
      Open

      if (
      // Allow <...> to avoid reporting non-bare links
      !(prefix.endsWith("<") && postfix.startsWith(">")) &&
      // Allow >...</ to avoid reporting <code>...</code>
      !(prefix.endsWith(">") && postfix.startsWith("</")) &&
      Severity: Critical
      Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 3 hrs to fix

        Consider simplifying this complex logical expression.
        Open

        if ((includeCodeBlocks || !inCode) &&
        (includeTables || !inTable) &&
        (includeHeadings || !isHeading) &&
        !includesSorted(definitionLineIndices, lineIndex) &&
        (strict ||
        Severity: Critical
        Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 2 hrs to fix

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

          }],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
          keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
          },contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:"string"}),{
          className:"string",begin:/<.*?>/},t,e.C_BLOCK_COMMENT_MODE]},d={
          Severity: Major
          Found in libs/web/static/css/libs/highlight-11.8.0.min.js and 1 other location - About 2 hrs to fix
          libs/web/static/css/libs/highlight-11.8.0.min.js on lines 471..474

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

          }],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
          keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
          },contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:"string"}),{
          className:"string",begin:/<.*?>/},t,e.C_BLOCK_COMMENT_MODE]},d={
          Severity: Major
          Found in libs/web/static/css/libs/highlight-11.8.0.min.js and 1 other location - About 2 hrs to fix
          libs/web/static/css/libs/highlight-11.8.0.min.js on lines 434..437

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

          match:/\batomic_[a-z]{3,6}\b/}]},o={className:"string",variants:[{
          begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
          begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
          end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
          begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={
          Severity: Major
          Found in libs/web/static/css/libs/highlight-11.8.0.min.js and 1 other location - About 2 hrs to fix
          libs/web/static/css/libs/highlight-11.8.0.min.js on lines 462..466

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

          className:"type",begin:"\\b[a-z\\d_]*_t\\b"},o={className:"string",variants:[{
          begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
          begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
          end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
          begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={
          Severity: Major
          Found in libs/web/static/css/libs/highlight-11.8.0.min.js and 1 other location - About 2 hrs to fix
          libs/web/static/css/libs/highlight-11.8.0.min.js on lines 425..429

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

          relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,
          keywords:u,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,o,l,s,{begin:/\(/,
          end:/\)/,keywords:u,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,o,l,s]
          }]},s,t,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:u,
          Severity: Major
          Found in libs/web/static/css/libs/highlight-11.8.0.min.js and 1 other location - About 2 hrs to fix
          libs/web/static/css/libs/highlight-11.8.0.min.js on lines 492..496

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

          begin:/:/,endsWithParent:!0,contains:[o,l]},{relevance:0,match:/,/},{
          className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,
          contains:[t,e.C_BLOCK_COMMENT_MODE,o,l,s,{begin:/\(/,end:/\)/,keywords:u,
          relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,o,l,s]}]
          },s,t,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",
          Severity: Major
          Found in libs/web/static/css/libs/highlight-11.8.0.min.js and 1 other location - About 2 hrs to fix
          libs/web/static/css/libs/highlight-11.8.0.min.js on lines 451..454

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          {
          "names": ["MD049", "emphasis-style"],
          "description": "Emphasis style should be consistent",
          "tags": ["emphasis"],
          "function": function MD049(params, onError) {
          Severity: Major
          Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js and 1 other location - About 1 hr to fix
          libs/web/static/css/libs/markdownlint-0.27.0.min.js on lines 4790..4798

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          {
          "names": ["MD050", "strong-style"],
          "description": "Strong style should be consistent",
          "tags": ["emphasis"],
          "function": function MD050(params, onError) {
          Severity: Major
          Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js and 1 other location - About 1 hr to fix
          libs/web/static/css/libs/markdownlint-0.27.0.min.js on lines 4781..4789

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          filterTokens(params, "table_open", (token) => {
          for (let i = token.map[0]; i < token.map[1]; i++) {
          lineMetadata[i][4] = true;
          }
          });
          Severity: Major
          Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js and 1 other location - About 1 hr to fix
          libs/web/static/css/libs/markdownlint-0.27.0.min.js on lines 321..325

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          filterTokens(params, "code_block", (token) => {
          for (let i = token.map[0]; i < token.map[1]; i++) {
          lineMetadata[i][2] = true;
          }
          });
          Severity: Major
          Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js and 1 other location - About 1 hr to fix
          libs/web/static/css/libs/markdownlint-0.27.0.min.js on lines 326..330
          Severity
          Category
          Status
          Source
          Language