I am having trouble with reek configuration. I am using metric_fu and added a .metrics file and also .reek file in the config folder.
here is my .metrics code
MetricFu::Configuration.run do |config|
config.configure_metrics.each do |metric|
if [:reek,:flay].include?(
metric.name)
metric.enabled = true
dir_name = "dirs_to_#{
metric.name}"
metric.send(dir_name, %w(app/command_factory app/domain app/models app/validators lib ))
else
metric.enabled = false
end
end
end
my .reek file in config folder(I also tried moving the file to the root directory that didnt help either)
---
FeatureEnvy:
enabled: true
I want only the feature envy code smell and nothing else but when I do rake metrics:all I it checks for all the code smells for Reek.
where is the reek config file that metric fu is looking at?
Any help on this will be appreciated.
Thanks
Ramya