Skip to content

Commit 0b29186

Browse files
committed
Add warning for missing ignored files instead of appending them to the summary.
1 parent 65fa00d commit 0b29186

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tasks/steep.rake

+7-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ 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+
if File.exist?(file)
74+
$stdout.write("|datadog|#{file}|ignored|N/A|N/A|N/A|0|\n")
75+
else
76+
warn "Ignored file '#{file}' does not exist. Please remove it from the Steepfile."
77+
end
78+
end
7379
else
7480
sh "steep stats --format=#{format}"
7581
end

0 commit comments

Comments
 (0)