GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

src/actions/core/ColumnManager.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 22
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
wmc 2
nc 1
mnd 0
bc 2
fnc 2
dl 0
loc 22
rs 10
bpm 1
cpm 1
noi 0
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A ColumnManager.js ➔ ??? 0 18 1
1
import {
2
    SET_COLUMNS
3
} from '../../constants/ActionTypes';
4
5
export const reorderColumn = ({
6
    draggedIndex, droppedIndex, columns, stateKey, stateful
7
}) => {
8
9
    const reorder = (cols, to, from) => {
10
        cols.splice(to, 0, cols.splice(from, 1)[0]);
11
        return cols;
12
    };
13
14
    const reorderedColumns = reorder(columns, droppedIndex, draggedIndex);
15
16
    return {
17
        type: SET_COLUMNS,
18
        columns: reorderedColumns,
19
        stateKey,
20
        stateful
21
    };
22
};
23