Don't generate files if nocode option is true

Don't generate files if nocode option is true