From d1a13e8d4cee14dc164a3b0182b5282a6d3b137a Mon Sep 17 00:00:00 2001 From: Taylor Thurlow Date: Mon, 21 Aug 2023 10:33:59 -0700 Subject: [PATCH] Raise error when no files found to pass to standard --- lib/index.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/index.rb b/lib/index.rb index c807b39..b71b1d1 100644 --- a/lib/index.rb +++ b/lib/index.rb @@ -84,6 +84,8 @@ def run_standardrb conclusion = "success" count = 0 + raise "No files found to pass to standard" if errors["files"].none? + errors["files"].each do |file| path = file["path"] offenses = file["offenses"]