Disable the NumericLiterals cop for rubocop

- Disable the NumericLiterals cop in the .rubocop.yml file - this cop enforces
  an underscore '_' every 3 characters of an integer. This doesn't make much
  sense in our use case and reduces readability. Especially for port numbers.
- Remove any existing entries that were abiding by the NumericLiterals
  cop.

Change-Id: I3840241c1f5326e1bee72a9092e97e10efa6682f
Addresses: blueprint rubocop-integer
This commit is contained in:
Andy McCrae 2014-02-25 17:40:30 +00:00
parent 781bbb07d0
commit 515de5e6f0
2 changed files with 5 additions and 2 deletions

View File

@ -14,6 +14,9 @@ Encoding:
- metadata.rb
- Gemfile
NumericLiterals:
Enabled: false
LineLength:
Enabled: false

View File

@ -231,7 +231,7 @@ default['openstack']['compute']['config']['quota_fixed_ips'] = -1
# number of floating ips allowed per project (default: 10)
default['openstack']['compute']['config']['quota_floating_ips'] = 10
# number of bytes allowed per injected file (default: 10240)
default['openstack']['compute']['config']['quota_injected_file_content_bytes'] = 10_240
default['openstack']['compute']['config']['quota_injected_file_content_bytes'] = 10240
# number of bytes allowed per injected file path (default: 255)
default['openstack']['compute']['config']['quota_injected_file_path_bytes'] = 255
# number of injected files allowed (default: 5)
@ -243,7 +243,7 @@ default['openstack']['compute']['config']['quota_key_pairs'] = 100
# number of metadata items allowed per instance (default: 128)
default['openstack']['compute']['config']['quota_metadata_items'] = 128
# megabytes of instance ram allowed per project (default: 51200)
default['openstack']['compute']['config']['quota_ram'] = 51_200
default['openstack']['compute']['config']['quota_ram'] = 51200
default['openstack']['compute']['ratelimit']['settings'] = {
'generic-post-limit' => { 'verb' => 'POST', 'uri' => '*', 'regex' => '.*', 'limit' => '10', 'interval' => 'MINUTE' },