Sha256: 2e3a33884ea450ac88fff2259773451d5be0a0c2cf1329986401adfd95ac16d1
Contents?: true
Size: 504 Bytes
Versions: 8
Compression:
Stored size: 504 Bytes
Contents
require 'codeqa/checkers/pattern_checker' module Codeqa module Checkers class CheckPry < PatternChecker def name 'pry' end def hint 'Leftover binding.pry found, please remove it.' end def self.check?(sourcefile) sourcefile.ruby? end private def self.pattern @pattern ||= /binding\.pry/ end def error_msg(_line, line_number, _pos) "binding.pry in line #{line_number}" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems