glitch-soc/mastodon

View on GitHub
app/services/translate_status_service.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method build_status_translation has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def build_status_translation(translations)
    status_translation = Translation.new(
      detected_source_language: translations.first&.detected_source_language,
      language: @target_language,
      provider: translations.first&.provider,
Severity: Minor
Found in app/services/translate_status_service.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status