Showing 655 of 1,993 total issues
Function TimePeriodSelection
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const TimePeriodSelection = (props: TimePeriodSelectionProps) => {
const { timePeriod, endDate, showPreviousPeriod,
setEndDate, setPeriod, togglePrevious } = props;
return <div className="sensor-history-time-selection">
<Row>
Function render
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return <div className={"grid-and-row-planting"}>
<h3>{t("Add Grid or Row")}</h3>
<GridInput
key={JSON.stringify(this.state.grid)}
Function SequencePreviewContent
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const SequencePreviewContent = (props: SequencePreviewContentProps) => {
const { sequence, viewSequenceCeleryScript } = props;
return <EmptyStateWrapper
notEmpty={sequence && isTaggedSequence(sequence)}
graphic={EmptyStateGraphic.sequences}
Method plants
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def plants(product_line)
spinach_row_count = product_line.include?("xl") ? 28 : 13
spinach_col_count = product_line.include?("xl") ? 4 : 2
(0..(spinach_row_count - 1)).map do |i|
(0..(spinach_col_count - 1)).map do |j|
Function render
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { dispatch, index, currentStep, currentSequence } = this.props;
return <StepWrapper {...this.props}
className={"send-message-step"}
helpText={t(ToolTips.SEND_MESSAGE)}>
Function ToolProfile
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ToolProfile = (props: ProfileToolProps) => {
const { toolName, x, y, width, height, sideView } = props;
const toolType = reduceToolName(toolName);
const fontColor = toolType == ToolName.seeder
? Color.darkGray
Function BotPeripherals
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function BotPeripherals(props: BotPeripheralsProps) {
const {
peripheralValues, position, plantAreaOffset, mapTransformProps, getConfigValue,
} = props;
const { xySwap } = mapTransformProps;
Function FactoryResetRows
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const FactoryResetRows = (props: FactoryResetRowsProps) => {
const { botOnline } = props;
return <div className={"factory-reset-options"}>
<Highlight settingName={DeviceSetting.softReset}>
<Row>
Function render
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { farmware, env, dispatch, botOnline } = this.props;
const collapsed = (config: FarmwareConfig) =>
farmware.name == FarmwareName.MeasureSoilHeight
Function render
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { group, dispatch, slugs } = this.props;
const { criteria } = group.body;
const commonProps = { group, criteria, dispatch };
const dayProps = {
Function FolderNode
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FolderNode = (props: FolderNodeProps) => {
const { node, sequences } = props;
const sequenceItems = node.content
.filter(seqUuid => sequences[seqUuid])
Function fetchSyncData
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function fetchSyncData(dispatch: Function) {
const get = download(dispatch);
/** Resources are placed into groups based on their dependencies.
* For example, if:
* * a Regimen relies on a Sequence
Consider simplifying this complex logical expression. Open
Open
if (isNumber(x) && isNumber(y) && height > 0 && width > 0 &&
isNumber(imageScale) && imageScale > 0 &&
isNumber(imageOffsetX) && isNumber(imageOffsetY) && imageOrigin) {
return {
x, y, width, height, imageScale, imageOffsetX, imageOffsetY, imageOrigin
Function render
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { images, currentImage } = this.props;
const multipleImages = images.length > 1;
const dark = this.props.id === "fullscreen-flipper";
return <div className={`image-flipper ${this.props.id}`} id={this.props.id}
Function TargetCoordinate
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function TargetCoordinate(props: TargetCoordinateProps) {
const ID = "target-coordinate";
if (!props.chosenLocation) { return <g id={ID} />; }
const { x, y } = props.chosenLocation;
if (isNumber(x) && isNumber(y)) {
Function SoilSensorImplementProfile
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const SoilSensorImplementProfile = (props: SpecificToolProfileProps) => {
const { x, y, sideView } = props;
const width = SoilSensorDimensions.width;
const length = SoilSensorDimensions.length;
const baseLength = SoilSensorDimensions.baseLength;
Function WateringNozzle
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const WateringNozzle = (props: ToolGraphicProps) => {
const { x, y, hovered, uuid } = props;
const r = 2;
const ySpacing = 10;
const xSpacing = 14;
Function render
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { figureName, position, plantAreaOffset, mapTransformProps,
} = this.props;
const { xySwap } = mapTransformProps;
const mapSize = getMapSize(mapTransformProps, plantAreaOffset);
Function PromoInfo
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PromoInfo = (props: PromoInfoProps) => {
const { isGenesis } = props;
return <div className="promo-info">
<h2 className="title">Explore our models</h2>
{isGenesis
Function XAxisWaterTube
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const XAxisWaterTube = (props: XAxisWaterTubeProps) => {
const { config } = props;
const groundZ = -config.bedHeight - config.bedZOffset;
const barbX = threeSpace(config.bedLengthOuter / 2 + 400, config.bedLengthOuter);
const barbY = threeSpace(-50, config.bedWidthOuter);