Closed cdrrazan closed 1 year ago
@cdrrazan You can fix it by adding those methods in the proper config/rails_best_practices.yml
file. In my case, I updated that file with:
RemoveUnusedMethodsInModelsCheck: { except_methods: ['User#search_data'] }
and then it passed. Hope it helps
Upon running and executing rails_best_practices, it labels
search_data
as unused model method whereassearch_data
is used from searchkick to control the type of indexing.This should be ignored!