dashpresshq/dashpress

View on GitHub

Showing 459 of 459 total issues

Function ServerError has 338 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const ServerError: CustomNextPage = () => {
  return (
    <BaseErrorCmp
      code={500}
      message="Internal Server Error"
Severity: Major
Found in src/frontend/views/errors/ServerError.tsx - About 1 day to fix

    Function DemoForm has 305 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/components/app/form/input/Stories.tsx - About 1 day to fix

      Function NotFound has 295 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const NotFound: CustomNextPage = () => {
        return (
          <BaseErrorCmp
            code={404}
            message="Page Not Found"
      Severity: Major
      Found in src/frontend/views/errors/NotFound.tsx - About 1 day to fix

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

              and: {
                [QueryOperators.IS_NULL]: (query, column) => query.whereNull(column),
                [QueryOperators.IS_NOT_NULL]: (query, column) =>
                  query.whereNotNull(column),
                [QueryOperators.EQUAL_TO]: (query, column, value) =>
        Severity: Major
        Found in src/backend/data/data-access/RDBMS.ts and 1 other location - About 1 day to fix
        src/backend/data/data-access/RDBMS.ts on lines 51..71

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 270.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

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

              or: {
                [QueryOperators.IS_NULL]: (query, column) => query.orWhereNull(column),
                [QueryOperators.IS_NOT_NULL]: (query, column) =>
                  query.orWhereNotNull(column),
                [QueryOperators.EQUAL_TO]: (query, column, value) =>
        Severity: Major
        Found in src/backend/data/data-access/RDBMS.ts and 1 other location - About 1 day to fix
        src/backend/data/data-access/RDBMS.ts on lines 30..50

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 270.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Function UnAuthorized has 283 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export const UnAuthorized: CustomNextPage = () => {
          return (
            <BaseErrorCmp
              code={403}
              message="Unauthorized"
        Severity: Major
        Found in src/frontend/views/errors/UnAuthorized.tsx - About 1 day to fix

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

            ACCOUNT: {
              PROFILE: {
                plural: msg`Account Profile`,
                singular: msg`Account Profile`,
              },
          Severity: Major
          Found in src/frontend/lib/crud-config/lang-domains.ts and 1 other location - About 1 day to fix
          src/frontend/lib/crud-config/lang-domains.ts on lines 30..55

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 210.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

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

            INTEGRATIONS: {
              CONSTANTS: {
                plural: msg`Constants`,
                singular: msg`Constant`,
              },
          Severity: Major
          Found in src/frontend/lib/crud-config/lang-domains.ts and 1 other location - About 1 day to fix
          src/frontend/lib/crud-config/lang-domains.ts on lines 4..29

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 210.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

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

          const CONFIG_SCHEMA: IAppliedSchemaFormConfig<IConfig> = {
            to: {
              label: msg`To`,
              type: "text",
              validations: [
          Severity: Major
          Found in src/backend/integrations/libs/sendgrid/sendMail.ts and 2 other locations - About 1 day to fix
          src/backend/integrations/libs/sendinblue/sendMail.ts on lines 16..58
          src/backend/integrations/libs/smtp/sendMail.ts on lines 16..58

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 203.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

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

          const CONFIG_SCHEMA: IAppliedSchemaFormConfig<IConfig> = {
            to: {
              label: msg`To`,
              type: "text",
              validations: [
          Severity: Major
          Found in src/backend/integrations/libs/sendinblue/sendMail.ts and 2 other locations - About 1 day to fix
          src/backend/integrations/libs/sendgrid/sendMail.ts on lines 16..58
          src/backend/integrations/libs/smtp/sendMail.ts on lines 16..58

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 203.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

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

          const CONFIG_SCHEMA: IAppliedSchemaFormConfig<IConfig> = {
            to: {
              label: msg`To`,
              type: "text",
              validations: [
          Severity: Major
          Found in src/backend/integrations/libs/smtp/sendMail.ts and 2 other locations - About 1 day to fix
          src/backend/integrations/libs/sendgrid/sendMail.ts on lines 16..58
          src/backend/integrations/libs/sendinblue/sendMail.ts on lines 16..58

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 203.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Function FormScriptDocumentation has 195 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

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

                      <OffCanvas
                        title={msg`${getEntityFieldLabels(
                          showFieldValidations
                        )} Validations`}
                        size="md"
            Severity: Major
            Found in src/frontend/views/entity/Fields/FieldsType.form.tsx and 1 other location - About 7 hrs to fix
            src/frontend/views/entity/Fields/FieldsType.form.tsx on lines 202..224

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 185.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

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

                      <OffCanvas
                        title={msg`${getEntityFieldLabels(showFieldSelection)} Selections`}
                        size="md"
                        onClose={() => setShowFieldSelection("")}
                        show={!!showFieldSelection}
            Severity: Major
            Found in src/frontend/views/entity/Fields/FieldsType.form.tsx and 1 other location - About 7 hrs to fix
            src/frontend/views/entity/Fields/FieldsType.form.tsx on lines 179..201

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 185.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

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

            const CONFIG_SCHEMA: IAppliedSchemaFormConfig<IConfig> = {
              to: {
                label: msg`To`,
                type: "text",
                validations: [
            Severity: Major
            Found in src/backend/integrations/libs/postmark/sendMail.ts and 2 other locations - About 6 hrs to fix
            src/backend/integrations/libs/mailgun/sendMail.ts on lines 15..52
            src/backend/integrations/libs/smtp/index.ts on lines 10..47

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 172.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

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

            const CONFIG_SCHEMA: IAppliedSchemaFormConfig<IConfig> = {
              to: {
                label: msg`To`,
                type: "text",
                validations: [
            Severity: Major
            Found in src/backend/integrations/libs/mailgun/sendMail.ts and 2 other locations - About 6 hrs to fix
            src/backend/integrations/libs/postmark/sendMail.ts on lines 15..52
            src/backend/integrations/libs/smtp/index.ts on lines 10..47

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 172.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

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

            const CONFIGURATION_SCHEMA: IAppliedSchemaFormConfig<IActionConfig> = {
              host: {
                label: msg`Host`,
                type: "text",
                validations: [
            Severity: Major
            Found in src/backend/integrations/libs/smtp/index.ts and 2 other locations - About 6 hrs to fix
            src/backend/integrations/libs/mailgun/sendMail.ts on lines 15..52
            src/backend/integrations/libs/postmark/sendMail.ts on lines 15..52

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 172.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

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

              const MemoizedAction = useCallback(
                ({ row }: IFETableCell<IKeyValue>) => (
                  <ActionButtons
                    size="icon"
                    actionButtons={[
            src/frontend/views/entity/Actions/Base.tsx on lines 57..84

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 170.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

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

              const MemoizedAction = useCallback(
                ({ row }: IFETableCell<IFormAction>) => (
                  <ActionButtons
                    size="icon"
                    actionButtons={[
            Severity: Major
            Found in src/frontend/views/entity/Actions/Base.tsx and 1 other location - About 6 hrs to fix
            src/frontend/views/settings/Variables/ManageCredentialGroup.tsx on lines 78..105

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 170.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Function EntityRelationsSettings has 156 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export function EntityRelationsSettings() {
              const entity = useEntitySlug();
              const tabFromUrl = useRouteParam("tab");
              const changeTabParam = useChangeRouterParam("tab");
              const entityFields = useEntityFields(entity);
            Severity: Major
            Found in src/frontend/views/entity/Relations/index.tsx - About 6 hrs to fix
              Severity
              Category
              Status
              Source
              Language