LearnersGuild/echo

View on GitHub

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,
Severity: Minor
Found in src/common/components/UserForm/index.jsx - About 25 mins to fix

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 {
Severity: Minor
Found in src/server/util/error.js - About 25 mins to fix

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 || {}
Severity: Minor
Found in src/common/containers/ProjectList/index.jsx - About 25 mins to fix

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 {

Rule doesn't have all its properties in alphabetical order.
Open

.chipContainer {

Rule doesn't have all its properties in alphabetical order.
Open

.chipContent {

Rule doesn't have all its properties in alphabetical order.
Open

.userGrid img {

Rule doesn't have all its properties in alphabetical order.
Open

.sumPercentageContainer {

Rule doesn't have all its properties in alphabetical order.
Open

.sliderContainer {

@import prevents parallel downloads, use <link> instead.
Open

@import url(https://fonts.googleapis.com/icon?family=Material+Icons); /* needed for react-toolbox */

Using width with padding-left can sometimes make elements larger than you expect.
Open

  padding-left: 10px;

Rule doesn't have all its properties in alphabetical order.
Open

.userImage {

@import prevents parallel downloads, use <link> instead.
Open

@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500); /* needed for react-toolbox */

Rule doesn't have all its properties in alphabetical order.
Open

.container {

Rule doesn't have all its properties in alphabetical order.
Open

.userImage {

Rule doesn't have all its properties in alphabetical order.
Open

.userGrid {

TODO found
Open

    // TODO: why is this commented out?
Severity: Minor
Found in src/server/render.jsx by fixme

TODO found
Open

// TODO: use nock to mock gravatar API

FIXME found
Open

    // FIXME: having trouble figuring out how to properly get the

FIXME found
Open

      row('name').downcase().eq(identifierLower) // FIXME: not guaranteed to be unique (yet)
Severity: Minor
Found in src/server/actions/getChapter.js by fixme
Severity
Category
Status
Source
Language