Method: RuboCop::ResultCache#initialize
- Defined in:
- lib/rubocop/result_cache.rb
#initialize(file, team, options, config_store, cache_root_override = nil) ⇒ ResultCache
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ResultCache.
99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/rubocop/result_cache.rb', line 99 def initialize(file, team, , config_store, cache_root_override = nil) cache_root_override ||= [:cache_root] if [:cache_root] rubocop_cache_dir = ResultCache.cache_root(config_store, cache_root_override) @allow_symlinks_in_cache_location = ResultCache.allow_symlinks_in_cache_location?(config_store) @path = File.join(rubocop_cache_dir, self.class.source_checksum, context_checksum(team, ), file_checksum(file, config_store)) @cached_data = CachedData.new(file) @debug = [:debug] end |