OpenC3/cosmos

View on GitHub
openc3-cosmos-cmd-tlm-api/app/controllers/plugins_controller.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method create has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def create(update = false)
    return unless authorization('admin')
    file = params[:plugin]
    if file
      scope = sanitize_params([:scope])
Severity: Minor
Found in openc3-cosmos-cmd-tlm-api/app/controllers/plugins_controller.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status