daanforever/settingson

View on GitHub
lib/settingson/store.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Class Store has 21 methods (exceeds 20 allowed). Consider refactoring.
Open

class Settingson::Store

  require 'settingson/store/default'
  require 'settingson/store/general'

Severity: Minor
Found in lib/settingson/store.rb - About 2 hrs to fix

    TODO found
    Open

      # TODO: move all methods to support class
    Severity: Minor
    Found in lib/settingson/store.rb by fixme

    Use == if you meant to do a comparison or wrap the expression in parentheses to indicate you meant to assign in a condition.
    Open

        if record = @__klass.find_by(key: @__path)
    Severity: Minor
    Found in lib/settingson/store.rb by rubocop

    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

    There are no issues that match your filters.

    Category
    Status