AO3-6880 Use pagy gem for pagination on select pages #1732
reviewdog.yml
on: pull_request
Rubocop
53s
ERB Lint runner
1m 39s
Annotations
1 error and 3 warnings
Rubocop
Process completed with exit code 1.
|
Rubocop:
app/helpers/pagination_helper.rb#L10
[rubocop] reported by reviewdog 🐶
Favor modifier `unless` usage when having a single-line body. Another good alternative is the usage of control flow `&&`/`||`.
Raw Output:
app/helpers/pagination_helper.rb:10:5: C: Style/IfUnlessModifier: Favor modifier `unless` usage when having a single-line body. Another good alternative is the usage of control flow `&&`/`||`.
|
Rubocop:
app/helpers/pagination_helper.rb#L28
[rubocop] reported by reviewdog 🐶
Space missing after colon.
Raw Output:
app/helpers/pagination_helper.rb:28:107: C: Layout/SpaceAfterColon: Space missing after colon.
|
Rubocop:
config/initializers/gem-plugin_config/pagy.rb#L4
[rubocop] reported by reviewdog 🐶
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Raw Output:
config/initializers/gem-plugin_config/pagy.rb:4:9: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
|