Showing 32 of 32 total issues
Function render
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="news">
<div className="news-wrap" id="six-nations">
<div className="news-item">
Function constructor
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
setDocumentTitle('橄榄球资料');
this.contentList = [
Function render
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="news">
<div className="news-wrap" id="rugby-world-cup">
<div className="news-item">
Function render
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="news">
<div className="news-wrap" id="six-nations">
<div className="news-item">
Function render
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div>
<div className="menu-list">
<div className="menu-item">
Function render
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
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">
Function render
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="news">
<div className="news-wrap" id="six-nations">
<div className="news-item">
Function render
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
/* eslint-disable react/style-prop-object */
return (
<div>
<Heading data={this.state.aboutHeading} />
Function render
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="news">
<div className="news-wrap">
<div className="news-item">
Function getWikiPage
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getWikiPage(eventName) {
if (!haveEventWiki(eventName)) {
return false;
}
Function render
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function render
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="columns">
<div className="column">
<Heading data={this.state.searchHeading} />
Function render
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let adjacent = '';
let related = '';
const curList = {};
curList[this.state.id] = 1;
Function render
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let recentNews = '';
if (this.state.recent !== null) {
recentNews = this.state.recent.map((news) => (
<div>{ news.id }#{ news.title }</div>
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) => {
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="news">
<div className="news-wrap">
<div className="news-item">
Function render
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<footer>
<div className="columns">
<div className="footer-column">
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="news">
<div className="news-wrap" id="six-nations">
<div className="news-item">
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="news">
<div className="news-wrap" id="six-nations">
<div className="news-item">
Function render
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="news">
<div className="news-wrap" id="six-nations">
<div className="news-item">