fog/fog-azure-rm

View on GitHub

Showing 528 of 528 total issues

Use a guard clause instead of wrapping the code inside a conditional expression.
Open

if missing.length == 1

Method Fog::Storage::AzureRM::File#body= is defined at both lib/fog/azurerm/models/storage/file.rb:11 and lib/fog/azurerm/models/storage/file.rb:137.
Open

def body=(new_body)

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

attribute :copy_source, aliases: %w(Copy-Source CopySource)

Use a guard clause instead of wrapping the code inside a conditional expression.
Open

if frontend_ip_configuration.is_a?(Hash)

Use a guard clause instead of wrapping the code inside a conditional expression.
Open

if backend_address_pools.any?

Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency azure_mgmt_compute should appear before fog-json.
Open

spec.add_dependency 'azure_mgmt_compute', '~> 0.9.0'
Severity: Minor
Found in fog-azure-rm.gemspec by rubocop

Use SCREAMING_SNAKE_CASE for constants.
Open

PremiumLRS = 'Premium_LRS'.freeze

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

attribute :content_type, aliases: %w(Content-Type ContentType)

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

attribute :content_encoding, aliases: %w(Content-Encoding ContentEncoding)

Use a guard clause instead of wrapping the code inside a conditional expression.
Open

if ssl_certificates.any?

Use a guard clause instead of wrapping the code inside a conditional expression.
Open

if backend_http_settings_list.any?

Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency codeclimate-test-reporter should appear before simplecov.
Open

spec.add_development_dependency 'codeclimate-test-reporter' , '~> 1.0.0'
Severity: Minor
Found in fog-azure-rm.gemspec by rubocop

Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency azure_mgmt_dns should appear before azure_mgmt_network.
Open

spec.add_dependency 'azure_mgmt_dns', '~> 0.9.0'
Severity: Minor
Found in fog-azure-rm.gemspec by rubocop

Use SCREAMING_SNAKE_CASE for constants.
Open

StandardZRS = 'Standard_ZRS'.freeze

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

attribute :accept_ranges, aliases: %w(Accept-Ranges AcceptRanges)

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

attribute :copy_id, aliases: %w(Copy-Id CopyId)

Use %i or %I for an array of symbols.
Open

invalid_attr = [:resource_group, :name, :location, :id]

Use a guard clause instead of wrapping the code inside a conditional expression.
Open

if missing.length == 1

required_ruby_version (2.0, declared in fog-azure-rm.gemspec) and TargetRubyVersion (2.1, declared in .rubocop.yml) should be equal.
Open

spec.required_ruby_version = '>= 2.0.0'
Severity: Minor
Found in fog-azure-rm.gemspec by rubocop

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

attribute :copy_status_description, aliases: %w(Copy-Status-Description CopyStatusDescription)
Severity
Category
Status
Source
Language