hadmean/hadmean

View on GitHub

Showing 150 of 427 total issues

File defaultStyle.ts has 792 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { css } from "styled-components";

export const dateLibraryStyle = css`
  .react-datepicker__year-read-view--down-arrow,
  .react-datepicker__month-read-view--down-arrow,

    Function DemoForm has 331 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function DemoForm() {
      return (
        <Form
          onSubmit={(values: unknown) => action(values as string)}
          render={({ handleSubmit }) => (
    Severity: Major
    Found in src/frontend/design-system/components/Form/Stories.tsx - About 1 day to fix

      Function FormScriptDocumentation has 191 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function FormScriptDocumentation() {
        return (
          <DocumentationRoot>
            <p>
              Forms scripts enable you to implement the complex form logic your
      Severity: Major
      Found in src/frontend/docs/scripts/form-scripts.tsx - About 7 hrs to fix

        Function WidgetScriptDocumentation has 141 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function WidgetScriptDocumentation() {
          return (
            <DocumentationRoot>
              <p>
                The widget script is the script that allows you to provide the data that
        Severity: Major
        Found in src/frontend/docs/scripts/widget-scripts.tsx - About 5 hrs to fix

          File data.service.ts has 374 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          import { NotFoundError, progammingError } from "backend/lib/errors";
          import {
            DataEventActions,
            FilterOperators,
            PaginatedData,
          Severity: Minor
          Found in src/backend/data/data.service.ts - About 5 hrs to fix

            Function useEntityCrudView has 121 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function useEntityCrudView(entity: string) {
              const entityCrudSettings = useEntityCrudSettings(entity);
              const entityFields = useEntityFields(entity);
            
              const upsertCrudSettingsMutation = useUpsertConfigurationMutation(
            Severity: Major
            Found in src/frontend/views/entity/Crud/index.tsx - About 4 hrs to fix

              File Stories.tsx has 368 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /* eslint-disable react/function-component-definition */
              
              import { Story } from "@storybook/react";
              import { Field, Form } from "react-final-form";
              import { action } from "@storybook/addon-actions";
              Severity: Minor
              Found in src/frontend/design-system/components/Form/Stories.tsx - About 4 hrs to fix

                Function useTableColumns has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export const useTableColumns = (
                  entity: string
                ): Partial<DataStateKeys<ITableColumn[]>> => {
                  const portalTableColumns = usePortalTableColumns(entity);
                  const getEntityFieldLabels = useEntityFieldLabels(entity);
                Severity: Major
                Found in src/frontend/views/data/Table/useTableColumns.tsx - About 4 hrs to fix

                  Function FormIntegrationsDocumentation has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  export function FormIntegrationsDocumentation() {
                    const { _ } = useLingui();
                    const domainMessages = useDomainMessages(
                      LANG_DOMAINS.INTEGRATIONS.FORM_ACTIONS
                    );
                  Severity: Major
                  Found in src/frontend/docs/form-integrations.tsx - About 4 hrs to fix

                    Function EntityRelationDetails has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export function EntityRelationDetails() {
                      const childEntity = useRouteParam("childEntity");
                      const childEntityCrudConfig = useEntityCrudConfig(childEntity);
                      const entityId = useEntityId();
                      const parentEntity = useEntitySlug();
                    Severity: Major
                    Found in src/frontend/views/data/Details/RelationsDetails.tsx - About 4 hrs to fix

                      File Form.tsx has 327 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      import { useEntityConfiguration } from "frontend/hooks/configuration/configuration.store";
                      import { Field, Form } from "react-final-form";
                      import { ISummaryWidgetConfig, IWidgetConfig } from "shared/types/dashboard";
                      import { ROYGBIV, ROYGBIV_CONFIG } from "shared/constants/colors";
                      import { IconInputField } from "frontend/components/IconInputField";
                      Severity: Minor
                      Found in src/frontend/views/Dashboard/Widget/_manage/Form.tsx - About 3 hrs to fix

                        Function RenderFormInput has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        export function RenderFormInput(props: IRenderFormInputProps) {
                          const {
                            formProps: formProps$1,
                            label,
                            type,
                        Severity: Major
                        Found in src/frontend/components/SchemaForm/_RenderFormInput.tsx - About 3 hrs to fix

                          Function FieldsSettingsDocumentation has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          export function FieldsSettingsDocumentation() {
                            return (
                              <DocumentationRoot>
                                <p>
                                  You will be able to make field-level customizations on the tables,
                          Severity: Major
                          Found in src/frontend/docs/fields.tsx - About 3 hrs to fix

                            Function generateMenuItems has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              async generateMenuItems(): Promise<INavigationMenuItem[]> {
                                let navItems: INavigationMenuItem[] = [];
                            
                                navItems = navItems.concat([
                                  {
                            Severity: Major
                            Found in src/backend/menu/menu.service.ts - About 3 hrs to fix

                              Function useEntityFormView has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function useEntityFormView(entity: string): Record<
                                string,
                                {
                                  label: MessageDescriptor;
                                  Cmp: ReactElement;
                              Severity: Major
                              Found in src/frontend/views/entity/Form/index.tsx - About 3 hrs to fix

                                Function RolesDocumentation has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                export function RolesDocumentation() {
                                  return (
                                    <DocumentationRoot>
                                      <p>
                                        DashPress has two default roles which are not editable or deletable and
                                Severity: Major
                                Found in src/frontend/docs/roles.tsx - About 3 hrs to fix

                                  Function UsersLinkToDatabase has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export function UsersLinkToDatabase() {
                                    const domainMessages = useDomainMessages({
                                      plural: msg`Users Link To Database`,
                                      singular: msg`Users Link To Database`,
                                    });
                                  Severity: Major
                                  Found in src/frontend/views/users/DatabaseLink/index.tsx - About 3 hrs to fix

                                    Function EntityDictionSettings has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export function EntityDictionSettings() {
                                      const entity = useEntitySlug();
                                      const domainMessages = useAppConfigurationDomainMessages("entity_diction");
                                      const entityDiction = useEntityDiction(entity);
                                      const upsertConfigurationMutation = useUpsertConfigurationMutation(
                                    Severity: Major
                                    Found in src/frontend/views/entity/Diction/index.tsx - About 3 hrs to fix

                                      Function requestHandler has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        async (req: NextApiRequest, res: NextApiResponse) => {
                                          const before = μs.now();
                                      
                                          return await requestHook(req, async () => {
                                            const validationsToRun = (validations || []).filter((validation) => {
                                      Severity: Major
                                      Found in src/backend/lib/request/index.ts - About 3 hrs to fix

                                        Function PresentationScriptDocumentation has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        export function PresentationScriptDocumentation() {
                                          return (
                                            <DocumentationRoot>
                                              <p>
                                                For a quick showoff, copy and paste the script below, save the form, and
                                        Severity: Major
                                        Found in src/frontend/docs/scripts/presentations-scripts.tsx - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language