Class: ParseStateFormater
Instance Attribute Summary
Attributes inherited from BaseFormater
#current, #errors, #warnings
Instance Method Summary
collapse
#initialize, #reset_data, #warn_error?
Constructor Details
This class inherits a constructor from BaseFormater
Instance Method Details
#def_compute_state(name, complexity, lines) ⇒ Object
819
820
821
822
823
|
# File 'lib/saikuro.rb', line 819
def def_compute_state(name,complexity,lines)
return if @filter.ignore?(complexity)
warn_error?(complexity, name)
@out.puts "Type:Def Name:#{name} Complexity:#{complexity} Lines:#{lines}"
end
|
#end ⇒ Object
806
807
|
# File 'lib/saikuro.rb', line 806
def end
end
|
#end_class_compute_state(name) ⇒ Object
815
816
817
|
# File 'lib/saikuro.rb', line 815
def end_class_compute_state(name)
@out.puts "-- END #{name} --"
end
|
#start(new_out = nil) ⇒ Object
801
802
803
804
|
# File 'lib/saikuro.rb', line 801
def start(new_out=nil)
reset_data
@out = new_out if new_out
end
|
#start_class_compute_state(type_name, name, complexity, lines) ⇒ Object
809
810
811
812
813
|
# File 'lib/saikuro.rb', line 809
def start_class_compute_state(type_name,name,complexity,lines)
@current = name
@out.puts "-- START #{name} --"
@out.puts "Type:#{type_name} Name:#{name} Complexity:#{complexity} Lines:#{lines}"
end
|