Skip to content
Triggered via push June 29, 2024 04:24
Status Failure
Total duration 1m 36s
Artifacts

lint-ruby.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
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: config/initializers/application_controller_renderer.rb#L2
[Correctable] Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments. (https://rubystyle.guide#separate-magic-comments-from-code)
lint: lib/mastodon/cli/progress_helper.rb#L40
[Correctable] Style/MapIntoArray: Use map instead of each to map elements into an array. (https://rubystyle.guide#functional-code)
lint: spec/config/initializers/rack/attack_spec.rb#L30
[Correctable] RSpecRails/HttpStatus: Prefer :too_many_requests over 429 to describe HTTP status code. (https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/HttpStatus)
lint: spec/config/initializers/rack/attack_spec.rb#L41
[Correctable] RSpecRails/HttpStatus: Prefer :too_many_requests over 429 to describe HTTP status code. (https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/HttpStatus)
lint: spec/config/initializers/rack/attack_spec.rb#L46
[Correctable] RSpecRails/HttpStatus: Prefer :too_many_requests over 429 to describe HTTP status code. (https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/HttpStatus)
lint: spec/config/initializers/rack/attack_spec.rb#L111
[Correctable] RSpecRails/HttpStatus: Prefer :not_found over 404 to describe HTTP status code. (https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/HttpStatus)
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.