spolnik/JAlgoArena-UI

View on GitHub

Showing 386 of 386 total issues

Similar blocks of code found in 4 locations. Consider refactoring.
Open

assignInWith<T: Object, A: Object, B: Object, C: Object, D: Object>(
object: T,
s1: A,
s2: B,
s3: C,
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 4 hrs to fix
flow-typed/npm/lodash_v4.x.x.js on lines 1027..1040
flow-typed/npm/lodash_v4.x.x.js on lines 1093..1106
flow-typed/npm/lodash_v4.x.x.js on lines 1197..1210

Similar blocks of code found in 2 locations. Consider refactoring.
Open

return fetch(`/api/submissions/api/submissions/stats`, options)
.then(response => response.json())
.then(json => {
if (json.error) {
dispatch(setErrorMessage("Cannot connect to Submissions Service: " + JSON.stringify(json.error)))
Severity: Major
Found in src/client/submissions/actions/index.ts and 1 other location - About 4 hrs to fix
src/client/users/actions/index.ts on lines 175..184

Similar blocks of code found in 2 locations. Consider refactoring.
Open

return fetch(`/api/auth/users`, options)
.then((response) => response.json())
.then((json) => {
if (json.error) {
dispatch(setErrorMessage('Cannot connect to Auth Service: ' + JSON.stringify(json.error)));
Severity: Major
Found in src/client/users/actions/index.ts and 1 other location - About 4 hrs to fix
src/client/submissions/actions/index.ts on lines 63..72

Similar blocks of code found in 2 locations. Consider refactoring.
Open

findLastFrom<T>(
predicate: Predicate<T> | OPredicate<T>
): ((
fromIndex: number
) => (collection: $ReadOnlyArray<T> | { [id: any]: T }) => T | void) &
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 4 hrs to fix
flow-typed/npm/lodash_v4.x.x.js on lines 2038..2046

Similar blocks of code found in 2 locations. Consider refactoring.
Open

findFrom<T>(
predicate: Predicate<T> | OPredicate<T>
): ((
fromIndex: number
) => (collection: $ReadOnlyArray<T> | { [id: any]: T }) => T | void) &
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 4 hrs to fix
flow-typed/npm/lodash_v4.x.x.js on lines 2063..2071

Similar blocks of code found in 2 locations. Consider refactoring.
Open

reduce<T, U>(
iteratee: (accumulator: U, value: T) => U
): ((accumulator: U) => (collection: Array<T> | { [id: any]: T }) => U) &
((accumulator: U, collection: Array<T> | { [id: any]: T }) => U);
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 4 hrs to fix
flow-typed/npm/lodash_v4.x.x.js on lines 2251..2254

Similar blocks of code found in 2 locations. Consider refactoring.
Open

reduceRight<T, U>(
iteratee: (value: T, accumulator: U) => U
): ((accumulator: U) => (collection: Array<T> | { [id: any]: T }) => U) &
((accumulator: U, collection: Array<T> | { [id: any]: T }) => U);
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 4 hrs to fix
flow-typed/npm/lodash_v4.x.x.js on lines 2238..2241

Similar blocks of code found in 4 locations. Consider refactoring.
Open

extendWith<T: Object, A: Object, B: Object, C: Object>(
object: T,
s1: A,
s2: B,
s3: C,
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 4 hrs to fix
flow-typed/npm/lodash_v4.x.x.js on lines 963..975
flow-typed/npm/lodash_v4.x.x.js on lines 1014..1026
flow-typed/npm/lodash_v4.x.x.js on lines 1184..1196

Similar blocks of code found in 4 locations. Consider refactoring.
Open

assignWith<T: Object, A: Object, B: Object, C: Object>(
object: T,
s1: A,
s2: B,
s3: C,
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 4 hrs to fix
flow-typed/npm/lodash_v4.x.x.js on lines 963..975
flow-typed/npm/lodash_v4.x.x.js on lines 1080..1092
flow-typed/npm/lodash_v4.x.x.js on lines 1184..1196

Similar blocks of code found in 4 locations. Consider refactoring.
Open

assignInWith<T: Object, A: Object, B: Object, C: Object>(
object: T,
s1: A,
s2: B,
s3: C,
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 4 hrs to fix
flow-typed/npm/lodash_v4.x.x.js on lines 1014..1026
flow-typed/npm/lodash_v4.x.x.js on lines 1080..1092
flow-typed/npm/lodash_v4.x.x.js on lines 1184..1196

Similar blocks of code found in 4 locations. Consider refactoring.
Open

mergeWith<T: Object, A: Object, B: Object, C: Object>(
object: T,
s1: A,
s2: B,
s3: C,
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 4 hrs to fix
flow-typed/npm/lodash_v4.x.x.js on lines 963..975
flow-typed/npm/lodash_v4.x.x.js on lines 1014..1026
flow-typed/npm/lodash_v4.x.x.js on lines 1080..1092

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

render() {
const submissions = _.orderBy(this.props.submissions, ['submissionTime'], ['desc']);
 
let submissionData = submissions.map((submission: Submission) => {
return {
Severity: Major
Found in src/client/submissions/pages/submissions.tsx - About 3 hrs to fix

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    declare type __CurriedFunction3<A, B, C, R, AA: A, BB: B, CC: C> = ((
    ...r: [AA]
    ) => CurriedFunction2<BB, CC, R>) &
    ((...r: [AA, BB]) => CurriedFunction1<CC, R>) &
    ((...r: [AA, BB, CC]) => R);
    Severity: Major
    Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 3 hrs to fix
    flow-typed/npm/lodash_v4.x.x.js on lines 1435..1439

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    declare type __CurriedFunction3<A, B, C, R, AA: A, BB: B, CC: C> = ((
    ...r: [AA]
    ) => CurriedFunction2<BB, CC, R>) &
    ((...r: [AA, BB]) => CurriedFunction1<CC, R>) &
    ((...r: [AA, BB, CC]) => R);
    Severity: Major
    Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 3 hrs to fix
    flow-typed/npm/lodash_v4.x.x.js on lines 14..18

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    assignInWith<T: Object, A: Object>(
    customizer: (
    objValue: any,
    srcValue: any,
    key: string,
    Severity: Major
    Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 3 hrs to fix
    flow-typed/npm/lodash_v4.x.x.js on lines 2608..2616

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    assignWith<T: Object, A: Object>(
    customizer: (
    objValue: any,
    srcValue: any,
    key: string,
    Severity: Major
    Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 3 hrs to fix
    flow-typed/npm/lodash_v4.x.x.js on lines 2578..2586

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    xorWith<T>(
    comparator: Comparator<T>
    ): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) &
    ((a1: Array<T>, a2: Array<T>) => Array<T>);
    Severity: Major
    Found in flow-typed/npm/lodash_v4.x.x.js and 9 other locations - About 3 hrs to fix
    flow-typed/npm/lodash_v4.x.x.js on lines 1746..1749
    flow-typed/npm/lodash_v4.x.x.js on lines 1759..1762
    flow-typed/npm/lodash_v4.x.x.js on lines 1792..1795
    flow-typed/npm/lodash_v4.x.x.js on lines 1876..1879
    flow-typed/npm/lodash_v4.x.x.js on lines 1889..1892
    flow-typed/npm/lodash_v4.x.x.js on lines 1916..1919
    flow-typed/npm/lodash_v4.x.x.js on lines 1929..1932
    flow-typed/npm/lodash_v4.x.x.js on lines 1951..1954
    flow-typed/npm/lodash_v4.x.x.js on lines 1973..1976

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    symmetricDifferenceBy<T>(
    iteratee: ValueOnlyIteratee<T>
    ): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) &
    ((a1: Array<T>, a2: Array<T>) => Array<T>);
    Severity: Major
    Found in flow-typed/npm/lodash_v4.x.x.js and 9 other locations - About 3 hrs to fix
    flow-typed/npm/lodash_v4.x.x.js on lines 1746..1749
    flow-typed/npm/lodash_v4.x.x.js on lines 1759..1762
    flow-typed/npm/lodash_v4.x.x.js on lines 1792..1795
    flow-typed/npm/lodash_v4.x.x.js on lines 1876..1879
    flow-typed/npm/lodash_v4.x.x.js on lines 1889..1892
    flow-typed/npm/lodash_v4.x.x.js on lines 1916..1919
    flow-typed/npm/lodash_v4.x.x.js on lines 1942..1945
    flow-typed/npm/lodash_v4.x.x.js on lines 1951..1954
    flow-typed/npm/lodash_v4.x.x.js on lines 1973..1976

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    pullAllBy<T>(
    iteratee: ValueOnlyIteratee<T>
    ): ((values: Array<T>) => (array: Array<T>) => Array<T>) &
    ((values: Array<T>, array: Array<T>) => Array<T>);
    Severity: Major
    Found in flow-typed/npm/lodash_v4.x.x.js and 9 other locations - About 3 hrs to fix
    flow-typed/npm/lodash_v4.x.x.js on lines 1746..1749
    flow-typed/npm/lodash_v4.x.x.js on lines 1759..1762
    flow-typed/npm/lodash_v4.x.x.js on lines 1876..1879
    flow-typed/npm/lodash_v4.x.x.js on lines 1889..1892
    flow-typed/npm/lodash_v4.x.x.js on lines 1916..1919
    flow-typed/npm/lodash_v4.x.x.js on lines 1929..1932
    flow-typed/npm/lodash_v4.x.x.js on lines 1942..1945
    flow-typed/npm/lodash_v4.x.x.js on lines 1951..1954
    flow-typed/npm/lodash_v4.x.x.js on lines 1973..1976

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    intersectionBy<T>(
    iteratee: ValueOnlyIteratee<T>
    ): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) &
    ((a1: Array<T>, a2: Array<T>) => Array<T>);
    Severity: Major
    Found in flow-typed/npm/lodash_v4.x.x.js and 9 other locations - About 3 hrs to fix
    flow-typed/npm/lodash_v4.x.x.js on lines 1759..1762
    flow-typed/npm/lodash_v4.x.x.js on lines 1792..1795
    flow-typed/npm/lodash_v4.x.x.js on lines 1876..1879
    flow-typed/npm/lodash_v4.x.x.js on lines 1889..1892
    flow-typed/npm/lodash_v4.x.x.js on lines 1916..1919
    flow-typed/npm/lodash_v4.x.x.js on lines 1929..1932
    flow-typed/npm/lodash_v4.x.x.js on lines 1942..1945
    flow-typed/npm/lodash_v4.x.x.js on lines 1951..1954
    flow-typed/npm/lodash_v4.x.x.js on lines 1973..1976
    Severity
    Category
    Status
    Source
    Language