bruz/react-native-redux-groceries

View on GitHub

Showing 3 of 3 total issues

Function reducer has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function reducer(state = initialState, action) {
  let list

  switch (action.type) {
  case ADD_ITEM_SUCCESS:
Severity: Minor
Found in src/reducers/items.js - About 1 hr to fix

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

      render() {
        let items, readonlyMessage
        if (this.props.connected) {
          items = this.props.onlineItems
        } else if (this.props.connectionChecked) {
    Severity: Minor
    Found in src/components/Groceries.js - About 1 hr to fix

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

        _checkForRemoval() {
          this.state.pan.flattenOffset()
          let x = this.state.pan.x._value
          if (Math.abs(x) > 50) {
            this.refs.wrapper.measure((ox, oy, width) => {
      Severity: Minor
      Found in src/components/Item.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language