Coursemology/coursemology2

View on GitHub
client/app/bundles/course/duplication/operations.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

export function duplicateCourse(
  fields,
  destinationHost,
  successMessage,
  pendingMessage,
Severity: Minor
Found in client/app/bundles/course/duplication/operations.js - About 1 hr to fix

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

export function duplicateItems(
  destinationCourseId,
  selectedItems,
  successMessage,
  pendingMessage,
Severity: Minor
Found in client/app/bundles/course/duplication/operations.js - About 1 hr to fix

Function duplicateCourse has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  fields,
  destinationHost,
  successMessage,
  pendingMessage,
  failureMessage,
Severity: Minor
Found in client/app/bundles/course/duplication/operations.js - About 45 mins to fix

Function duplicateItems has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  destinationCourseId,
  selectedItems,
  successMessage,
  pendingMessage,
  failureMessage,
Severity: Minor
Found in client/app/bundles/course/duplication/operations.js - About 35 mins to fix

There are no issues that match your filters.

Category
Status