appbaseio/reactivesearch

View on GitHub

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,
Severity: Minor
Found in packages/vue/src/components/basic/DownShift.jsx - About 1 hr to fix

    Function constructor has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        constructor(props) {
            super(props);
    
            this.mapStyles = [
                { label: 'Standard', value: Standard },
    Severity: Minor
    Found in packages/maps/src/components/result/ReactiveMap.js - About 1 hr to fix

      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) {
      Severity: Minor
      Found in packages/maps/src/components/basic/GeoDistanceSlider.js - About 1 hr to fix

        Function performUpdate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                const performUpdate = () => {
                    this.setState(
                        {
                            currentValue: value,
                            suggestions: [],
        Severity: Minor
        Found in packages/web/src/components/search/DataSearch.js - About 1 hr to fix

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

            Function performUpdate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    const performUpdate = () => {
                        this.setState(
                            {
                                currentValue: value,
                                suggestions: [],
            Severity: Minor
            Found in packages/web/src/components/search/CategorySearch.js - About 1 hr to fix

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

                  render() {
                      return (
                          <Container>
                              <ReactiveBase
                                  app="gitxplore-latest-app"
              Severity: Minor
              Found in site/demos/gitxplore-dark/src/App.js - About 1 hr to fix

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

                    render() {
                        return (
                            <Container>
                                <ReactiveBase
                                    app="gitxplore-latest-app"
                Severity: Minor
                Found in site/demos/gitxplore/src/App.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/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

                              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) {
                              Severity: Minor
                              Found in packages/vue/src/components/result/ReactiveList.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 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;
                              Severity: Minor
                              Found in packages/vue/src/components/ReactiveBase/index.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 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 (
                              Severity: Minor
                              Found in packages/vue/src/components/result/ResultList.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 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') {
                              Severity: Minor
                              Found in packages/native/src/components/basic/TextField.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 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 || '';
                              Severity: Minor
                              Found in packages/web/src/components/date/DateRange.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 render has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  render() {
                                      let suggestionsList = [];
                                      let finalSuggestionsList = [];
                                      const {
                                          theme,
                              Severity: Minor
                              Found in packages/web/src/components/search/CategorySearch.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

                              Severity
                              Category
                              Status
                              Source
                              Language