alsemyonov/rom-files

View on GitHub

Showing 2 of 6 total issues

Method pathmap has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def pathmap(spec = nil, &block)
        return self if spec.nil?
        result = +''
        # noinspection SpellCheckingInspection
        spec.scan(/%\{[^}]*\}-?\d*[sdpfnxX%]|%-?\d+d|%.|[^%]+/) do |frag|
Severity: Minor
Found in lib/pathname/extensions/pathmap.rb - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

            return type[processor.(pathname)] if processor?
    Severity: Major
    Found in lib/rom/files/attribute.rb - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language