raszi/cleanup_vendor

View on GitHub
lib/cleanup_vendor.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Showing 0 of 2 total issues

Method filter has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
Invalid

def filter(dir, opts = {})
raise Error, 'Not a directory' unless File.directory?(dir.to_s)
return to_enum(:filter, dir, opts) unless block_given?
 
files, directories, filtered, exclude = get_options(opts)
Severity: Minor
Found in lib/cleanup_vendor.rb - About 2 hrs to fix

Method run has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Invalid

def run(dir, opts = {})
summary = []
 
filter(dir, DEFAULTS.merge(opts)) do |p|
summary << p.summary if opts[:summary]
Severity: Minor
Found in lib/cleanup_vendor.rb - About 1 hr to fix

There are no issues that match your filters.

Category
Status