We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Gemfile.lock
.rubocop.yml
1 parent a9c1e64 commit e1b0ceeCopy full SHA for e1b0cee
lib/erb_lint/cache.rb
@@ -9,6 +9,8 @@ def initialize(config, cache_dir = nil)
9
@cache_dir = cache_dir || CACHE_DIRECTORY
10
@hits = []
11
@new_results = []
12
+ @gemfile_lock = File.read("Gemfile.lock") if File.exist?("Gemfile.lock")
13
+ @rubocop_config = File.read(".rubocop.yml") if File.exist?(".rubocop.yml")
14
puts "Cache mode is on"
15
end
16
@@ -76,7 +78,7 @@ def checksum(filename, file_content)
76
78
mode = File.stat(filename).mode
77
79
80
digester.update(
- "#{mode}#{config.to_hash}#{ERBLint::VERSION}#{file_content}",
81
+ "#{mode}#{config.to_hash}#{ERBLint::VERSION}#{@rubocop_config}#{@gemfile_lock}#{file_content}",
82
)
83
digester.hexdigest
84
rescue Errno::ENOENT
0 commit comments