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

Test offenses #186

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Conversation

javierm
Copy link
Owner

@javierm javierm commented Aug 26, 2022

No description provided.

@javierm javierm added this to Doing in Automation test Aug 26, 2022
@@ -171,7 +171,7 @@ def single_heading?
end

def heading_price(heading)
heading_ids.include?(heading.id) ? heading.price : -1
heading_ids.include?( heading.id) ? heading.price : -1

Choose a reason for hiding this comment

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

Layout/SpaceInsideParens: Space inside parentheses detected. (https://rubystyle.guide#spaces-braces)

Suggested change
heading_ids.include?( heading.id) ? heading.price : -1
heading_ids.include?(heading.id) ? heading.price : -1

@@ -171,7 +171,7 @@ def single_heading?
end

def heading_price(heading)
heading_ids.include?(heading.id) ? heading.price : -1
heading_ids.include?( heading.id) ? heading.price : -1

Choose a reason for hiding this comment

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

Layout/SpaceAroundOperators: Operator ? should be surrounded by a single space. (https://rubystyle.guide#spaces-operators)

Suggested change
heading_ids.include?( heading.id) ? heading.price : -1
heading_ids.include?( heading.id) ? heading.price : -1

@@ -171,7 +171,7 @@ def single_heading?
end

def heading_price(heading)
heading_ids.include?(heading.id) ? heading.price : -1
heading_ids.include?( heading.id) ? heading.price : -1

Choose a reason for hiding this comment

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

Layout/ExtraSpacing: Unnecessary spacing detected.

Suggested change
heading_ids.include?( heading.id) ? heading.price : -1
heading_ids.include?( heading.id) ? heading.price : -1

@@ -187,7 +187,7 @@ def formatted_heading_price(heading)

def investments_orders
case phase
when "accepting", "reviewing", "finished"
when 'accepting', 'reviewing', "finished"

Choose a reason for hiding this comment

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

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://rubystyle.guide#consistent-string-literals)

Suggested change
when 'accepting', 'reviewing', "finished"
when "accepting", "reviewing", "finished"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
1 participant