bookbrainz/bookbrainz-site

View on GitHub
src/client/components/pages/parts/pager.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

    render() {
        return (
            this.state.results && this.state.results.length ?
                <div id="PagerElement">
                    <hr className="thin"/>
Severity: Minor
Found in src/client/components/pages/parts/pager.js - About 2 hrs to fix

    Function triggerSearch has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        triggerSearch(newFrom = this.state.from, newSize = this.state.size) {
            const searchParams = new URLSearchParams(this.props.querySearchParams);
            searchParams.set('size', newSize);
            searchParams.set('from', newFrom);
            const newSearchParamsString = `?${searchParams.toString()}`;
    Severity: Minor
    Found in src/client/components/pages/parts/pager.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status