modern-rails-template icon indicating copy to clipboard operation
modern-rails-template copied to clipboard

When `rails new`, one file is not commited

Open db0sch opened this issue 7 years ago • 1 comments

.overcommit.yml is not commited after the rails new process

db0sch avatar Feb 13 '18 16:02 db0sch

Yep, for the moment it is normal. We need to find a workaround. Creating .overcommit.yml setup git hook. One of then check rubocop errors before commit. So you cannot commit as long as you have rubocop errors. And their is still something like 15 rubocop errors in the project that you need to fix manually before being able to commit again.

Not sure I am clear.

The only workaround I see would be to ignore the rubocop errors generated by rails new in the template. They are mostly LineTooLong errors in config files.

damienlethiec avatar Feb 13 '18 17:02 damienlethiec