wbotelhos/capybara-box

View on GitHub

Showing 3 of 3 total issues

Class Base has 24 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Base
    def initialize(parameters = {})
      @browser       = parameters.fetch(:browser) { :selenium_chrome }
      @max_wait_time = parameters[:max_wait_time]
      @parameters    = parameters
Severity: Minor
Found in lib/capybara-box/base.rb - About 2 hrs to fix

    Method arguments has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def arguments
          return @parameters[:arguments] if @parameters[:arguments]
          return [] unless chrome_family?
    
          %w[
    Severity: Minor
    Found in lib/capybara-box/base.rb - About 1 hr to fix

      Method configure has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def configure(options, browser_name)
            return unless ::CapybaraBox::Helper.true?(options[:enabled])
      
            require 'capybara-screenshot/rspec'
      
      
      Severity: Minor
      Found in lib/capybara-box/screenshot.rb - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language