Showing 334 of 1,376 total issues
Function getButtonProps
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
getButtonProps({ onClick, onKeyDown, onKeyUp, onBlur }) {
return {
click: event => {
this.setState({
isOpen: true,
Function constructor
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
constructor(props) {
super(props);
this.mapStyles = [
{ label: 'Standard', value: Standard },
Function componentWillMount
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
componentWillMount() {
this.props.addComponent(this.props.componentId);
this.setReact(this.props);
if (this.props.selectedValue && this.props.selectedValue.location) {
Function performUpdate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
const performUpdate = () => {
this.setState(
{
currentValue: value,
suggestions: [],
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
public render() {
return (
<ReactiveBase
app="good-books-ds"
credentials="nY6NNTZZ6:27b76b9f-18ea-456c-bc5e-3a5263ebc63d"
Function performUpdate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
const performUpdate = () => {
this.setState(
{
currentValue: value,
suggestions: [],
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
return (
<Container>
<ReactiveBase
app="gitxplore-latest-app"
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
return (
<Container>
<ReactiveBase
app="gitxplore-latest-app"
Function meetupList
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
meetupList(data) {
return {
title: (
<div className="meetup-title">
{data.member ? data.member.member_name : ''} is going to $
Function meetupList
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
meetupList(data) {
return {
title: (
<div className="meetup-title">
{data.member ? data.member.member_name : ''} is going to $
Function meetupList
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
meetupList(data) {
return {
title: (
<div className="meetup-title">
{data.member ? data.member.member_name : ''} is going to $
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
return (
<Container style={this.props.style} className={this.props.className}>
{this.props.title && (
<Title className={getClassName(this.props.innerClass, 'title') || null}>
Function meetupList
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
meetupList(data) {
return {
title: (
<div className="meetup-title">
{data.member ? data.member.member_name : ''} is going to $
Function HistogramContainer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
const HistogramContainer = (props) => {
let max = props.stats[0].doc_count;
props.stats.forEach((item) => {
if (max < item.doc_count) {
max = item.doc_count;
Function mounted
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
mounted() {
this.addComponent(this.internalComponent);
this.addComponent(this.$props.componentId);
if (this.$props.stream) {
- 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 setStore
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
setStore(props) {
const credentials
= props.url && props.url.trim() !== '' && !props.credentials
? null
: props.credentials;
- 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 renderAsList
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
renderAsList({ item, triggerClickAnalytics }) {
const onData = this.$props.onData || this.$scopedSlots.onData;
const result = onData(item);
if (result) {
return (
- 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 10 (exceeds 5 allowed). Consider refactoring. Open
render() {
let style = {};
if (this.props.showIcon) {
if (this.props.iconPosition === 'left') {
- 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 10 (exceeds 5 allowed). Consider refactoring. Open
render() {
const { currentDate, dateHovered } = this.state;
const start = currentDate ? currentDate.start : '';
const end = currentDate ? currentDate.end : '';
const endDay = dateHovered || '';
- 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 10 (exceeds 5 allowed). Consider refactoring. Open
render() {
let suggestionsList = [];
let finalSuggestionsList = [];
const {
theme,
- 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"