Add cop to make sure we don't use ivar in a module

This commit is contained in:
Lin Jen-Shin
2017-07-12 02:29:33 +08:00
parent 4cadf22e20
commit 9ae92b8caa
81 changed files with 475 additions and 34 deletions

View File

@ -1,5 +1,6 @@
# Module providing methods for dealing with separating a tree-ish string and a
# file path string when combined in a request parameter
# rubocop:disable Cop/ModuleWithInstanceVariables
module ExtractsPath
# Raised when given an invalid file path
InvalidPathError = Class.new(StandardError)