Skip to content

fix spec

fix spec #2

Triggered via push March 18, 2024 00:41
Status Failure
Total duration 2m 25s
Artifacts

lint-ruby.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: app/models/status.rb#L324
[Correctable] Rails/ActiveRecordCallbacksOrder: after_create is supposed to appear before before_destroy. (https://rails.rubystyle.guide/#callbacks-order)
lint: app/models/status.rb#L427
Naming/PredicateName: Rename has_non_mention_links? to non_mention_links?. (https://rubystyle.guide#bool-methods-qmark)
lint: app/services/fan_out_on_write_service.rb#L123
[Correctable] Style/NumericPredicate: Use @account.followers.local.count.zero? instead of @account.followers.local.count == 0. (https://rubystyle.guide#predicate-methods)
lint: app/services/post_status_service.rb#L121
[Correctable] Layout/EmptyLines: Extra blank line detected. (https://rubystyle.guide#two-or-more-empty-lines)
lint: config/environments/production.rb#L153
[Correctable] Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
lint: config/environments/production.rb#L154
[Correctable] Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
lint: config/environments/production.rb#L155
[Correctable] Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
lint: config/environments/production.rb#L156
[Correctable] Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
lint: config/environments/production.rb#L157
[Correctable] Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
lint: config/initializers/cors.rb#L28
[Correctable] Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line. (https://rubystyle.guide#no-double-indent)