Skip to content

Conversation

alextwoods
Copy link
Owner

Pronto?

puts "This should trigger warnings!"
end

if y = 3

Choose a reason for hiding this comment

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

Useless assignment to variable - y.

puts "This should trigger warnings!"
end

if y = 3

Choose a reason for hiding this comment

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

Use == if you meant to do a comparison or wrap the expression in parentheses to indicate you meant to assign in a condition.

end

if y = 3
puts "This is a new change that should get a comment"

Choose a reason for hiding this comment

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

Prefer single-quoted strings when you don't need string interpolation or special symbols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant