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 frontend_ports.any?

Use SCREAMING_SNAKE_CASE for constants.
Open

Storage = 'Storage'.freeze

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

if missing.length == 1

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

if http_listeners.any?

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

spec.add_development_dependency 'minitest', '~> 5.8.4'
Severity: Minor
Found in fog-azure-rm.gemspec by rubocop

Avoid rescuing without specifying an error class.
Open

rescue => error

Avoid rescuing without specifying an error class.
Open

rescue => error

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

attribute :sequence_number, aliases: %w(Sequence-Number SequenceNumber)

Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency azure-storage should appear before azure_mgmt_key_vault.
Open

spec.add_dependency 'azure-storage', '= 0.11.5.preview'
Severity: Minor
Found in fog-azure-rm.gemspec by rubocop

Use SCREAMING_SNAKE_CASE for constants.
Open

StandardGRS = 'Standard_GRS'.freeze

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

attribute :content_language, aliases: %w(Content-Language ContentLanguage)

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

attribute :lease_duration, aliases: %w(Lease-Duration LeaseDuration)

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

if probes.is_a?(Array)

Use SCREAMING_SNAKE_CASE for constants.
Open

StandardRAGRS = 'Standard_RAGRS'.freeze

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

attribute :content_md5, aliases: %w(Content-MD5 ContentMD5)

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

attribute :content_disposition, aliases: %w(Content-Disposition ContentDisposition)

Use each instead of each_with_object.
Open

ip_address.instance_variables.each_with_object({}) { |instance_variable| hash[:ipAddress] = ip_address.instance_variable_get(instance_variable) }

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

if gateway_ip_configurations.any?

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

if gateway_ip_configuration.is_a?(Hash)

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

if ssl_certificates.is_a?(Array)
Severity
Category
Status
Source
Language