Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ryan iter 1 #24

Merged
merged 2 commits into from
Nov 4, 2022
Merged

Ryan iter 1 #24

merged 2 commits into from
Nov 4, 2022

Conversation

ryancanton
Copy link
Collaborator

No description provided.

@@ -1,4 +1,4 @@
module TestModule
module RepositoryModule
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/Documentation: Missing top-level module documentation comment.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.

#
# end
def golden_items

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body beginning.

# def golden_items
#
# end
def golden_items
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/EmptyMethod: Put empty method definitions on a single line.


def merchants_with_high_item_count
threshold = average_items_per_merchant + average_items_per_merchant_standard_deviation
@merchants.all.find_all { |merchant| items_per_merchant(merchant.id) > threshold }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [86/80]

#

def merchants_with_high_item_count
threshold = average_items_per_merchant + average_items_per_merchant_standard_deviation
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [90/80]

# xit '' do
# end

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end.

xit '#merchants_with_high_item_count can determine which merchants sell the highest number of items' do

it '#merchants_with_high_item_count can determine which merchants sell the highest number of items' do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [106/80]

it '#average_items_per_merchant_standard_deviation can determine standard deviation on average items per merchant' do
expect(sales_analyst.average_items_per_merchant_standard_deviation).to eq(1.0)
expect(sales_analyst.average_items_per_merchant_standard_deviation).to eq(0.71)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [85/80]

@Kerynn Kerynn merged commit d54e344 into master Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants