openaustralia/morph

View on GitHub
app/controllers/scrapers_controller.rb

Summary

Maintainability
A
3 hrs
Test Coverage
F
43%

Class ScrapersController has 22 methods (exceeds 20 allowed). Consider refactoring.
Open

class ScrapersController < ApplicationController
  extend T::Sig

  # Follow what GitHub does here. When you are not authorised to see
  # a scraper it just gives a 404
Severity: Minor
Found in app/controllers/scrapers_controller.rb - About 2 hrs to fix

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

      def create
        authenticated_user = T.must(current_user)
    
        scraper = Scraper.new(create_scraper_params)
        scraper.full_name = "#{scraper.owner.to_param}/#{scraper.name}"
    Severity: Minor
    Found in app/controllers/scrapers_controller.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status