Showing 365 of 1,033 total issues
Function ContributePage
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ContributePage(): JSX.Element {
const IRCLink = 'https://kiwiirc.com/nextclient/irc.libera.chat/?#bookbrainz';
const styleLink = 'https://bookbrainz-user-guide.readthedocs.io/';
return (
File edition-section-merge.tsx
has 290 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2019 Nicolas Pelletier
*
* 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 72 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) {
return null;
File author.ts
has 286 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
Function render
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {collection} = this.props;
// eslint-disable-next-line one-var
let modalBody, modalTitle, submitButton;
if (this.props.isDelete) {
File revision.js
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2015-2016 Ben Ockmore
* 2016 Sean Burke
*
* This program is free software; you can redistribute it and/or modify
Function render
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {mergeQueue} = this.props;
if (isNil(mergeQueue)) {
return null;
}
Function render
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const [achievements, locked] = this.renderAchievements();
let rankUpdate;
if (this.props.isOwner) {
Function seriesToFormState
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function seriesToFormState(series) {
const aliases = series.aliasSet ?
series.aliasSet.aliases.map(({languageId, ...rest}) => ({
...rest,
language: languageId
File publisher.ts
has 281 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
Function authorToFormState
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function authorToFormState(author) {
/** The front-end expects a language id rather than the language object. */
const aliases = author.aliasSet ?
author.aliasSet.aliases.map(({languageId, ...rest}) => ({
...rest,
Function render
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const entityTypeSelect = Array.isArray(this.props.entityTypes) ? (
<DropdownButton
as={InputGroup.Append}
id="entity-type-select"
Function render
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let reviewContent;
const mapEntityType = {
Author: 'author',
EditionGroup: 'edition-group',
Function render
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function render(props) {
const {initialState} = props;
initialState.nameSection = {
disambiguation: '',
exactMatches: null,
File series.ts
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 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
Function publisherToFormState
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function publisherToFormState(publisher) {
/** The front-end expects a language id rather than the language object. */
const aliases = publisher.aliasSet ?
publisher.aliasSet.aliases.map(({languageId, ...rest}) => ({
...rest,
Function workToFormState
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function workToFormState(work) {
/** The front-end expects a language id rather than the language object. */
const aliases = work.aliasSet ?
work.aliasSet.aliases.map(({languageId, ...rest}) => ({
...rest,
File revision.js
has 274 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2015-2016 Stanisław Szcześniak
* 2015-2016 Ben Ockmore
* 2016 Sean Burke
*
Function FAQPage
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FAQPage(): JSX.Element {
return (
<Card>
<Card.Header as="h2">
Frequently Asked Questions
File entityRouteUtils.tsx
has 269 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (C) 2017 Eshan Singh
*
* 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