mbeauv/urbanoe-communications

View on GitHub

Showing 5 of 52 total issues

File image_infos_reducer.js has 384 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// @flow

import { Map } from 'immutable';
import type { ImageGalleryImageInfo } from '../../models/ImageGalleryImageInfo';
import {
Severity: Minor
Found in src/media_gallery/reducers/__tests__/image_infos_reducer.js - About 5 hrs to fix

File image_galleries_reducer.js has 273 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// @flow

import { Map } from 'immutable';
import type { ImageGallery } from '../../models/ImageGallery';
import {
Severity: Minor
Found in src/media_gallery/reducers/__tests__/image_galleries_reducer.js - About 2 hrs to fix

Function imageInfosReducer has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function imageInfosReducer(
  state : State = INITIAL_STATE,
  action : MediaGalleryAction,
) : State {
  switch (action.type) {
Severity: Major
Found in src/media_gallery/reducers/image_infos_reducer.js - About 2 hrs to fix

Function imageGalleriesReducer has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function imageGalleriesReducer(
  state: GalleryState = INITIAL_STATE,
  action: MediaGalleryAction,
) : GalleryState {
  switch (action.type) {
Severity: Minor
Found in src/media_gallery/reducers/image_galleries_reducer.js - About 1 hr to fix

Function updateImageInfo has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  authToken: string,
  galleryId: number,
  imageInfoId: number,
  name: string,
  description: string,
Severity: Minor
Found in src/media_gallery/actions/image_info_actions.js - About 35 mins to fix
Severity
Category
Status
Source
Language