NatLibFi/marc-record-validators-melinda

View on GitHub

Showing 1,132 of 1,132 total issues

Avoid too many return statements within this function.
Open

    return 1;
Severity: Major
Found in src/sortFields.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return 0;
    Severity: Major
    Found in src/sortFields.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return `${partType} ${partNumber}/${partYear}`;
      Severity: Major
      Found in src/normalizeSubfieldValueForComparison.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return [];
        Severity: Major
        Found in src/removeDuplicateDataFields.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            return true;
          Severity: Major
          Found in src/merge-fields/controlSubfields.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return false;
            Severity: Major
            Found in src/merge-fields/counterpartField.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return false;
              Severity: Major
              Found in src/merge-fields/controlSubfields.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  return false; // (note that this is a double negation: not required is false)
                Severity: Major
                Found in src/merge-fields/mergeOrAddSubfield.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                    return originalValue;
                  Severity: Major
                  Found in src/merge-fields/worldKnowledge.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return true;
                    Severity: Major
                    Found in src/merge-fields/mergableIndicator.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return 'xxk';
                      Severity: Major
                      Found in src/fix-country-codes.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return !(strict && elementsTotal < recordSubObj.subfields.length) && valid;
                        Severity: Major
                        Found in src/field-structure.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return false;
                          Severity: Major
                          Found in src/field-structure.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return;
                            Severity: Major
                            Found in src/merge-fields/mergeOrAddSubfield.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return true;
                              Severity: Major
                              Found in src/merge-fields/controlSubfields.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return true;
                                Severity: Major
                                Found in src/merge-fields/mergeOrAddSubfield.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                            return cands;
                                  Severity: Major
                                  Found in src/merge-fields/mergeIndicator.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return true;
                                    Severity: Major
                                    Found in src/reindexSubfield6OccurenceNumbers.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return false;
                                      Severity: Major
                                      Found in src/merge-fields/controlSubfields.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                          return originalValue;
                                        Severity: Major
                                        Found in src/merge-fields/worldKnowledge.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language