3scale/porta

View on GitHub

Showing 5,267 of 5,597 total issues

StressTest#signup has the variable name 'i'
Open

    count.times do |i|
Severity: Minor
Found in script/stress-test.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

BulletSafeList#parse_bullets has the variable name 'f'
Open

    File.open(file, mode: "r") do |f|
Severity: Minor
Found in script/bullet_safe_list.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

ApplicationPlan#default_options_for has the variable name 'v'
Open

    DEFAULT_CONTRACT_OPTIONS.inject({}){|memo, (k,v)| memo[k] = sprintf(v, buyer.org_name); memo}
Severity: Minor
Found in app/models/application_plan.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

CMS::PageRepresenter has the variable name 'p'
Open

  with_options(if: ->(*) { is_a?(CMS::Page) }) do |p|

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

HyperMegaProfiler#puts_diff has the variable name 'v'
Open

    new.each_pair do |k,v|
Severity: Minor
Found in script/hyper_mega_profiler.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

StressTest#provider has the variable name 'i'
Open

    job = Proc.new do |i|
Severity: Minor
Found in script/stress-test.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

CinstanceRepresenter has the variable name 'v2'
Open

  with_options(if: ->(*) { backend_version.v2? || backend_version.oauth? }, render_nil: true) do |v2|

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Account#on_trial? has the variable name 'c'
Open

    contracts.all? { |c| c.trial? }
Severity: Minor
Found in app/models/account.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

CMS::Section#dirty? has the variable name 'c'
Open

    self.children.any? { |c| c.dirty? } ||
Severity: Minor
Found in app/models/cms/section.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

CinstanceRepresenter has the variable name 'v1'
Open

  with_options(if: ->(*) { backend_version.v1? }, render_nil: true) do |v1|

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Account::ProviderMethods has the variable name 'z'
Open

  ALLOWED_TIMEZONES = ActiveSupport::TimeZone.all.reject { |z| z.utc_offset % 3600 != 0 }.freeze
Severity: Minor
Found in app/models/account/provider_methods.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Account#paid? has the variable name 'c'
Open

    contracts.any? { |c| c.paid? }
Severity: Minor
Found in app/models/account.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Backend::Status#to_xml has the variable name 'e'
Open

                rescue Exception => e
Severity: Minor
Found in app/models/backend/status.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Cinstance#select_users has the variable name 'c'
Open

    service.cinstances.collect {|c| [ c.user_name, c.id ] }
Severity: Minor
Found in app/models/cinstance.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

CMS::Section#destroy has the variable name 'p'
Open

        builtins.each{|p| p.section = parent; p.save!}
        pages.each   {|p| p.section = parent; p.save!}
Severity: Minor
Found in app/models/cms/section.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

CMS::Section#destroy has the variable name 'f'
Open

        files.each   {|f| f.section = parent; f.save!}
Severity: Minor
Found in app/models/cms/section.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Annotating::Model#annotations= has the variable name 'k'
Open

      hash.each do |k ,v|

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

CMS::Section#dirty? has the variable name 'f'
Open

      self.files.any? { |f| f.dirty? } ||
Severity: Minor
Found in app/models/cms/section.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Annotating::Model#annotations= has the variable name 'v'
Open

      hash.each do |k ,v|

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

ApplicationPlan#default_options_for has the variable name 'k'
Open

    DEFAULT_CONTRACT_OPTIONS.inject({}){|memo, (k,v)| memo[k] = sprintf(v, buyer.org_name); memo}
Severity: Minor
Found in app/models/application_plan.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Severity
Category
Status
Source
Language