class RuboCop::ResultCache
def relevant_options_digest(options)
no effect on which offenses and disabled line ranges are found, and thus
Return a hash of the options given at invocation, minus the ones that have
def relevant_options_digest(options) options = options.reject { |key, _| NON_CHANGING.include?(key) } options = options.to_s.gsub(/[^a-z]+/i, '_') # We must avoid making file names too long for some filesystems to handle # If they are short, we can leave them human-readable options.length <= 32 ? options : Digest::SHA1.hexdigest(options) end