Showing 609 of 1,572 total issues
Function WIZARD_STEPS
has 1436 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 1916 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 1618 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,
File sequence_editor_middle_active.tsx
has 860 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,
File checks.tsx
has 739 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 682 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
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(MODELS.box, LIB_DIR) as Box;
const btn = useGLTF(MODELS.btn, LIB_DIR) as Btn;
const led = useGLTF(MODELS.led, LIB_DIR) as Led;
const SCALE = 1000;
File route_config.tsx
has 566 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { RouteConfig } from "takeme";
import { Apology } from "./apology";
import { Path } from "./internal_urls";
import { AnyConnectedComponent, ChangeRoute } from "./routes";
Function Motors
has 219 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function Motors(props: MotorsProps) {
const {
dispatch, settingsPanelState, sourceFwConfig, firmwareHardware, arduinoBusy,
showAdvanced,
} = props;
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
GardenMap
has 58 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 507 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,
API
has 55 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export class API {
/** Guesses the most appropriate API port based on a number of environment
* factors such as hostname and protocol (HTTP vs. HTTPS). */
static inferPort(location = window.location): string {
File select_plants.tsx
has 482 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from "react";
import { push } from "../history";
import { connect } from "react-redux";
import { Everything, TimeSettings } from "../interfaces";
import { PlantInventoryItem } from "./plant_inventory_item";
File maybe_highlight.tsx
has 480 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from "react";
import { store } from "../redux/store";
import { SettingsPanelState } from "../interfaces";
import { toggleControlPanel, bulkToggleControlPanel } from "./toggle_section";
import { getUrlQuery, urlFriendly } from "../util";
File component.tsx
has 467 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from "react";
import {
BlurableInput,
EmptyStateWrapper,
EmptyStateGraphic,
File data.tsx
has 465 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from "react";
import { t } from "../../i18next_wrapper";
import { FirmwareHardware } from "farmbot";
import { Actions, TourContent } from "../../constants";
import { Tour, TourStep } from "./interfaces";