A platform for community discussion. Free, open, simple.
DEV: simpler Dangerfile logic (#6911)
Joffrey JAFFEUX6f0bc16bafe2
diff --git a/Dangerfile b/Dangerfileindex f1c779cb305..2f6e4c30710 100644--- a/Dangerfile+++ b/Dangerfile@@ -19,8 +19,8 @@ if locales_changes.any? && has_non_en_locales_changesendfiles = (git.added_files + git.modified_files)- .reject! { |path| path.start_with?("plugins/") }- .reject! { |path| !(path.end_with?("es6") || path.end_with?("rb")) }+ .select { |path| !path.start_with?("plugins/") }+ .select { |path| path.end_with?("es6") || path.end_with?("rb") }super_offenses = []