appbaseio/reactivesearch

View on GitHub

Showing 334 of 1,376 total issues

Function getInputEvents has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getInputEvents({
            onInput,
            onBlur,
            onFocus,
            onKeyPress,
Severity: Minor
Found in packages/vue/src/components/basic/DownShift.jsx - About 1 hr to fix

    Function selectedValues has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            selectedValues(newVal, oldVal) {
                this.currentSelectedState = newVal;
                if (!isEqual(oldVal, newVal)) {
                    this.$params = new URLSearchParams(window.location.search);
                    const currentComponents = Object.keys(newVal);
    Severity: Minor
    Found in packages/vue/src/components/URLParamsProvider.jsx - About 1 hr to fix

      Function componentWillReceiveProps has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          componentWillReceiveProps(nextProps) {
              checkPropChange(this.props.react, nextProps.react, () => this.setReact(nextProps));
              checkPropChange(this.props.options, nextProps.options, () => {
                  const { showLoadMore, dataField } = nextProps;
                  if (showLoadMore) {
      Severity: Minor
      Found in packages/web/src/components/list/MultiList.js - About 1 hr to fix

        Function render has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            render() {
                return (
                    <ReactiveBase
                        app="meetup_app"
                        credentials="lW70IgSjr:87c5ae16-73fb-4559-a29e-0a02760d2181"
        Severity: Minor
        Found in site/demos/polyline/src/index.js - About 1 hr to fix

          Function render has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              render() {
                  return (
                      <ReactiveBase
                          app="meetup_app"
                          credentials="lW70IgSjr:87c5ae16-73fb-4559-a29e-0a02760d2181"
          Severity: Minor
          Found in packages/web/examples/TagCloud/src/index.js - About 1 hr to fix

            Function render has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                render() {
                    return (
                        <ReactiveBase
                            app="good-books-ds"
                            credentials="nY6NNTZZ6:27b76b9f-18ea-456c-bc5e-3a5263ebc63d"
            Severity: Minor
            Found in packages/web/examples/RangeSlider/src/index.js - About 1 hr to fix

              Function defaultQuery has 37 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              SingleDropdownList.defaultQuery = (value, props) => {
                  let query = null;
                  if (props.selectAllLabel && props.selectAllLabel === value) {
                      if (props.showMissing) {
                          query = { match_all: {} };
              Severity: Minor
              Found in packages/vue/src/components/list/SingleDropdownList.jsx - About 1 hr to fix

                Function render has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    render() {
                        const results = parseHits(this.props.hits) || [];
                        const streamResults = parseHits(this.props.streamHits) || [];
                        let filteredResults = results;
                
                
                Severity: Minor
                Found in packages/native/src/components/result/ReactiveList.js - About 1 hr to fix

                  Function render has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      render() {
                          return (
                              <ReactiveBase
                                  app="good-books-ds"
                                  credentials="nY6NNTZZ6:27b76b9f-18ea-456c-bc5e-3a5263ebc63d"
                  Severity: Minor
                  Found in packages/web/examples/RangeInput/src/index.js - About 1 hr to fix

                    Function render has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        render() {
                            return (
                                <Container class={this.$props.className}>
                                    {this.$props.title && (
                                        <Title class={getClassName(this.$props.innerClass, 'title')}>
                    Severity: Minor
                    Found in packages/vue/src/components/range/SingleRange.jsx - About 1 hr to fix

                      Function Histogram has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      const Histogram = (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/native/src/components/range/addons/Histogram.js - About 1 hr to fix

                        Function render has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            render() {
                                return (
                                    <ReactiveBase
                                        app="carstore-dataset"
                                        credentials="4HWI27QmA:58c731f7-79ab-4f55-a590-7e15c7e36721"
                        Severity: Minor
                        Found in packages/web/examples/RatingsFilter/src/index.js - About 1 hr to fix

                          Function render has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              render() {
                                  return (
                                      <ReactiveBase
                                          app="good-books-ds"
                                          credentials="nY6NNTZZ6:27b76b9f-18ea-456c-bc5e-3a5263ebc63d"
                          Severity: Minor
                          Found in packages/web/examples/NumberBox/src/index.js - About 1 hr to fix

                            Function render has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                render() {
                                    return (
                                        <Provider store={store}>
                                            <ReactiveBase
                                                app="good-books-ds"
                            Severity: Minor
                            Found in packages/web/examples/withRedux/src/index.js - About 1 hr to fix

                              Function render has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  render() {
                                      const { theme } = this.$props;
                                      const renderSuggestions = this.$scopedSlots.suggestions;
                                      return (
                                          <Container class={this.$props.className}>
                              Severity: Minor
                              Found in packages/vue/src/components/search/DataSearch.jsx - About 1 hr 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 componentDidMount has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  componentDidMount() {
                                      this.props.addComponent(this.internalComponent);
                                      this.props.addComponent(this.props.componentId);
                              
                                      if (this.props.stream) {
                              Severity: Minor
                              Found in packages/web/src/components/result/ReactiveList.js - About 1 hr 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 mapStateToProps has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                              Open

                              const mapStateToProps = (state, props) => {
                                  let options
                                      = state.aggregations[props.componentId]
                                      && state.aggregations[props.componentId][props.dataField];
                                  let range = state.aggregations[`${props.componentId}__range__internal`];
                              Severity: Minor
                              Found in packages/web/src/components/range/DynamicRangeSlider.js - About 1 hr 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 selectItem has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      selectItem(item, isDefaultValue = false, props = this.$props) {
                                          // ignore state updates when component is locked
                                          if (props.beforeValueChange && this.locked) {
                                              return;
                                          }
                              Severity: Minor
                              Found in packages/vue/src/components/range/MultiRange.jsx - About 1 hr to fix

                                Function render has 35 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/NumberBox.js - About 1 hr to fix

                                  Function render has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      render() {
                                          return (
                                              <ReactiveBase
                                                  app="good-books-ds"
                                                  credentials="nY6NNTZZ6:27b76b9f-18ea-456c-bc5e-3a5263ebc63d"
                                  Severity: Minor
                                  Found in packages/web/examples/ResultList/src/index.js - About 1 hr to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language