Dariusch/plenty_client

View on GitHub
lib/plenty_client/constants.rb

Summary

Maintainability
B
4 hrs
Test Coverage

File constants.rb has 354 lines of code (exceeds 250 allowed). Consider refactoring.
Open

module PlentyClient
  class Constants
    AVAILABLE_LANGS = %w(de en bg fr it es tr nl pl pt nn ro da se cz ru sk cn vn).freeze

    PAYMENT_STATUS_IDS = [
Severity: Minor
Found in lib/plenty_client/constants.rb - About 4 hrs to fix

    %w-literals should be delimited by [ and ].
    Open

        AVAILABLE_LANGS = %w(de en bg fr it es tr nl pl pt nn ro da se cz ru sk cn vn).freeze
    Severity: Minor
    Found in lib/plenty_client/constants.rb by rubocop

    This cop enforces the consistent usage of %-literal delimiters.

    Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

    Example:

    # Style/PercentLiteralDelimiters:
    #   PreferredDelimiters:
    #     default: '[]'
    #     '%i':    '()'
    
    # good
    %w[alpha beta] + %i(gamma delta)
    
    # bad
    %W(alpha #{beta})
    
    # bad
    %I(alpha beta)

    There are no issues that match your filters.

    Category
    Status