Skip to content

Commit 1f6b3f5

Browse files
committed
Add warning for missing ignored files.
1 parent 65fa00d commit 1f6b3f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks/steep.rake

+4-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ namespace :steep do
6969
File
7070
.foreach('Steepfile')
7171
.with_object([]) { |line, ignored_files| line =~ /^\s*ignore\s+(["'])(.*?(?:\\?.)*?)\1/ && ignored_files << $2 }
72-
.each { |file| $stdout.write("|datadog|#{file}|ignored|N/A|N/A|N/A|0|\n") }
72+
.each do |file|
73+
$stdout.write("|datadog|#{file}|ignored|N/A|N/A|N/A|0|\n")
74+
warn "Ignored file '#{file}' does not exist. Please remove it from the Steepfile." unless File.exist?(file)
75+
end
7376
else
7477
sh "steep stats --format=#{format}"
7578
end

0 commit comments

Comments
 (0)