class Codeqa::Checkers::CheckPry
Public Class Methods
check?(sourcefile)
click to toggle source
# File lib/codeqa/checkers/check_pry.rb, line 14 def self.check?(sourcefile) sourcefile.ruby? end
Private Class Methods
pattern()
click to toggle source
# File lib/codeqa/checkers/check_pry.rb, line 20 def self.pattern @pattern ||= /binding\.pry/ end
Public Instance Methods
hint()
click to toggle source
# File lib/codeqa/checkers/check_pry.rb, line 10 def hint 'Leftover binding.pry found, please remove it.' end
name()
click to toggle source
# File lib/codeqa/checkers/check_pry.rb, line 6 def name 'pry' end
Private Instance Methods
error_msg(_line, line_number, _pos)
click to toggle source
# File lib/codeqa/checkers/check_pry.rb, line 23 def error_msg(_line, line_number, _pos) "binding.pry in line #{line_number}" end