Showing 22 of 125 total issues
Function createReduxForm
has 735 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
export default function createReduxForm(structure: Structure<any, any>) {
const { deepEqual, empty, getIn, setIn, keys, fromJS, toJS } = structure
const isValid = createIsValid(structure)
return (initialConfig: Config) => {
const config = {
Function createReducer
has 706 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
function createReducer<M, L>(structure: Structure<M, L>) {
const {
deepEqual,
empty,
forEach,
Function createConnectedField
has 242 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
function createConnectedField<L, M>(structure: Structure<L, M>) {
const { deepEqual, getIn } = structure
const getSyncError = (syncErrors: Object, name: string) => {
const error = plain.getIn(syncErrors, name)
// Because the error for this field might not be at a level in the error structure where
behaviors
has 34 functions (exceeds 20 allowed). Consider refactoring. Open
Open
const behaviors: { [string]: { (state: any, action: Action): M } } = {
[ARRAY_INSERT](
state,
{
meta: { field, index },
Function createConnectedFields
has 149 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
export default function createConnectedFields(structure: Structure<any, any>) {
const { deepEqual, getIn, size } = structure
const getSyncError = (syncErrors: Object, name: string) => {
// Because the error for this field might not be at a level in the error structure where
Function createConnectedFieldArray
has 148 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
export default function createConnectedFieldArray(structure: Structure<any, any>) {
const { deepEqual, getIn, size, equals, orderChanged } = structure
const getSyncError = (syncErrors: Object, name: string) => {
// For an array, the error can _ONLY_ be under _error.
// This is why this getSyncError is not the same as the
Function render
has 123 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
render() {
// remove some redux-form config-only props
/* eslint-disable no-unused-vars */
const {
anyTouched,
Function createFieldArrayProps
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
{ getIn }: Structure<any, any>,
name: string,
form: string,
sectionPrefix?: string,
getValue: Function,
Avoid too many return
statements within this function. Open
Open
return copy
Avoid too many return
statements within this function. Open
Open
return getSelectedValues(event.target.options)
Avoid too many return
statements within this function. Open
Open
return state
Avoid too many return
statements within this function. Open
Open
return value
Avoid too many return
statements within this function. Open
Open
return copy
Avoid too many return
statements within this function. Open
Open
return {
...state,
[first]: next
}
Avoid too many return
statements within this function. Open
Open
return !keys(registeredFields)
.filter(name => getIn(registeredFields, `['${name}'].count`) > 0)
.some(name =>
hasError(getIn(registeredFields, `['${name}']`), syncErrors, asyncErrors, submitErrors)
)
Avoid too many return
statements within this function. Open
Open
return event
Avoid too many return
statements within this function. Open
Open
return list.set(index, value)
Avoid too many return
statements within this function. Open
Open
if (React.isValidElement(obj) || React.isValidElement(other)) return false
Avoid too many return
statements within this function. Open
Open
return props
Avoid too many return
statements within this function. Open
Open
return state