natydev/fitbark

View on GitHub
lib/fitbark/constants.rb

Summary

Maintainability
A
0 mins
Test Coverage

Fitbark::Constants has 7 constants
Open

  module Constants
Severity: Minor
Found in lib/fitbark/constants.rb by reek

Too Many Constants is a special case of LargeClass.

Example

Given this configuration

TooManyConstants:
  max_constants: 3

and this code:

class TooManyConstants
  CONST_1 = :dummy
  CONST_2 = :dummy
  CONST_3 = :dummy
  CONST_4 = :dummy
end

Reek would emit the following warning:

test.rb -- 1 warnings:
  [1]:TooManyConstants has 4 constants (TooManyConstants)

Fitbark::Constants#camel doesn't depend on instance state (maybe move it to another class?)
Open

    def camel(str)
Severity: Minor
Found in lib/fitbark/constants.rb by reek

A Utility Function is any instance method that has no dependency on the state of the instance.

There are no issues that match your filters.

Category
Status