I don't think that this would be a good tradeoff, because it would
introduce a lot of noise into the codebase. If those comments are really
bothering you, you might achieve similar results with certain editors
(search and replace maybe?).
In any case, the good news is that you only have to do it once.

Rolandas


On Thu, Jan 25, 2018, at 20:34, mat...@prbytes.com wrote:
> The first thing I do after generating a Rails app is *remove the
> default code comments*. I was having trouble finding a script to do
> this automatically, so I decided to *make this*[1]. It's super hacky
> and *not recommended* since it removes them after they've been added,
> but it gets the job done for now.>
> It would be cool to allow the user to *skip generating the comments*
> by adding a "*--skip-comments*" flag and by wrapping each comment in
> the template files:> 
> <% unless skip_comments -%>
>   # comment
> <% end -%>
> 
> 


>
> But I can see how *maintaining this could get out of hand*, since each
> comment in a template would require this logic. An alternative would
> be using a similar approach to my method and removing them after
> they've been created, but this might cause issues in future Ruby
> versions and template changes.
>
> You’ve probably already thought about this, but this would save me a
> lot of time so I want to make sure. :D
>
> Thanks!
>
> Matias> 


> --
>  You received this message because you are subscribed to the Google
>  Groups "Ruby on Rails: Core" group.>  To unsubscribe from this group and 
> stop receiving emails from it,
>  send an email to rubyonrails-core+unsubscr...@googlegroups.com.>  To post to 
> this group, send email to rubyonrails-
>  c...@googlegroups.com.>  Visit this group at 
> https://groups.google.com/group/rubyonrails-core.>  For more options, visit 
> https://groups.google.com/d/optout.


Links:

  1. https://github.com/MatiasFMolinari/skip_rails_comments

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to