Showing 82 of 1,769 total issues
File 2016-ncnca-events.js
has 13026 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*eslint-disable */
export default [
{
"id": "evt-2016-jan-03-23546-cx",
- Create a ticketCreate a ticket
File 2017-ncnca-events.js
has 3987 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*eslint-disable */
export default [
{
"id" : "evt-ncnca-2017-san-bruno-hill-climb-rkJyeFqXl",
- Create a ticketCreate a ticket
File 2016-mtb-manual.js
has 1095 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*eslint-disable */
//events that we manually crated based on our research of available MTB resources, but that were originally missing
//in MTB calendar
export default [
- Create a ticketCreate a ticket
File 2016-mtb.js
has 924 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*eslint-disable */
export default [
{
"id": "evt-90cfc18bcc179b9f86bed6c88ab025ad",
"discipline": "MTB",
- Create a ticketCreate a ticket
Function render
has 423 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const sizeToPx = size => (Typography.BASE_FONT_SIZE_PX * Typography.scaleUp(size)) + 'px'
const getFontSize = size => Typography.scaleUp(size) + 'rem'
const eventName = `John C. Schlesinger Memorial Circuit Race and Team Time Trial AND SOME UPPER CASE
John C. Schlesinger Memorial Circuit Race and Team Time Trial
- Create a ticketCreate a ticket
File example_spec.js
has 835 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
//
// **** Kitchen Sink Tests ****
//
// This app was developed to demonstrate
// how to write tests in Cypress utilizing
- Create a ticketCreate a ticket
Function render
has 212 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const insideModal = renderedInsideModal(this.props)
//TODO: hardcoding timezone for now, it should come from calendar later
const moment = () => momentTZ.tz(...arguments, 'America/Los_Angeles')
const today = moment()
- Create a ticketCreate a ticket
File Dev.js
has 454 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable max-len */
import React from 'react'
import Component from 'react-pure-render/component'
import Row from 'atoms/Row.jsx'
import Col from 'atoms/Col.jsx'
- Create a ticketCreate a ticket
Function render
has 169 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
widthColumns,
containerWidth,
autoHeight = false,
- Create a ticketCreate a ticket
Function render
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
Open
render() {
const {
widthColumns,
containerWidth,
autoHeight = false,
- Read upRead up
- Create a ticketCreate a ticket
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 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
year,
prefix,
name,
- Create a ticketCreate a ticket
Function getEventColor
has 114 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getEventColor = (discipline, type, status = '') => {
let eventColor = ''
switch (status) {
case 'Canceled':
eventColor = Colors.event.status.canceled
- Create a ticketCreate a ticket
Function render
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
// Perf.start()
this.whenRenderStarted = +new Date()
console.info('Calendar render is called') //eslint-disable-line
const {
- Create a ticketCreate a ticket
Function getConfig
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getConfig = (env) => {
// define all vendor depnencies with pathes relative to node_modules/
// that are pre-compiled, this allows to configure webpack to skip parsing of them
// and we can use them for prod build instead of minifying libs ourself we would use pre-combiled ones
const preBuiltVendorDeps = {
- Create a ticketCreate a ticket
Function render
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
Open
render() {
const insideModal = renderedInsideModal(this.props)
//TODO: hardcoding timezone for now, it should come from calendar later
const moment = () => momentTZ.tz(...arguments, 'America/Los_Angeles')
const today = moment()
- Read upRead up
- Create a ticketCreate a ticket
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 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { fileName } = this.props
const { hasError, errorMsg, uploadedFiles } = this.state
const uploaderStyle = {
- Create a ticketCreate a ticket
File EventDetails.jsx
has 296 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, {PropTypes} from 'react'
import Component from 'react-pure-render/component'
import './EventDetails.scss'
import Row from 'atoms/Row.jsx'
import Col from 'atoms/Col.jsx'
- Create a ticketCreate a ticket
File reducer.js
has 295 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { combineReducers } from 'redux'
import { handleActions as makeReducer } from 'redux-actions'
import { routerReducer } from 'react-router-redux'
import {
norcalMtb2016Events,
- Create a ticketCreate a ticket
Function getLoaders
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getLoaders = (env) => {
let loaders = []
if (env === 'prod') {
loaders = loaders.concat([{
- Create a ticketCreate a ticket
File Event.jsx
has 282 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, {PropTypes} from 'react'
import Component from 'react-pure-render/component'
import Location from './Location.jsx'
import Typography from 'styles/typography'
import Colors from 'styles/colors'
- Create a ticketCreate a ticket