rugby-board/rugby-board-node

View on GitHub

Showing 32 of 32 total issues

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

  render() {
    return (
      <div className="news">
        <div className="news-wrap" id="six-nations">
          <div className="news-item">
Severity: Major
Found in client/components/wiki/Pro14.jsx - About 5 hrs to fix

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

      constructor(props) {
        super(props);
        setDocumentTitle('橄榄球资料');
    
        this.contentList = [
    Severity: Major
    Found in client/pages/InfoPage.jsx - About 5 hrs to fix

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

        render() {
          return (
            <div className="news">
              <div className="news-wrap" id="rugby-world-cup">
                <div className="news-item">
      Severity: Major
      Found in client/components/wiki/RugbyWorldCup.jsx - About 4 hrs to fix

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

          render() {
            return (
              <div className="news">
                <div className="news-wrap" id="six-nations">
                  <div className="news-item">
        Severity: Major
        Found in client/components/wiki/Premiership.jsx - About 3 hrs to fix

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

            render() {
              return (
                <div>
                  <div className="menu-list">
                    <div className="menu-item">
          Severity: Major
          Found in client/components/menus/ListMenu.jsx - About 3 hrs to fix

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

              render() {
                return (
                  <div className={this.props.isDropdown ? 'menu-dropdown menu-on' : 'menu-dropdown menu-off'}>
                    <div className="menu-dropdown-wrapper">
                      <div className="menu-item">
            Severity: Major
            Found in client/components/menus/DropdownMenu.jsx - About 3 hrs to fix

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

                render() {
                  return (
                    <div className="news">
                      <div className="news-wrap" id="six-nations">
                        <div className="news-item">
              Severity: Major
              Found in client/components/wiki/BritishIrishLions.jsx - About 3 hrs to fix

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

                  render() {
                    /* eslint-disable react/style-prop-object */
                    return (
                      <div>
                        <Heading data={this.state.aboutHeading} />
                Severity: Major
                Found in client/pages/AboutPage.jsx - About 3 hrs to fix

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

                    render() {
                      return (
                        <div className="news">
                          <div className="news-wrap">
                            <div className="news-item">
                  Severity: Major
                  Found in client/components/WikiList.jsx - About 3 hrs to fix

                    Function getWikiPage has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      getWikiPage(eventName) {
                        if (!haveEventWiki(eventName)) {
                          return false;
                        }
                    
                    
                    Severity: Major
                    Found in client/pages/WikiContentPage.jsx - About 3 hrs to fix

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

                        render() {
                          if (this.state.data.created_at === undefined) {
                            this.modifyData({ created_at: format(new Date(), 'HH:mm YYYY-MM-DD') });
                          }
                          if (this.state.data.channel_text === undefined) {
                      Severity: Major
                      Found in client/components/admin/Editor.jsx - About 2 hrs to fix

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

                          render() {
                            return (
                              <div className="columns">
                                <div className="column">
                                  <Heading data={this.state.searchHeading} />
                        Severity: Major
                        Found in client/pages/SearchPage.jsx - About 2 hrs to fix

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

                            render() {
                              let adjacent = '';
                              let related = '';
                              const curList = {};
                              curList[this.state.id] = 1;
                          Severity: Major
                          Found in client/components/RecommendNews.jsx - About 2 hrs to fix

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

                              render() {
                                let recentNews = '';
                                if (this.state.recent !== null) {
                                  recentNews = this.state.recent.map((news) => (
                                    <div>{ news.id }#{ news.title }</div>
                            Severity: Minor
                            Found in client/pages/AdminPage.jsx - About 1 hr to fix

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

                                render() {
                                  const totalColumns = Math.ceil(this.contentList.length / 2);
                                  const columnArray = Array.from(Array(totalColumns).keys());
                                  const contentWithColumns = columnArray.map((index) => {
                                    const columns = [index * 2, (index * 2) + 1].map((contentIndex) => {
                              Severity: Minor
                              Found in client/pages/InfoPage.jsx - About 1 hr to fix

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

                                  render() {
                                    return (
                                      <div className="news">
                                        <div className="news-wrap">
                                          <div className="news-item">
                                Severity: Minor
                                Found in client/components/admin/Edit.jsx - About 1 hr to fix

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

                                    render() {
                                      return (
                                        <footer>
                                          <div className="columns">
                                            <div className="footer-column">
                                  Severity: Minor
                                  Found in client/components/Footer.jsx - About 1 hr to fix

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

                                      render() {
                                        return (
                                          <div className="news">
                                            <div className="news-wrap" id="six-nations">
                                              <div className="news-item">
                                    Severity: Minor
                                    Found in client/components/wiki/SuperRugby.jsx - About 1 hr to fix

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

                                        render() {
                                          return (
                                            <div className="news">
                                              <div className="news-wrap" id="six-nations">
                                                <div className="news-item">
                                      Severity: Minor
                                      Found in client/components/wiki/TopLeague.jsx - About 1 hr to fix

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

                                          render() {
                                            return (
                                              <div className="news">
                                                <div className="news-wrap" id="six-nations">
                                                  <div className="news-item">
                                        Severity: Minor
                                        Found in client/components/wiki/SixNations.jsx - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language