appbaseio/reactivesearch

View on GitHub

Showing 1,376 of 1,376 total issues

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 $
Severity: Minor
Found in packages/web/examples/MultiDataList/src/index.js - About 1 hr to fix

    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 $
    Severity: Minor
    Found in packages/web/examples/SingleDataList/src/index.js - About 1 hr to fix

      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 $
      Severity: Minor
      Found in packages/web/examples/TagCloud/src/index.js - About 1 hr to fix

        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}>
        Severity: Minor
        Found in packages/web/src/components/basic/TextField.js - About 1 hr to fix

          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 $
          Severity: Minor
          Found in packages/web/examples/ToggleButton/src/index.js - About 1 hr to fix

            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;
            Severity: Minor
            Found in packages/web/src/components/range/addons/HistogramContainer.js - About 1 hr to fix

              Identical blocks of code found in 4 locations. Consider refactoring.
              Open

                                              <Logo.Icon css="color: #fff;">
                                                  <img src={config.header.logo.src} alt="Icon" />
                                              </Logo.Icon>
              Severity: Major
              Found in site/src/components/Tools.js and 3 other locations - About 1 hr to fix
              site/src/components/Demo.js on lines 29..31
              site/src/components/Home.js on lines 84..86
              site/src/components/Learn.js on lines 49..51

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 4 locations. Consider refactoring.
              Open

                                              <Logo.Icon css="color: #fff;">
                                                  <img src={config.header.logo.src} alt="Icon" />
                                              </Logo.Icon>
              Severity: Major
              Found in site/src/components/Learn.js and 3 other locations - About 1 hr to fix
              site/src/components/Demo.js on lines 29..31
              site/src/components/Home.js on lines 84..86
              site/src/components/Tools.js on lines 71..73

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 4 locations. Consider refactoring.
              Open

                                              <Logo.Icon css="color: #fff;">
                                                  <img src={config.header.logo.src} alt="Icon" />
                                              </Logo.Icon>
              Severity: Major
              Found in site/src/components/Demo.js and 3 other locations - About 1 hr to fix
              site/src/components/Home.js on lines 84..86
              site/src/components/Learn.js on lines 49..51
              site/src/components/Tools.js on lines 71..73

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                          if (this.mergedState.isOpen) {
                              this.changeHighlightedIndex(amount);
                          } else {
                              this.setState({
                                  isOpen: true
              Severity: Major
              Found in packages/vue/src/components/basic/DownShift.jsx and 1 other location - About 1 hr to fix
              packages/vue/src/components/basic/DownShift.jsx on lines 78..86

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                  static generateQueryOptions(props, state) {
                      const queryOptions = getQueryOptions(props);
                      const includes = state.options.map(item => item.value);
                      return getAggsQuery(queryOptions, props, includes);
                  }
              Severity: Major
              Found in packages/web/src/components/list/MultiDataList.js and 1 other location - About 1 hr to fix
              packages/web/src/components/list/SingleDataList.js on lines 181..185

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 4 locations. Consider refactoring.
              Open

                      checkPropChange(this.props.dataField, nextProps.dataField, () => {
                          this.updateQueryOptions(nextProps);
                          this.updateQuery(this.state.currentValue, nextProps);
                      });
              Severity: Major
              Found in packages/web/src/components/list/SingleList.js and 3 other locations - About 1 hr to fix
              packages/native/src/components/list/SingleDropdownList.js on lines 66..69
              packages/native/src/components/range/RangeSlider.js on lines 75..78
              packages/web/src/components/list/SingleDropdownList.js on lines 95..98

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 4 locations. Consider refactoring.
              Open

                      checkPropChange(this.props.dataField, nextProps.dataField, () => {
                          this.updateQueryOptions(nextProps);
                          this.updateQuery(this.state.currentValue, nextProps);
                      });
              Severity: Major
              Found in packages/native/src/components/list/SingleDropdownList.js and 3 other locations - About 1 hr to fix
              packages/native/src/components/range/RangeSlider.js on lines 75..78
              packages/web/src/components/list/SingleDropdownList.js on lines 95..98
              packages/web/src/components/list/SingleList.js on lines 91..94

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 4 locations. Consider refactoring.
              Open

                      checkPropChange(this.props.dataField, nextProps.dataField, () => {
                          this.updateQueryOptions(nextProps);
                          this.updateQuery(this.state.currentValue, nextProps);
                      });
              Severity: Major
              Found in packages/web/src/components/list/SingleDropdownList.js and 3 other locations - About 1 hr to fix
              packages/native/src/components/list/SingleDropdownList.js on lines 66..69
              packages/native/src/components/range/RangeSlider.js on lines 75..78
              packages/web/src/components/list/SingleList.js on lines 91..94

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                  static generateQueryOptions(props, state) {
                      const queryOptions = getQueryOptions(props);
                      const includes = state.options.map(item => item.value);
                      return getAggsQuery(queryOptions, props, includes);
                  }
              Severity: Major
              Found in packages/web/src/components/list/SingleDataList.js and 1 other location - About 1 hr to fix
              packages/web/src/components/list/MultiDataList.js on lines 263..267

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 4 locations. Consider refactoring.
              Open

                      checkPropChange(this.props.dataField, nextProps.dataField, () => {
                          this.updateQueryOptions(nextProps);
                          this.handleChange(this.state.currentValue, nextProps);
                      });
              Severity: Major
              Found in packages/native/src/components/range/RangeSlider.js and 3 other locations - About 1 hr to fix
              packages/native/src/components/list/SingleDropdownList.js on lines 66..69
              packages/web/src/components/list/SingleDropdownList.js on lines 95..98
              packages/web/src/components/list/SingleList.js on lines 91..94

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                          options:
                              props.options && props.options[props.dataField]
                                  ? this.getOptions(props.options[props.dataField].buckets, props)
                                  : [],
              Severity: Major
              Found in packages/web/src/components/list/SingleList.js and 1 other location - About 1 hr to fix
              packages/web/src/components/list/MultiList.js on lines 38..41

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                          options:
                              props.options && props.options[props.dataField]
                                  ? this.getOptions(props.options[props.dataField].buckets, props)
                                  : [],
              Severity: Major
              Found in packages/web/src/components/list/MultiList.js and 1 other location - About 1 hr to fix
              packages/web/src/components/list/SingleList.js on lines 38..41

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 4 locations. Consider refactoring.
              Open

                                              <Logo.Icon css="color: #fff;">
                                                  <img src={config.header.logo.src} alt="Icon" />
                                              </Logo.Icon>
              Severity: Major
              Found in site/src/components/Home.js and 3 other locations - About 1 hr to fix
              site/src/components/Demo.js on lines 29..31
              site/src/components/Learn.js on lines 49..51
              site/src/components/Tools.js on lines 71..73

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                          if (this.mergedState.isOpen) {
                              this.changeHighlightedIndex(amount);
                          } else {
                              this.setState({
                                  isOpen: true
              Severity: Major
              Found in packages/vue/src/components/basic/DownShift.jsx and 1 other location - About 1 hr to fix
              packages/vue/src/components/basic/DownShift.jsx on lines 93..101

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Severity
              Category
              Status
              Source
              Language