andela/codepirates-ah-backend

View on GitHub
src/controllers/rating.controller.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getArticleRating has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static async getArticleRating(req, res) {
    try {
      // Initialize rating data
      const { articleSlug } = req.params;
      // check if rate is arleady there
Severity: Minor
Found in src/controllers/rating.controller.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status