json-schema-form/json-schema-form-generator-es6

View on GitHub

Showing 4 of 10 total issues

formDefinitionsGenerator has 29 functions (exceeds 20 allowed). Consider refactoring.
Open

const formDefinitionsGenerator = {
  generateField(field, definitions){
    "use strict";
    let morpher = _.camelCase('_generate_' + field.type.replace('-', '_') + '_field');

Severity: Minor
Found in src/form-definitions-generator.js - About 3 hrs to fix

    Function generateStandardFormAttributes has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      generateStandardFormAttributes(field, definitions)  {
    
        let form, formIndex, formProps = [
          'key',
          'condition',
    Severity: Minor
    Found in src/form-definitions-generator.js - About 1 hr to fix

      Function testBrowser has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function testBrowser() {
        // Our testing bundle is made up of our unit tests, which
        // should individually load up pieces of our application.
        // We also include the browser setup file.
        const testFiles = glob.sync('./test/unit/**/*.js');
      Severity: Minor
      Found in gulpfile.js - About 1 hr to fix

        Function getModel has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          getModel(schema, form){
            let model = {};
        
            let index = _.indexOf(form, '*');
            if (index > -1) {
        Severity: Minor
        Found in src/jsf-to-model.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language