Showing 44 of 129 total issues
File ContextMenu.js
has 337 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// @flowimport { connect } from 'react-redux';import EventListener from 'react-event-listener';import React from 'react';import { addModal } from '../../store/ui/modals/Modals';
Function render
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { const { empty, files } = this.props; if (empty) { return (
Function ModalWrapper
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ModalWrapper = (props: Props) => { const { modals } = props; console.log(modals); return (
File AddSftpFileSystemForm.js
has 288 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// @flow import Button from 'react-bootstrap/lib/Button';import Col from 'react-bootstrap/lib/Col';import { connect } from 'react-redux';
Function render
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { return ( <DefaultLayout> <div className="content"> <div className="container-fluid">
Function fileSystems
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function fileSystems(state = initialFileSystemsState, action) { const nonAgaveSystems = state.systems.filter( sys => sys.provider !== 'agave', ); const nonDropboxSystems = state.systems.filter(
Function visualOptions
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function visualOptions(state = initialVisualOptionsState, action) { switch (action.type) { // --------- // Dotfiles // ---------
Function render
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { const { system, systemPrefix, pathname,
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { const { isReady, fileSystems, dispatch, prefix, browserPaths, } = this.props;
Function BootstrapSwitch
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const BootstrapSwitch = (props: Props) => { const { style, enabledColor, disabledColor, enabledLabel, disabledLabel, enabled, onToggleClick, } = props;
Function uploadFile
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const uploadFile = (csrftoken, file, path) => { const UPLOAD_FILE_SIZE_LIMIT = 150 * 1024 * 1024; const db = dbx(csrftoken); const trimmedPath = path.slice('/dropbox/home'.length);
Function browserPaths
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function browserPaths(state = initialBrowserPathsState, action) { switch (action.type) { case agaveFileSystemsTypes.GET_AGAVE_FILE_SYSTEMS_ASYNC.SUCCESS: { const keysFromAction = action.systems.reduce((acc, cv) => { acc[`${cv.provider}.${cv.id}`] = ['', cv.provider, cv.id, ''].join('/');
Function FileBrowserControls
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FileBrowserControls = (props: Props) => { const { handleRefresh, id, showDotfiles, toggleDotfiles, path, } = props;
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { const folders = this.props.list.filter( (item, i) => ((this.props.showDotfiles || !item.name.match(/^\./i)) && item.type === 'dir'), );
Function SecondaryNavigation
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function SecondaryNavigation() { return ( <ul className="nav navbar-nav navbar-right"> <li> <a href="#stats" className="dropdown-toggle btn-magnify" data-toggle="dropdown">
Function DirectoryBrowser
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DirectoryBrowser = (props: Props) => { const { style, error, loading, list, handleDoubleClick, } = props;
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { return ( <div className="user"> <div className="info"> <div className="photo">
Function systemUrlResolverAndRedirector
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const systemUrlResolverAndRedirector = (props) => { if (props.pathname.indexOf(props.prefix) !== 0) { return 0; }
Function HistoryMetadata
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const HistoryMetadata = (props: Props) => { const { singleSelected, loading, history } = props; if (!singleSelected) { return (
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { return ( <DefaultLayout> <div className="content fileContent"> <div className="container-fluid">