Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'danger/plugins/todos.rb')
-rw-r--r--danger/plugins/todos.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/danger/plugins/todos.rb b/danger/plugins/todos.rb
new file mode 100644
index 00000000000..b31f147f2af
--- /dev/null
+++ b/danger/plugins/todos.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+require_relative '../../tooling/danger/outdated_todo'
+
+module Danger
+ class Todos < ::Danger::Plugin
+ def check_outdated_todos(filenames)
+ Tooling::Danger::OutdatedTodo.new(filenames, context: self).check
+ end
+ end
+end