try both ree and cop

This commit is contained in:
Torsten Ruger 2016-12-17 09:44:21 +02:00
parent 782627ae79
commit c12f11fba5
2 changed files with 1 additions and 17 deletions

View File

@ -10,7 +10,7 @@ engines:
fixme:
enabled: true
rubocop:
enabled: false
enabled: true
reek:
enabled: true
ratings:

View File

@ -1,16 +0,0 @@
module Typed
module FieldDef
include AST::Sexp
def on_FieldDef statement
# type , name , value = *statement
reset_regs # field_def is a statement, no return and all regs
name_s = no_space( statement.name.value )
@method.add_local( name_s, statement.type ) unless( @method.has_arg(name_s))
# if there is a value assigned, process it as am assignemnt statement (kind of call on_assign)
process( Tree::Assignment.new(statement.name , statement.value ) ) if statement.value
return nil
end
end
end