Sha256: 3250f80749f25096eb3b8b1326522397835d531c8e494b58e61f065bb0c58c15

Contents?: true

Size: 465 Bytes

Versions: 10

Compression:

Stored size: 465 Bytes

Contents

Feature: Smell - TooManyConstants
  Scenario: Reports smell
    Given a file named "my_class.rb" with:
      """
      class MyClass
        A = 1
        B = 2
        C = 3
        D = 4
        E = 5
        F = 6
      end
      """
    When I run `reek my_class.rb`
    Then it reports:
    """
    my_class.rb -- 1 warning:
      [1]:TooManyConstants: MyClass has 6 constants [https://github.com/troessner/reek/blob/master/docs/Too-Many-Constants.md]
    """

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
reek-4.4.2 features/smells/too_many_constants.feature
reek-4.4.1 features/smells/too_many_constants.feature
reek-4.4.0 features/smells/too_many_constants.feature
reek-4.3.0 features/smells/too_many_constants.feature
reek-4.2.5 features/smells/too_many_constants.feature
reek-4.2.4 features/smells/too_many_constants.feature
reek-4.2.3 features/smells/too_many_constants.feature
reek-4.2.2 features/smells/too_many_constants.feature
reek-4.2.1 features/smells/too_many_constants.feature
reek-4.2.0 features/smells/too_many_constants.feature