Skip to content

WIP WIP WIP

WIP WIP WIP #32

Triggered via push October 2, 2023 07:53
Status Failure
Total duration 2m 59s
Artifacts

lint-ruby.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
lint: app/controllers/api/v1/accounts/statuses_controller.rb#L17
[Correctable] Layout/ExtraSpacing: Unnecessary spacing detected.
lint: app/controllers/api/v1/accounts/statuses_controller.rb#L17
[Correctable] Style/TrailingMethodEndStatement: Place the end statement of a multi-line method on its own line.
lint: app/lib/activitypub/activity/create.rb#L113
[Correctable] Layout/TrailingWhitespace: Trailing whitespace detected. (https://rubystyle.guide#no-trailing-whitespace)
lint: app/lib/activitypub/activity/create.rb#L437
[Correctable] Style/GuardClause: Use a guard clause (return unless quote.nil? && (md = @object['content']&.match(/QT:\s*\[<a href=\"([^\"]+).*?\]/))) instead of wrapping the code inside a conditional expression. (https://rubystyle.guide#no-nested-conditionals)
lint: app/lib/activitypub/activity/create.rb#L437
[Correctable] Style/RedundantRegexpEscape: Redundant escape inside regexp literal
lint: app/models/status.rb#L63
[Correctable] Rails/RedundantForeignKey: Specifying the default value for foreign_key is redundant.
lint: app/serializers/initial_state_serializer.rb#L13
Metrics/AbcSize: Assignment Branch Condition size for meta is too high. [<22, 146, 14> 148.3/146] (http://c2.com/cgi/wiki?AbcMetric, https://en.wikipedia.org/wiki/ABC_Software_Metric)
lint: app/serializers/rest/status_serializer.rb#L214
Layout/LineLength: Line is too long. [321/320] (https://rubystyle.guide#max-line-length)
lint: app/services/post_status_service.rb#L86
[Correctable] Style/RegexpLiteral: Use %r around regular expression. (https://rubystyle.guide#percent-r)
lint: config/initializers/sidekiq.rb#L7
[Correctable] Style/GlobalStdStream: Use $stderr instead of STDERR. (https://rubystyle.guide#global-stdout)
lint: app/controllers/api/v1/timelines/home_controller.rb#L11
[Correctable] Lint/UselessAssignment: Useless assignment to variable - account_ids. (https://rubystyle.guide#underscore-unused-vars)
lint: app/mailers/application_mailer.rb#L24
Lint/DuplicateMethods: Method ApplicationMailer#set_autoreply_headers! is defined at both app/mailers/application_mailer.rb:18 and app/mailers/application_mailer.rb:24.