lib/settingson/store.rb
Class Store
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Settingson::Store
require 'settingson/store/default'
require 'settingson/store/general'
TODO found Open
Open
# TODO: move all methods to support class
- Exclude checks
Use ==
if you meant to do a comparison or wrap the expression in parentheses to indicate you meant to assign in a condition. Open
Open
if record = @__klass.find_by(key: @__path)
- Read upRead up
- Exclude checks
This cop checks for assignments in the conditions of if/while/until.
Example:
# bad
if some_var = true
do_something
end
Example:
# good
if some_var == true
do_something
end