提交 3dc1b1e2 编写于 作者: J Justin Collins

Ignore tasks

上级 11ecc4f1
......@@ -71,7 +71,7 @@ module Brakeman
end
def lib_paths
@lib_files ||= find_paths("lib").reject { |path| path.include? "/generators/" }
@lib_files ||= find_paths("lib").reject { |path| path.include? "/generators/" or path.include? "lib/tasks/" }
end
private
......
class SomeTask
def some_task
# Should not warn because we are ignoring tasks
`#{x}`
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册