reek
reek copied to clipboard
Code smell detector for Ruby
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. Release notes Sourced from rubocop's releases. RuboCop 1.34.1 Bug fixes #10893: Fix an error when running rubocop without bundle exec....
https://github.com/troessner/reek/blob/master/lib/reek/smell_detectors/too_many_methods.rb#L39 > TODO: Only checks instance methods! I resolved the todo above.
The following code ``` module Admins class refers to 'user' more than self (maybe move it to another class?) Goes away if I use def self.active_users. (prepend self) The same...
Given the following code: ~~~ ruby def method case x when :a if y.method || a.method end when :b if y.method || b.method end end end ~~~ reek reports a...
Addresses https://github.com/troessner/reek/issues/1538 This PR implements a way to not raise `UtilityFunction` warning for methods defined in `class_methods` block
Hi there I've observed a false positive for UtilityFunction when class methods are defined under `class_methods` block of `ActiveSupport::Concern` For instance ```ruby module SomeModule extend ActiveSupport::Concern class_methods do def some_method(arg1,...
I'm really beginning to dislike the FeatureEnvy detector for small methods: ```ruby def common_parameters_equal?(other_parameters) smell_warning.parameters.values_at(*other_parameters.keys) == other_parameters.values end ``` Should we make this less strict? Require a larger difference? More...
I still need to look into it more, but this looks interesting: https://rubyworks.github.io/xdg/
Hello! 🙂 Lately I've been working on cleaning up a lot of old code in RuboCop, and one of the most common patterns that has appeared is overly abstruse conditionals,...
## Setup Rails app, where helpers smell of _UtilityFunction_ ### _.reek.yml_ ```yml directories: "app/helpers": UtilityFunction: enabled: false ``` ### _app/helpers/foo_helper.rb_ ```ruby module FooHelper def smelly_method(bar) bar.presence end end ``` ##...