Showing 646 of 1,897 total issues
Function WIZARD_STEPS
has 1446 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const WIZARD_STEPS = (props: WizardStepDataProps): WizardSteps => {
const { firmwareHardware } = props;
const xySwap = !!props.getConfigValue?.(BooleanSetting.xy_swap);
const positiveMovementInstruction = (swap: boolean) =>
swap
File constants.ts
has 1924 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable @typescript-eslint/quotes */
import { trim } from "./util";
export namespace ToolTips {
File data.ts
has 1630 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { t } from "../i18next_wrapper";
import { round } from "lodash";
import { SetupWizardContent, ToolTips } from "../constants";
import {
WizardSection, WizardStepDataProps, WizardSteps, WizardToC, WizardToCSection,
Function Bot
has 841 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const Bot = (props: FarmbotModelProps) => {
const config = props.config;
const {
x, y, z, botSizeX, botSizeY, botSizeZ, beamLength, trail, laser, soilHeight,
bedXOffset, bedYOffset, bedLengthOuter, bedWidthOuter, tracks, zDimension,
File bot.tsx
has 1014 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable complexity */
import React, { useEffect, useState } from "react";
import * as THREE from "three";
import {
Cylinder, Extrude, Line, Trail, Tube, useGLTF, useTexture,
File sequence_editor_middle_active.tsx
has 854 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from "react";
import { t } from "../i18next_wrapper";
import {
ActiveMiddleProps, SequenceHeaderProps, SequenceBtnGroupProps,
SequenceSettingProps, SequenceSettingsMenuProps, ActiveMiddleState,
Function CrossSlide
has 395 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(props: JSX.IntrinsicElements["group"]) => {
const { nodes, materials } = model;
return <Group {...props}>
<MeshComponent
geometry={nodes.Cable_Carrier_Spacer_Block.geometry}
File checks.tsx
has 749 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from "react";
import { TakePhotoButton } from "../controls/move/take_photo_button";
import { mapStateToProps } from "../controls/state_to_props";
import { store } from "../redux/store";
import { MoveControls } from "../controls/move/move_controls";
File garden_map.tsx
has 688 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from "react";
import { BooleanSetting } from "../../session_keys";
import { closePlantInfo, unselectPlant } from "./actions";
import {
MapTransformProps, TaggedPlant, Mode, AxisNumberProperty,
Class AbstractSeeder
has 74 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class AbstractSeeder
include Constants
attr_reader :device
# DO NOT ALPHABETIZE. ORDER MATTERS! - RC
Function GantryWheelPlate
has 257 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(props: JSX.IntrinsicElements["group"]) => {
const { nodes, materials } = model;
return <Group {...props}>
<MeshComponent
geometry={nodes.Gantry_Wheel_Plate.geometry}
File celery_script_settings_bag.rb
has 590 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module CeleryScriptSettingsBag
class BoxLed
def self.name
"Raspberry Pi Box LED"
end
File tz_list.ts
has 588 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export const list = ["Africa/Abidjan",
"Africa/Accra",
"Africa/Addis_Ababa",
"Africa/Algiers",
"Africa/Asmara",
Function Model
has 252 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const Model = (props: BoxTopBaseProps) => {
const box = useGLTF(ASSETS.models.box, LIB_DIR) as Box;
const btn = useGLTF(ASSETS.models.btn, LIB_DIR) as Btn;
const led = useGLTF(ASSETS.models.led, LIB_DIR) as Led;
const SCALE = 1000;
File cross_slide.tsx
has 541 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable max-len */
import React from "react";
import * as THREE from "three";
import { InstancedBufferAttribute } from "three";
import { GLTF } from "three-stdlib";
Class None
has 60 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class None < AbstractSeeder
def peripherals_lighting; end
def peripherals_peripheral_4; end
def peripherals_peripheral_5; end
def peripherals_vacuum; end
Function Motors
has 213 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function Motors(props: MotorsProps) {
const {
dispatch, settingsPanelState, sourceFwConfig, firmwareHardware, arduinoBusy,
showAdvanced,
} = props;
GardenMap
has 59 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export class GardenMap extends
React.Component<GardenMapProps, Partial<GardenMapState>> {
state: Partial<GardenMapState> = {};
constructor(props: GardenMapProps) {
super(props);
File edit_fe_form.tsx
has 511 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from "react";
import moment from "moment";
import { success, error, warning } from "../toast/toast";
import {
TaggedFarmEvent, SpecialStatus, TaggedSequence, TaggedRegimen,
Function GardenModel
has 204 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const GardenModel = (props: GardenModelProps) => {
const { config } = props;
const groundZ = config.bedZOffset + config.bedHeight;
const Camera = config.perspective ? PerspectiveCamera : OrthographicCamera;