221,225c221 < < def file_kinds(kind) < ((@file_kinds ||= []) << kind).uniq! || @file_kinds < end < --- > 235d230 < file_kinds :app 276c271,272 < base.match(/\A#{Regexp.escape(extended_root)}\/*#{file_kinds(:lib) * '|'}/) || base =~ %r{rails-[\d.]+/builtin} --- > # Exclude all paths that are not nested within app, lib, or components. > base.match(/\A#{Regexp.escape(extended_root)}\/*(app|lib|components)\/[a-z]/) || base =~ %r{rails-[\d.]+/builtin}