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
834
835
836
837
838
|
# File 'lib/saikuro.rb', line 834
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
821
822
|
# File 'lib/saikuro.rb', line 821
def end
end
|
#end_class_compute_state(name) ⇒ Object
830
831
832
|
# File 'lib/saikuro.rb', line 830
def end_class_compute_state(name)
@out.puts "-- END #{name} --"
end
|
#start(new_out = nil) ⇒ Object
816
817
818
819
|
# File 'lib/saikuro.rb', line 816
def start(new_out=nil)
reset_data
@out = new_out if new_out
end
|
#start_class_compute_state(type_name, name, complexity, lines) ⇒ Object
824
825
826
827
828
|
# File 'lib/saikuro.rb', line 824
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
|