Showing 365 of 1,033 total issues
File entity.tsx
has 1110 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2016 Ben Ockmore
* 2016 Sean Burke
* 2021 Akash Gupta
* This program is free software; you can redistribute it and/or modify
File editor.tsx
has 564 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2015, 2020 Ben Ockmore
* 2015-2016 Sean Burke
*
* This program is free software; you can redistribute it and/or modify
File edition-section.tsx
has 494 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2016 Ben Ockmore
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
File achievement.js
has 481 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2016 Max Prettyjohns
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
File test-data.js
has 478 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2016 Max Prettyjohns
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
File cbReviewModal.tsx
has 477 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable react/no-unused-state */
/*
* Copyright (C) 2022 Ansh Goyal
*
* This program is free software; you can redistribute it and/or modify
File edition.ts
has 459 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2015 Ben Ockmore
* 2015-2016 Sean Burke
*
* This program is free software; you can redistribute it and/or modify
File relationship-type.tsx
has 444 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2023 Shivam Awasthi
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Function render
has 163 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.state.collaborators.length === 0) {
this.handleAddCollaborator();
}
Function AboutPage
has 162 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AboutPage(): JSX.Element {
const NESLink =
'https://ocharles.org.uk/blog/posts/' +
'2012-07-10-nes-does-it-better-1.html';
File relationship-editor.tsx
has 425 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2018 Ben Ockmore
* 2021 Akash Gupta
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
File eslint.config.js
has 414 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable comma-dangle */
/* eslint-disable quotes */
import pluginImport from 'eslint-plugin-import';
import pluginNode from 'eslint-plugin-node';
import pluginReact from 'eslint-plugin-react';
Function renderLoggedInDropdown
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderLoggedInDropdown() {
const {user} = this.props;
const createDropdownTitle = (
<span>
Function renderHeader
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderHeader() {
return (
<div>
<Alert className="text-center" variant="warning">
Under development — adventurous users, please test and
Function render
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {showLastModified, showOwner, showIfOwnerOrCollaborator, showPrivacy, results, tableHeading, user, ownerId} = this.props;
const entityTypeSelect = (
<DropdownButton
className="margin-bottom-d5"
File layout.js
has 399 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2018 Theodore Fabian Rudy
* 2016 Daniel Hsing
* 2016 Ben Ockmore
* 2016 Sean Burke
File entity.js
has 394 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2016 Ben Ockmore
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Function processMergeOperation
has 135 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function processMergeOperation(orm, transacting, session, mainEntity, allEntities, relationshipSets) {
const {Edition, bookshelf} = orm;
const {mergingEntities} = session.mergeQueue;
if (!mergingEntities) {
throw new Error('Merge handler called with no merge queue, aborting');
Function render
has 133 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let messageComponent = null;
if (this.state.message.text) {
messageComponent = (
<div>
Function render
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const noResults = !this.props.results || this.props.results.length === 0;
const results = this.props.results.map((result) => {
if (!result) {