Showing 127 of 127 total issues
Function render
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
render() {
const {
pristine,
handleSubmit,
submitting,
- 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 constructor
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
constructor(value, options = {}) {
super()
if (typeof value === 'string') {
this.message = value
} else {
- 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 render
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
render() {
const {isBusy, currentUser, projects} = this.props
const projectData = projects.map(project => {
const cycle = project.cycle || {}
- 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
Rule doesn't have all its properties in alphabetical order. Open
.percentageContainer {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.chipContainer {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.chipContent {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.userGrid img {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.sumPercentageContainer {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.sliderContainer {
- Exclude checks
@import prevents parallel downloads, use <link> instead. Open
@import url(https://fonts.googleapis.com/icon?family=Material+Icons); /* needed for react-toolbox */
- Exclude checks
Using width with padding-left can sometimes make elements larger than you expect. Open
padding-left: 10px;
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.userImage {
- Exclude checks
@import prevents parallel downloads, use <link> instead. Open
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500); /* needed for react-toolbox */
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.container {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.userImage {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.userGrid {
- Exclude checks
TODO found Open
// TODO: why is this commented out?
- Exclude checks
TODO found Open
// TODO: use nock to mock gravatar API
- Exclude checks
FIXME found Open
// FIXME: having trouble figuring out how to properly get the
- Exclude checks
FIXME found Open
row('name').downcase().eq(identifierLower) // FIXME: not guaranteed to be unique (yet)
- Exclude checks