opf/openproject

View on GitHub
extra/mail_handler/rdm-mailhandler.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method initialize has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def initialize
    self.issue_attributes = {}

    opts = GetoptLong.new(
      ["--help",           "-h", GetoptLong::NO_ARGUMENT],
Severity: Minor
Found in extra/mail_handler/rdm-mailhandler.rb - About 1 hr to fix

    Method submit has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def submit(email)
        uri = url.gsub(%r{/*\z}, "") + "/mail_handler"
    
        headers = { "User-Agent" => "Redmine mail handler/#{VERSION}" }
    
    
    Severity: Minor
    Found in extra/mail_handler/rdm-mailhandler.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status