This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubocop' | |
require 'english' | |
ADDED_OR_MODIFIED = /A|AM|^M/ | |
# to prevent code injection: system is a dangerous call | |
def raise_single_quote_error | |
raise ArgumentError, 'Single quotes are not allowed in filenames here.' |