Skip to content

Commit

Permalink
Comment to not rely on mtime [rubocop#8633]
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Sep 4, 2020
1 parent 0904a72 commit 8cc6391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/result_cache.rb
Expand Up @@ -172,7 +172,7 @@ def rubocop_checksum
rubocop_extra_features
.select { |path| File.file?(path) }
.sort!
.each { |path| digest << Zlib.crc32(IO.read(path)).to_s }
.each { |path| digest << Zlib.crc32(IO.read(path)).to_s } # mtime not reliable
digest << RuboCop::Version::STRING << RuboCop::AST::Version::STRING
digest.hexdigest
end
Expand Down

0 comments on commit 8cc6391

Please sign in to comment.