dopry/netlify-cms

View on GitHub

Showing 110 of 220 total issues

Avoid too many return statements within this function.
Open

    return (
      <Sidebar content={sidebarContent}>
        <Layout>
          <Notifs CustomComponent={Toast} />
          <AppHeader
Severity: Major
Found in src/containers/App.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return createBlock(slateType, nodes);
    Severity: Major
    Found in src/components/Widgets/Markdown/serializers/remarkSlate.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return createText('\n');
      Severity: Major
      Found in src/components/Widgets/Markdown/serializers/remarkSlate.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

          return null;
        Severity: Major
        Found in src/reducers/collections.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return unwrapped.insertBlock(defaultBlock).apply();
          Severity: Major
          Found in src/components/Widgets/Markdown/MarkdownControl/VisualEditor/plugins.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return state.transform().insertText('\n').apply();
            Severity: Major
            Found in src/components/Widgets/Markdown/MarkdownControl/VisualEditor/plugins.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return { widget: 'markdown' };
              Severity: Major
              Found in scripts/autoconfigure.collection.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  return { widget: 'string' };
                Severity: Major
                Found in scripts/autoconfigure.collection.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

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

                    Avoid too many return statements within this function.
                    Open

                          return u(typeMap[node.type], props, children);
                    Severity: Major
                    Found in src/components/Widgets/Markdown/serializers/slateRemark.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return acc;
                      Severity: Major
                      Found in src/lib/serializeEntryValues.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return { widget: 'object', fields: inferFields([value]) };
                        Severity: Major
                        Found in scripts/autoconfigure.collection.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return createBlock(typeMap[type], { isVoid: true });
                          Severity: Major
                          Found in src/components/Widgets/Markdown/serializers/remarkSlate.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return u(typeMap[node.type], { url, title }, children);
                            Severity: Major
                            Found in src/components/Widgets/Markdown/serializers/slateRemark.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return state.withMutations((map) => {
                                      map.set('isFetching', false);
                                      map.set('term', searchTerm);
                                      map.set('queryHits', Map({ [action.payload.namespace]: response.hits }));
                                    });
                              Severity: Major
                              Found in src/reducers/search.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                  if (idxA < idxB) return -1;
                                Severity: Major
                                Found in src/formats/yaml.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return createText(convertMarkNode(node));
                                  Severity: Major
                                  Found in src/components/Widgets/Markdown/serializers/remarkSlate.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return createBlock(typeMap[type], nodes, { data });
                                    Severity: Major
                                    Found in src/components/Widgets/Markdown/serializers/remarkSlate.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return createBlock(slateType, nodes, { data });
                                      Severity: Major
                                      Found in src/components/Widgets/Markdown/serializers/remarkSlate.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return createInline(typeMap[type], nodes, { data });
                                        Severity: Major
                                        Found in src/components/Widgets/Markdown/serializers/remarkSlate.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language