Class: DontComment::Formatter::Simple
- Defined in:
- lib/dont_comment/formatter/simple.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from DontComment::Formatter::Base
Instance Method Details
#format(io) ⇒ Object
4 5 6 7 8 |
# File 'lib/dont_comment/formatter/simple.rb', line 4 def format(io) @offenses.each do |offense| io.puts "#{offense.relative_path}:#{offense.loc.line}: Do not comment out unused code, use version control system instead and remove it!" end end |