translation/rails

View on GitHub
lib/translation_io/client/base_operation.rb

Summary

Maintainability
A
2 hrs
Test Coverage
D
65%

Method perform_request has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def self.perform_request(uri, params)
        begin
          params.merge!({
            'client'             => 'rails',
            'version'            => TranslationIO.version,
Severity: Minor
Found in lib/translation_io/client/base_operation.rb - About 1 hr to fix

    Method warn_wrong_locales has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          def warn_wrong_locales(source_locale, target_locales)
            if target_locales.uniq != target_locales
              duplicate_locale = target_locales.detect { |locale| target_locales.count(locale) > 1 }
    
              puts
    Severity: Minor
    Found in lib/translation_io/client/base_operation.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status