Chocobozzz/PeerTube

View on GitHub
server/core/controllers/api/abuse.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function reportAbuse has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function reportAbuse (req: express.Request, res: express.Response) {
  const videoInstance = res.locals.videoAll
  const commentInstance = res.locals.videoCommentFull
  const accountInstance = res.locals.account

Severity: Minor
Found in server/core/controllers/api/abuse.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status