lib/rmt/cli/clean.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method packages has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def packages
    print "\n\e[1m"
    print _("Scanning the mirror directory for 'repomd.xml' files...")
    print "\e[0m\n"

Severity: Minor
Found in lib/rmt/cli/clean.rb - About 1 hr to fix

    Method generate_partial_report has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def generate_partial_report(repo_base_dir, cleaned_files)
        cleaned_files_count = cleaned_files.count
        cleaned_files_size = cleaned_files.sum(&:file_size)
        cleaned_db_entries = cleaned_files.sum(&:db_entries_count)
    
    
    Severity: Minor
    Found in lib/rmt/cli/clean.rb - About 1 hr to fix

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

        def run_package_clean(repomd_files)
          # Initialize table to keep registry of inodes referencing dangling files/links
          @inodes = Hash.new(0)
      
          partial_reports =
      Severity: Minor
      Found in lib/rmt/cli/clean.rb - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status