Showing 459 of 459 total issues
Function PresentationScriptDocumentation
has 72 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
Similar blocks of code found in 2 locations. Consider refactoring. Open
create: {
disabled: !entityCrudSettingsState.create,
render: (
<>
<EntityFieldsSelectionSettings
- Read upRead up
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 92.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
details: {
disabled: !entityCrudSettingsState.details,
render: (
<>
<EntityFieldsSelectionSettings
- Read upRead up
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 92.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Function StorageCredentialsSettings
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function StorageCredentialsSettings() {
const storageList = useStorageIntegrationsList();
const activeStorageIntegration = useActiveStorageIntegration();
const fileStorageDomainMessages = useDomainMessages(
LANG_DOMAINS.INTEGRATIONS.FILE_STORAGE
Function UserPreferences
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function UserPreferences() {
const { theme, setTheme } = useTheme();
const themes = usePortalThemesSelection();
const domainMessages = useDomainMessages(LANG_DOMAINS.ACCOUNT.PREFERENCES);
Function EntityPresentationScriptSettings
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function EntityPresentationScriptSettings() {
const entity = useEntitySlug();
const entityPresentationScript = useEntityConfiguration(
"entity_presentation_script",
entity
Function AsyncFormSelect
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function AsyncFormSelect(props: IProps) {
const { _ } = useLingui();
const { input, url, referenceUrl } = props;
Function filterOperatorToQuery
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
filterOperatorToQuery(
query: T,
column: string,
{ operator, value, value2 }: IColumnFilterBag<unknown>,
groupOperator: "and" | "or"
Function RelationsSettingsDocumentation
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function RelationsSettingsDocumentation() {
return (
<DocumentationRoot>
<p>
This setting helps you manage how this entity will be presented on other
Similar blocks of code found in 3 locations. Consider refactoring. Open
{
Header: msg`Trigger`,
accessor: "trigger",
filter: {
_type: "string",
- Read upRead up
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 85.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 3 locations. Consider refactoring. Open
{
Header: msg`Integration`,
accessor: "integration",
filter: {
_type: "string",
- Read upRead up
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 85.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 3 locations. Consider refactoring. Open
{
Header: msg`Action`,
accessor: "action",
filter: {
_type: "string",
- Read upRead up
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 85.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Function useFEPagination
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function useFEPagination<T>(
endPoint: string,
dataState: IPaginatedDataState<T>
): UseQueryResult<PaginatedData<T>> {
return useQuery<PaginatedData<T>>({
Similar blocks of code found in 2 locations. Consider refactoring. Open
<ViewStateMachine
loading={storageList.isLoading || activeStorageIntegration.isLoading}
error={storageList.error || activeStorageIntegration.error}
loader={
<FormSkeleton
- Read upRead up
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 84.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
<ViewStateMachine
loading={integrationsList.isLoading || activeActionsList.isLoading}
error={integrationsList.error || activeActionsList.error}
loader={
<FormSkeleton
- Read upRead up
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 84.
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Function GeneralStorageSettings
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function GeneralStorageSettings() {
const fileUploadSettings = useAppConfiguration("file_upload_settings");
const upsertFileUploadSettingsMutation = useUpsertConfigurationMutation(
"file_upload_settings"
Function MenuSettings
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function MenuSettings() {
const domainMessages = useAppConfigurationDomainMessages(
"disabled_menu_entities"
);
Function CRUDDocumentation
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function CRUDDocumentation() {
return (
<DocumentationRoot>
<p>
This setting generally allows you to disable CRUD functionalities and
File select.tsx
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
import type { MessageDescriptor } from "@lingui/core";
import { msg } from "@lingui/macro";
import { useLingui } from "@lingui/react";
import * as SelectPrimitive from "@radix-ui/react-select";
import * as React from "react";
Function UsersLinkToDatabaseDocumentation
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function UsersLinkToDatabaseDocumentation() {
return (
<DocumentationRoot>
<p>
Linking your DashPress users to your database allows you to write