Method: RuboCop::ResultCache.source_checksum
- Defined in:
- lib/rubocop/result_cache.rb
.source_checksum ⇒ Object
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.
The checksum of the RuboCop program running the inspection.
185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/rubocop/result_cache.rb', line 185 def source_checksum @source_checksum ||= begin digest = Digest::SHA1.new rubocop_extra_features .select { |path| File.file?(path) } .sort! .each do |path| digest << digest(path) end digest << RuboCop::Version::STRING << RuboCop::AST::Version::STRING digest.hexdigest end end |