myfreecomm/rexpense-client-ruby

View on GitHub
lib/rexpense/http.rb

Summary

Maintainability
A
0 mins
Test Coverage

Freeze mutable objects assigned to constants.
Open

    SANDBOX_URL = "https://sandbox.rexpense.com/api"
Severity: Minor
Found in lib/rexpense/http.rb by rubocop

This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

Example:

# bad
CONST = [1, 2, 3]

# good
CONST = [1, 2, 3].freeze

Freeze mutable objects assigned to constants.
Open

    PRODUCTION_URL = "https://app.rexpense.com/api"
Severity: Minor
Found in lib/rexpense/http.rb by rubocop

This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

Example:

# bad
CONST = [1, 2, 3]

# good
CONST = [1, 2, 3].freeze

There are no issues that match your filters.

Category
Status