ronin-rb/ronin

View on GitHub
lib/ronin/cli/pattern_options.rb

Summary

Maintainability
C
1 day
Test Coverage

File pattern_options.rb has 251 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'ronin/support/text/patterns'

module Ronin
  class CLI
    #
Severity: Minor
Found in lib/ronin/cli/pattern_options.rb - About 2 hrs to fix

    Method define_source_code_options has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          def self.define_source_code_options(command)
            command.option :identifier, desc: 'Searches for all identifier names' do
              @pattern = IDENTIFIER
            end
    
    
    Severity: Minor
    Found in lib/ronin/cli/pattern_options.rb - About 2 hrs to fix

      Method define_pii_options has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            def self.define_pii_options(command)
              command.option :user_name, desc: 'Searches for all user names' do
                @pattern = USER_NAME
              end
      
      
      Severity: Minor
      Found in lib/ronin/cli/pattern_options.rb - About 1 hr to fix

        Method define_file_system_options has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              def self.define_file_system_options(command)
                command.option :file_name, desc: 'Searches for all file names' do
                  @pattern = FILE_NAME
                end
        
        
        Severity: Minor
        Found in lib/ronin/cli/pattern_options.rb - About 1 hr to fix

          Method define_network_options has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                def self.define_network_options(command)
                  command.option :mac_addr, desc: 'Searches for all MAC addresses' do
                    @pattern = MAC_ADDR
                  end
          
          
          Severity: Minor
          Found in lib/ronin/cli/pattern_options.rb - About 1 hr to fix

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

                  def self.define_credentials_options(command)
                    command.option :ssh_private_key, desc: 'Searches for all SSH private key data' do
                      @pattern = SSH_PRIVATE_KEY
                    end
            
            
            Severity: Minor
            Found in lib/ronin/cli/pattern_options.rb - About 1 hr to fix

              There are no issues that match your filters.

              Category