Showing 30 of 75 total issues
File jsdom_vx.x.x.js
has 1857 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// flow-typed signature: 93a0f8b93e28b4e1cd4ffa98fe28029a
// flow-typed version: <<STUB>>/jsdom_v^9.9.1/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
File eslint_vx.x.x.js
has 1845 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// flow-typed signature: 470f4f8e06492465d32c88bab53d4c5b
// flow-typed version: <<STUB>>/eslint_v^3.14.0/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
File webpack_vx.x.x.js
has 1287 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// flow-typed signature: dcb18d63c2ce2a4a303854e0424ff485
// flow-typed version: <<STUB>>/webpack_v^1.14.0/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
File eslint-plugin-jsx-a11y_vx.x.x.js
has 993 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// flow-typed signature: 375a6266fd32da8b90ac29a1bf47c6ca
// flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v^3.0.2/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
Function generateMenuTemplate
has 201 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function generateMenuTemplate() {
const template = [
{
label: 'File',
submenu: [
Function StatusBar
has 160 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function StatusBar(props) {
return (
<View
style={{
bottom: '0',
File react-router_vx.x.x.js
has 423 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// flow-typed signature: 25ef9c02e61e9be98a9372106daf10ea
// flow-typed version: <<STUB>>/react-router_v^3.0.2/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
File jesFtp.js
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import Promise from 'bluebird';
import { store } from '../index';
import {
setCurrentStep,
setIsConnected,
File eslint-plugin-react_vx.x.x.js
has 393 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// flow-typed signature: 39d1796ef278e389cee6176d862601a2
// flow-typed version: <<STUB>>/eslint-plugin-react_v^6.9.0/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
Function renderIcon
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function renderIcon(name, theme) {
const fill = theme === 'light' ? '#ffffff' : '#000000';
const stroke = theme === 'light' ? '#000000' : '#ffffff';
const grayscale = theme === 'dark' ? '#ffffff' : '#ddd';
switch (name) {
File tcomb_vx.x.x.js
has 357 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// flow-typed signature: ab3c545d74b615b66b8411018473f87d
// flow-typed version: <<STUB>>/tcomb_v^3.2.16/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
Function ConfigForm
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ConfigForm(props) {
const hostName = props.hostName;
const ftpPort = props.ftpPort;
const ftpUserName = props.ftpUserName;
const ftpPassword = props.ftpPassword;
File electron-builder_vx.x.x.js
has 285 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// flow-typed signature: 8e48cf5994f0196faf010ea12f3e3c6a
// flow-typed version: <<STUB>>/electron-builder_v^11.4.4/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
Function _pollMostRecentJobUntilComplete
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
Open
async _pollMostRecentJobUntilComplete(maxRetries, timeToWait) {
console.log("Attempting to get most recent job");
let mostRecentJob;
while (!mostRecentJob || mostRecentJob.status !== 'OUTPUT' && maxRetries > 0) {
console.log("TriesRemaining: ", maxRetries);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function listDatasets
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
listDatasets() {
store.dispatch(setIsSubmitting(true));
store.dispatch(setIsRetrieving(true));
let datasets = [];
return this.connect()
Function Results
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Results(props) { // props is now from MY POV
const jobIDs = Object.keys(props.jobs);
return (
<View
Function App
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function App(props) {
const editorContent = props.editorContent;
const setEditorContent = props.setEditorContent;
return (
Function listMembers
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
listMembers(dsname, datasets) {
store.dispatch(setIsSubmitting(true));
store.dispatch(setIsRetrieving(true));
console.log("Connection: ", this.ftp.getConnectionStatus());
let pwd;
File eslint-plugin-import_vx.x.x.js
has 261 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// flow-typed signature: 84c5e55bff091cbd9594af11fc665d9e
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.2.0/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
File main.development.js
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { app, BrowserWindow, Menu, shell } from 'electron';
let menu;
let template;
let mainWindow = null;