Showing 528 of 528 total issues
Use a guard clause instead of wrapping the code inside a conditional expression. Open
if missing.length == 1
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
attribute :copy_source, aliases: %w(Copy-Source CopySource)
- Read upRead up
- Exclude checks
Use a guard clause instead of wrapping the code inside a conditional expression. Open
if frontend_ip_configuration.is_a?(Hash)
- Read upRead up
- Exclude checks
Use a guard clause instead of wrapping the code inside a conditional expression. Open
if backend_address_pools.any?
- Read upRead up
- Exclude checks
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'
- Read upRead up
- Exclude checks
Use SCREAMING_SNAKE_CASE for constants. Open
PremiumLRS = 'Premium_LRS'.freeze
- Read upRead up
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
attribute :content_type, aliases: %w(Content-Type ContentType)
- Read upRead up
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
attribute :content_encoding, aliases: %w(Content-Encoding ContentEncoding)
- Read upRead up
- Exclude checks
Use a guard clause instead of wrapping the code inside a conditional expression. Open
if ssl_certificates.any?
- Read upRead up
- Exclude checks
Use a guard clause instead of wrapping the code inside a conditional expression. Open
if backend_http_settings_list.any?
- Read upRead up
- Exclude checks
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'
- Read upRead up
- Exclude checks
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'
- Read upRead up
- Exclude checks
Use SCREAMING_SNAKE_CASE for constants. Open
StandardZRS = 'Standard_ZRS'.freeze
- Read upRead up
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
attribute :accept_ranges, aliases: %w(Accept-Ranges AcceptRanges)
- Read upRead up
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
attribute :copy_id, aliases: %w(Copy-Id CopyId)
- Read upRead up
- Exclude checks
Use %i
or %I
for an array of symbols. Open
invalid_attr = [:resource_group, :name, :location, :id]
- Read upRead up
- Exclude checks
Use a guard clause instead of wrapping the code inside a conditional expression. Open
if missing.length == 1
- Read upRead up
- Exclude checks
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'
- Read upRead up
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
attribute :copy_status_description, aliases: %w(Copy-Status-Description CopyStatusDescription)
- Read upRead up
- Exclude checks