From 30231e47c3ab2dad85b4c060b6e74b7ce62ca40f Mon Sep 17 00:00:00 2001 From: Diogo Autilio Date: Sun, 22 Sep 2024 12:11:34 -0300 Subject: [PATCH] Adjust Dangerfile --- Dangerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dangerfile b/Dangerfile index 1742f7b..9104816 100644 --- a/Dangerfile +++ b/Dangerfile @@ -5,8 +5,8 @@ warn("PR is classed as Work in Progress") if github.pr_title.include?("WIP") warn("Big PR - #{git.lines_of_code} lines of code") if git.lines_of_code > 150 # Ensure testing shortcuts (fdescribe, fit) aren't accidentally merged into master -fail("fdescribe found in tests") if `grep -r fdescribe specs/ `.length > 1 -fail("fit found in tests") if `grep -r fit specs/ `.length > 1 +fail("fdescribe found in tests") if `grep -r fdescribe Tests/ `.length > 1 +fail("fit found in tests") if `grep -r fit Tests/ `.length > 1 # Define a method to handle directory linting def lint_directory(directory, config_file)