hg.gemspec
Put a space before an end-of-line comment. Open
Open
spec.add_runtime_dependency 'api-ai-ruby'#, '~> 1.2.3'
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for missing space between a token and a comment on the same line.
Example:
# bad
1 + 1# this operation does ...
# good
1 + 1 # this operation does ...
Avoid trailing inline comments. Open
Open
spec.add_runtime_dependency 'api-ai-ruby'#, '~> 1.2.3'
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for trailing inline comments.
Example:
# good
foo.each do |f|
# Standalone comment
f.bar
end
# bad
foo.each do |f|
f.bar # Trailing inline comment
end
Missing space after #
. (https://github.com/voxable-labs/voxable-style-guide#hash-space) Open
Open
spec.add_runtime_dependency 'api-ai-ruby'#, '~> 1.2.3'
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment