wasilak/notes-manager

View on GitHub

Showing 36 of 74 total issues

Avoid deeply nested control flow statements.
Open

if (!matchString.startsWith("!")) {
pendingContents.push({
"content": matchText,
"contentLineIndex": lineIndex,
"contentIndex": referenceIndex + 1,
Severity: Major
Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 45 mins to fix

    Function handleRunEnd has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function handleRunEnd(line, lineIndex, contextLength, match, matchIndex, inTable) {
    Severity: Minor
    Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

      if (shortcutLink) {
      // Track separately due to ambiguity in "text [text] text"
      const shortcutData = shortcuts.get(label) || [];
      shortcutData.push(referenceDatum);
      shortcuts.set(label, shortcutData);
      Severity: Major
      Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

        if (!nestingStyles[nesting]) {
        nestingStyles[nesting] =
        (itemStyle === nestingStyles[nesting - 1]) ?
        differentItemStyle[itemStyle] :
        itemStyle;
        Severity: Major
        Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

          if (!listItemNesting || (fullMatch[fullMatch.length - 1] === ">")) {
          addErrorContext(onError, lineNumber + i, line, null, null, [1, fullMatch.length], {
          "editColumn": blockquoteLength + 1,
          "deleteCount": spaceLength - 1
          });
          Severity: Major
          Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

            if (match) {
            context = match[0];
            range = [match.index + 1, match[0].length];
            }
            Severity: Major
            Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

              if (topLevel) {
              // Calculate line index
              while (lineOffsets[lineIndex + 1] <= referenceindex) {
              lineIndex++;
              }
              Severity: Major
              Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 45 mins to fix

                Consider simplifying this complex logical expression.
                Open

                if (!hasError &&
                ((extraHeadings > 1) ||
                ((extraHeadings === 1) && (requiredHeadings[i] !== "*"))) &&
                (anyHeadings || !requiredHeadings.every((heading) => heading === "*"))) {
                addErrorContext(onError, params.lines.length, requiredHeadings[i]);
                Severity: Major
                Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                  if ((token.type === "bullet_list_open") ||
                  (token.type === "ordered_list_open")) {
                  // Save current context and start a new one
                  stack.push(current);
                  current = {
                  Severity: Major
                  Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                    if (!result &&
                    (!value || !Array.isArray(value) || (value.length === 0) ||
                    !value.every(helpers.isString) || value.some(helpers.isEmptyString))) {
                    result = newError(property);
                    }
                    Severity: Major
                    Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                      if (inCode ||
                      onFence ||
                      inTable ||
                      onBreak ||
                      onItemStart ||
                      Severity: Major
                      Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                        if ((fixInfo.lineNumber === lastFixInfo.lineNumber) &&
                        (fixInfo.editColumn === lastFixInfo.editColumn) &&
                        !fixInfo.insertText &&
                        (fixInfo.deleteCount > 0) &&
                        lastFixInfo.insertText &&
                        Severity: Major
                        Found in libs/web/static/css/libs/markdownlint-0.27.0.min.js - About 40 mins to fix

                          Function growlNotificationController has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function growlNotificationController($element, $animate, $attrs, $scope, $interval) {
                          Severity: Minor
                          Found in libs/web/static/css/libs/angular-growl-notifications-2.6.0.min.js - About 35 mins to fix

                            Function GetFile has 5 return statements (exceeds 4 allowed).
                            Open

                            func GetFile(ctx context.Context, storageRoot, docUUID string, imageInfo ImageInfo) (string, string, error) {
                            ctx, span := common.TracerWeb.Start(ctx, "GetFile")
                             
                            ctx, spanHttpGet := common.TracerWeb.Start(ctx, "http.Get")
                            resp, err := http.Get(imageInfo.Original.URL)
                            Severity: Major
                            Found in libs/providers/storage/common.go - About 35 mins to fix

                              Avoid too many return statements within this function.
                              Open

                              if("illegal"===r.type&&""===o)return 1
                              ;if(R>1e5&&R>3*r.index)throw Error("potential infinite loop, way more iterations than matches")
                              Severity: Major
                              Found in libs/web/static/css/libs/highlight-11.8.0.min.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                ;return A+=o,o.length}const w=v(e)
                                Severity: Major
                                Found in libs/web/static/css/libs/highlight-11.8.0.min.js - About 30 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language