rails_best_practices
rails_best_practices copied to clipboard
Not detecting config file change
Steps:
- bundle exec rails_best_practices app
- bundle exec rails_best_practices -g
- change options in app/config/rails_best_practices.yml
-
repeat 1
I did this, and although I removed some checks (1.9 hash), the checks are still being run.
Ideas?
could you try
$ cd app $ bundle exec rails_best_practices -g $ vi config/rails_best_practices.yml $ bundle exec rails_best_practices
Thanks for the help.
That does exactly the same thing. rails_best_practices is not using the config file, it must be using a cached config file or default behavior.
I have since uninstalled:
- be (bundle exec) gem uninstall rails_best_practices
- be install << successfully reinstalled rails_best_practices
- be rails_best_practices app
...config file still not being used.
sorry that I can't reproduce this issue.
could you print custom_config https://github.com/railsbp/rails_best_practices/blob/master/lib/rails_best_practices/core/runner.rb#L42 to see if the config file exists?
Sorry, how would I print the custom_config variable from bundle exec context?
If this doesn't give me any indication I'll see about completely removing the gem from all sources and reinstalling to let you know if that worked.
you can get gem path by bundle show rails_best_practices
, and then add debug code