appbaseio/reactivesearch

View on GitHub

Showing 334 of 1,376 total issues

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

const getCompositeAggsQuery = (query, props, after) => {
    const clonedQuery = { ...query };
    // missing label not available in composite aggs
    const {
        dataField, size, sortBy, showMissing,
Severity: Minor
Found in packages/web/src/components/list/utils.js - 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/range/SingleRange.js - About 1 hr to fix

      Function componentDidMount has 34 lines of code (exceeds 25 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/maps-native/src/components/maps/ReactiveMap.js - About 1 hr to fix

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

            componentWillReceiveProps(nextProps) {
                checkPropChange(this.props.react, nextProps.react, () => this.setReact(nextProps));
        
                let startDate = null;
                let endDate = null;
        Severity: Minor
        Found in packages/native/src/components/date/DateRange.js - About 1 hr to fix

          Function render has 34 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/ResultCard/src/index.js - About 1 hr to fix

            Function render has 34 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/DynamicRangeSlider/src/index.js - About 1 hr to fix

              Function render has 34 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/MultiRange/src/index.js - About 1 hr to fix

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

                    componentWillReceiveProps(nextProps) {
                        checkSomePropChange(
                            this.props,
                            nextProps,
                            ['highlight', 'dataField', 'highlightField'],
                Severity: Minor
                Found in packages/web/src/components/search/DataSearch.js - About 1 hr to fix

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

                      componentWillReceiveProps(nextProps) {
                          checkSomePropChange(
                              this.props,
                              nextProps,
                              ['highlight', 'dataField', 'highlightField'],
                  Severity: Minor
                  Found in packages/web/src/components/search/CategorySearch.js - About 1 hr to fix

                    Function getCompositeAggsQuery has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    const getCompositeAggsQuery = (query, props, after) => {
                        const clonedQuery = { ...query };
                        // missing label not available in composite aggs
                        const { dataField, size, sortBy, showMissing } = props;
                    
                    
                    Severity: Minor
                    Found in packages/vue/src/components/list/utils.js - About 1 hr to fix

                      Function setValue has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Function getAggsQuery has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        const getAggsQuery = (query, props, include) => {
                            const clonedQuery = { ...query };
                            const {
                                dataField, size, sortBy, showMissing, missingLabel,
                            } = props;
                        Severity: Minor
                        Found in packages/web/src/components/list/utils.js - About 1 hr to fix

                          Function render has 33 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/SingleDropdownRange/src/index.js - About 1 hr to fix

                            Function render has 33 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/MultiDropdownRange/src/index.js - About 1 hr to fix

                              Function render has 33 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/SingleRange/src/index.js - About 1 hr to fix

                                Function render has 33 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/range/MultiRange.js - About 1 hr to fix

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

                                      render() {
                                          const { color, ...checkBoxStyles } = getInnerKey(this.props.innerStyle, 'checkbox');
                                          return (
                                              <TouchableItem pressOpacity={0.5} delayPressIn={0} onPress={this.handlePress}>
                                                  <View
                                  Severity: Minor
                                  Found in packages/native/src/components/shared/CheckboxItem.js - About 1 hr to fix

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

                                        render() {
                                            return (
                                                <Picker
                                                    iosHeader="Select one"
                                                    mode="dropdown"
                                    Severity: Minor
                                    Found in packages/native/src/components/range/SingleDropdownRange.js - About 1 hr to fix

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

                                          componentWillReceiveProps(nextProps) {
                                              checkPropChange(this.props.react, nextProps.react, () => this.setReact(nextProps));
                                      
                                              checkSomePropChange(this.props, nextProps, ['dataField', 'nestedField'], () => {
                                                  this.updateQuery(this.state.currentDistance, nextProps);
                                      Severity: Minor
                                      Found in packages/maps/src/components/basic/GeoDistanceSlider.js - About 1 hr to fix

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

                                            render() {
                                                return (
                                                    <ReactiveBase
                                                        app="airbeds-test-app"
                                                        credentials="X8RsOu0Lp:9b4fe1a4-58c6-4089-a042-505d86d9da30"
                                        Severity: Minor
                                        Found in packages/web/examples/DateRange/src/index.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language