FarmBot/Farmbot-Web-App

View on GitHub
frontend/sequences/locals_list/sanitize_nodes.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function sanitizeNodes has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const sanitizeNodes = (thisSequence: Sequence): SanitizationResult => {
  // Collect all *declared* variables.
  const declared: Dictionary<ScopeDeclarationBodyItem> = {};
  (thisSequence.args.locals.body || []).map(variable =>
    declared[variable.args.label] = variable);
Severity: Minor
Found in frontend/sequences/locals_list/sanitize_nodes.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status