You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method process_file is triggering the UtilityFunction.
This is a helper module, why is it complaining about it not depending on the instance state?
moduleRepositoryHelperCLONE_PATH=Rails.root.join('tmp').to_sLOGGER=Rails.logger
...
defprocess_file(path,pattern_name,sub_options=[])IO.write(path,File.open(path){ |file| file.read.gsub(*sub_options)})LOGGER.info("Substituted #{pattern_name} in #{path}")endend
The text was updated successfully, but these errors were encountered:
Yeah, that was a design decision we took a loooong time ago and it surely was a controversial one ;)
In short, we consider helper modules smelly by definition, hence Reek raises an alert. For more details see here.
You can either disable raising an alert for these methods via magic comment or if you want to disable it for that whole file tweak your Reek configuration like detailed here, e.g. in your case by adding
Hello,
The method
process_file
is triggering theUtilityFunction
.This is a helper module, why is it complaining about it not depending on the instance state?
The text was updated successfully, but these errors were encountered: