killbill/killbill-client-ruby

View on GitHub
lib/killbill_client/models/helpers/tag_helper.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Method has_tags has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        def has_tags(url_prefix, id_alias)
          define_method('tags') do |*args|

            included_deleted = args[0] || false
            audit = args[1] || 'NONE'
Severity: Minor
Found in lib/killbill_client/models/helpers/tag_helper.rb - About 1 hr to fix

    Method remove_tag_from_definition_id has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

          def remove_tag_from_definition_id(tag_definition_id, user = nil, reason = nil, comment = nil, options = {})
    Severity: Minor
    Found in lib/killbill_client/models/helpers/tag_helper.rb - About 35 mins to fix

      Method add_tag has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            def add_tag(tag_name, user = nil, reason = nil, comment = nil, options = {})
      Severity: Minor
      Found in lib/killbill_client/models/helpers/tag_helper.rb - About 35 mins to fix

        Method remove_tag has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

              def remove_tag(tag_name, user = nil, reason = nil, comment = nil, options = {})
        Severity: Minor
        Found in lib/killbill_client/models/helpers/tag_helper.rb - About 35 mins to fix

          Method add_tag_from_definition_id has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                def add_tag_from_definition_id(tag_definition_id, user = nil, reason = nil, comment = nil, options = {})
          Severity: Minor
          Found in lib/killbill_client/models/helpers/tag_helper.rb - About 35 mins to fix

            Method set_tags has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                  def set_tags(tag_definition_ids, user = nil, reason = nil, comment = nil, options = {})
            Severity: Minor
            Found in lib/killbill_client/models/helpers/tag_helper.rb - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status