Showing 4 of 10 total issues
formDefinitionsGenerator
has 29 functions (exceeds 20 allowed). Consider refactoring. Open
Open
const formDefinitionsGenerator = {
generateField(field, definitions){
"use strict";
let morpher = _.camelCase('_generate_' + field.type.replace('-', '_') + '_field');
Function generateStandardFormAttributes
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateStandardFormAttributes(field, definitions) {
let form, formIndex, formProps = [
'key',
'condition',
Function testBrowser
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');
Function getModel
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getModel(schema, form){
let model = {};
let index = _.indexOf(form, '*');
if (index > -1) {