flyerhzm / rails_best_practices

a code metric tool for rails projects
http://rails-bestpractices.com
MIT License
4.17k stars 276 forks source link

Can not use config to ignore some files on my own checklists #269

Open wellsonjain opened 8 years ago

wellsonjain commented 8 years ago

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?

Hyperadministrator commented 6 years ago

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)