Eric-Guo/wechat

View on GitHub
lib/wechat/corp_api.rb

Summary

Maintainability
C
1 day
Test Coverage
A
96%

Class CorpApi has 49 methods (exceeds 20 allowed). Consider refactoring.
Open

  class CorpApi < ApiBase
    attr_reader :agentid

    def initialize(appid, secret, token_file, agentid, network_setting, jsapi_ticket_file)
      super()
Severity: Minor
Found in lib/wechat/corp_api.rb - About 6 hrs to fix

    Method initialize has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def initialize(appid, secret, token_file, agentid, network_setting, jsapi_ticket_file)
    Severity: Minor
    Found in lib/wechat/corp_api.rb - About 45 mins to fix

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

          def news_message_send(userid, title, description, link_url, pic_url)
      Severity: Minor
      Found in lib/wechat/corp_api.rb - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status