lib/apple_vpp/url_service.rb
Assignment Branch Condition size for refresh is too high. [24.76/15] Open
Open
def refresh
url = "#{SERVICE_URL}VPPServiceConfigSrv"
resp = Request.submit url
@associate_license_srv_url = resp["associateLicenseSrvUrl"]
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric
Freeze mutable objects assigned to constants. Open
Open
SERVICE_URL = "https://vpp.itunes.apple.com/WebObjects/MZFinance.woa/wa/"
- Read upRead up
- Exclude checks
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