rails_best_practices
rails_best_practices copied to clipboard
Can not use config to ignore some files on my own checklists
trafficstars
Hi, I've tried to write my own checklist for migration, and I want to skip some migration files. I thought I could use rails_best_practices.yml to ignore these files. But it turns out not working. Is there any way I can do?
Versions:
Ruby: 2.5.1 Rails: 5.1.6 rails_best_practices: 1.19.3
Description:
Same problem here. I generated the configuration yaml with rails_best_practices -g, edited the following line accordingly:
DefaultScopeIsEvilCheck: { ignored_files: '_paginator.html.slim' }
but the _paginator.html.slim still shows up while running rails_best_practices:
app/views/kaminari/_paginator.html.slim:6 - move code into model (page use_count > 2)