lib/rmt/cli/clean.rb
Method packages
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def packages
print "\n\e[1m"
print _("Scanning the mirror directory for 'repomd.xml' files...")
print "\e[0m\n"
Method generate_partial_report
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)
Method run_package_clean
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run_package_clean(repomd_files)
# Initialize table to keep registry of inodes referencing dangling files/links
@inodes = Hash.new(0)
partial_reports =