sanger/limber

View on GitHub
app/frontend/javascript/asset-comments/comment-store.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function commentStoreFactory has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const commentStoreFactory = function (axiosInstance, devourApi, assetId, userId) {
  return {
    comments: undefined,

    async refreshComments() {
Severity: Major
Found in app/frontend/javascript/asset-comments/comment-store.js - About 2 hrs to fix

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

        async addComment(newTitle, newDescription) {
          let payload = {
            data: {
              type: 'comments',
              attributes: {
    Severity: Minor
    Found in app/frontend/javascript/asset-comments/comment-store.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status