galarant/domless

View on GitHub
src/components/input/form_drawer.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function constructor has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  constructor(
    scene,
    form,
    {
      edge="right",
Severity: Minor
Found in src/components/input/form_drawer.js - About 1 hr to fix

Function addForm has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  addForm() {
    let
      xPos = 0,
      yPos = this.formHeader.height,
      widestField = _.maxBy(this.form.fields, (field) => { return field.x + field.width }),
Severity: Minor
Found in src/components/input/form_drawer.js - About 1 hr to fix

Function addHeader has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  addHeader() {
    let
      xPos = 0,
      yPos = 0

Severity: Minor
Found in src/components/input/form_drawer.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status