mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Doc fixes
This commit is contained in:
parent
75482a06cf
commit
1399aa3cdf
2 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@ module Ameba::Rule::Layout
|
||||||
# ```
|
# ```
|
||||||
class TrailingWhitespace < Base
|
class TrailingWhitespace < Base
|
||||||
properties do
|
properties do
|
||||||
description "Disallows trailing whitespaces"
|
description "Disallows trailing whitespace"
|
||||||
end
|
end
|
||||||
|
|
||||||
MSG = "Trailing whitespace detected"
|
MSG = "Trailing whitespace detected"
|
||||||
|
|
|
@ -2,6 +2,7 @@ module Ameba::Rule::Lint
|
||||||
# A rule that disallows redundant `with_index` calls.
|
# A rule that disallows redundant `with_index` calls.
|
||||||
#
|
#
|
||||||
# For example, this is considered invalid:
|
# For example, this is considered invalid:
|
||||||
|
#
|
||||||
# ```
|
# ```
|
||||||
# collection.each.with_index do |e|
|
# collection.each.with_index do |e|
|
||||||
# # ...
|
# # ...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue