AO3-6933 Add spam checking to user comments #1906
reviewdog.yml
on: pull_request
Rubocop
58s
ERB Lint runner
1m 37s
Annotations
1 error and 8 warnings
Rubocop
Process completed with exit code 1.
|
Rubocop:
app/models/comment.rb#L488
[rubocop] reported by reviewdog 🐶
`end` at 488, 4 is not aligned with `if` at 480, 20.
Raw Output:
app/models/comment.rb:488:5: W: Layout/EndAlignment: `end` at 488, 4 is not aligned with `if` at 480, 20.
|
Rubocop:
app/models/comment.rb#L486
[rubocop] reported by reviewdog 🐶
Align `else` with `if`.
Raw Output:
app/models/comment.rb:486:5: C: Layout/ElseAlignment: Align `else` with `if`.
|
Rubocop:
app/models/comment.rb#L483
[rubocop] reported by reviewdog 🐶
Duplicate branch body detected.
Raw Output:
app/models/comment.rb:483:5: W: Lint/DuplicateBranch: Duplicate branch body detected.
|
Rubocop:
app/models/comment.rb#L483
[rubocop] reported by reviewdog 🐶
Align `elsif` with `if`.
Raw Output:
app/models/comment.rb:483:5: C: Layout/ElseAlignment: Align `elsif` with `if`.
|
Rubocop:
app/models/comment.rb#L482
[rubocop] reported by reviewdog 🐶
Use 2 (not -14) spaces for indentation.
Raw Output:
app/models/comment.rb:482:7: C: Layout/IndentationWidth: Use 2 (not -14) spaces for indentation.
|
Rubocop:
app/models/comment.rb#L480
[rubocop] reported by reviewdog 🐶
`%w`-literals should be delimited by `[` and `]`.
Raw Output:
app/models/comment.rb:480:25: C: Style/PercentLiteralDelimiters: `%w`-literals should be delimited by `[` and `]`.
|
Rubocop:
app/models/comment.rb#L480
[rubocop] reported by reviewdog 🐶
Use `.exclude?` and remove the negation part.
Raw Output:
app/models/comment.rb:480:24: C: Rails/NegateInclude: Use `.exclude?` and remove the negation part.
|
Rubocop:
app/models/comment.rb#L68
[rubocop] reported by reviewdog 🐶
Prefer Rails built-in `t` helper over `ts` and move the text into the yml file. `ts` is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards
Raw Output:
app/models/comment.rb:68:23: C: I18n/DeprecatedHelper: Prefer Rails built-in `t` helper over `ts` and move the text into the yml file. `ts` is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards
|