TryGhost/Ghost

View on GitHub
ghost/admin/mirage/config/integrations.js

Summary

Maintainability
A
1 hr
Test Coverage

Function mockIntegrations has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function mockIntegrations(server) {
    server.get('/integrations/', paginatedResponse('integrations'));

    server.post('/integrations/', function ({integrations}, {requestBody}) {
        let body = JSON.parse(requestBody);
Severity: Minor
Found in ghost/admin/mirage/config/integrations.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status