18F/micropurchase

View on GitHub
app/models/winning_bidder_export.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Class WinningBidderExport has 25 methods (exceeds 20 allowed). Consider refactoring.
Open

class WinningBidderExport
  class Error < StandardError; end

  PURCHASE_CARD_AS_PAYMENT_METHOD = 'Y'.freeze
  NATIONAL_INTEREST_ACTION = 'None'.freeze
Severity: Minor
Found in app/models/winning_bidder_export.rb - About 2 hrs to fix

Method has too many lines. [24/20]
Open

  def header_values
    [
      "13GG Vendor Name",
      "13JJ Vendor Address Line 1",
      '13KK Vendor Address Line 2',
Severity: Minor
Found in app/models/winning_bidder_export.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Method has too many lines. [24/20]
Open

  def data_values
    [
      legal_business_name,
      address_line_1,
      address_line_2,
Severity: Minor
Found in app/models/winning_bidder_export.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

There are no issues that match your filters.

Category
Status