Skip to content

Files

Latest commit

 

History

History
26 lines (18 loc) · 376 Bytes

Style-InlineComment.md

File metadata and controls

26 lines (18 loc) · 376 Bytes

Pattern: Trailing inline comment

Issue: -

Description

This rule checks for trailing inline comments.

Examples

# good
foo.each do |f|
  # Standalone comment
  f.bar
end

# bad
foo.each do |f|
  f.bar # Trailing inline comment
end

Further Reading