TryGhost/Ghost

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

Summary

Maintainability
A
1 hr
Test Coverage

Function mockWebhooks has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function mockWebhooks(server) {
    server.get('/webhooks/', paginatedResponse('webhooks'));

    server.post('/webhooks/', function ({webhooks}) {
        let attrs = this.normalizedRequestAttrs();
Severity: Minor
Found in ghost/admin/mirage/config/webhooks.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status