a #157
Annotations
11 errors and 3 warnings
lint:
app/controllers/api/v1/timelines/public_controller.rb#L17
[Correctable] Style/AndOr: Use && instead of and. (https://rubystyle.guide#no-and-or-or)
|
lint:
app/controllers/api/v1/timelines/public_controller.rb#L19
[Correctable] Style/AndOr: Use && instead of and. (https://rubystyle.guide#no-and-or-or)
|
lint:
app/controllers/api/v1/timelines/public_controller.rb#L19
[Correctable] Style/AndOr: Use && instead of and. (https://rubystyle.guide#no-and-or-or)
|
lint:
app/controllers/api/v1/timelines/public_controller.rb#L21
[Correctable] Style/AndOr: Use && instead of and. (https://rubystyle.guide#no-and-or-or)
|
lint:
app/controllers/api/v1/timelines/public_controller.rb#L21
[Correctable] Style/AndOr: Use || instead of or. (https://rubystyle.guide#no-and-or-or)
|
lint:
app/controllers/api/v1/timelines/public_controller.rb#L21
[Correctable] Style/AndOr: Use && instead of and. (https://rubystyle.guide#no-and-or-or)
|
lint:
app/helpers/admin/trends/statuses_helper.rb#L17
[Correctable] Layout/TrailingWhitespace: Trailing whitespace detected. (https://rubystyle.guide#no-trailing-whitespace)
|
lint:
app/helpers/context_helper.rb#L48
[Correctable] Style/MapIntoArray: Use map instead of each to map elements into an array. (https://rubystyle.guide#functional-code)
|
lint:
app/models/concerns/account/interactions.rb#L234
[Correctable] Rails/WhereExists: Prefer exists?(account: self, name: name, custom_emoji: custom_emoji) over where(account: self, name: name, custom_emoji: custom_emoji).exists?.
|
lint:
app/serializers/initial_state_serializer.rb#L37
Metrics/AbcSize: Assignment Branch Condition size for meta is too high. [<25, 87, 8> 90.87/90] (http://c2.com/cgi/wiki?AbcMetric, https://en.wikipedia.org/wiki/ABC_Software_Metric)
|
lint
Process completed with exit code 7.
|
lint:
app/controllers/api/v1/timelines/public_controller.rb#L23
Lint/DuplicateBranch: Duplicate branch body detected.
|
lint:
app/helpers/admin/trends/statuses_helper.rb#L3
[Correctable] Lint/DuplicateMagicComment: Duplicate magic comment detected.
|
lint:
app/models/concerns/account/interactions.rb#L237
Lint/DuplicateMethods: Method Account::Interactions#reacted? is defined at both app/models/concerns/account/interactions.rb:233 and app/models/concerns/account/interactions.rb:237.
|