yegor256/0pdd

View on GitHub
0pdd.rb

Summary

Maintainability
C
1 day
Test Coverage

File 0pdd.rb has 491 lines of code (exceeds 250 allowed). Consider refactoring.
Open

$stdout.sync = true

require 'mail'
require 'haml'
require 'json'
Severity: Minor
Found in 0pdd.rb - About 7 hrs to fix

    Method process_request has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def process_request(vcs)
      JobDetached.new(
        vcs,
        JobCommitErrors.new(
          vcs,
    Severity: Minor
    Found in 0pdd.rb - About 1 hr to fix

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

      def storage(repo, vcs)
        file_name = vcs == 'github' ? repo : "#{vcs}-#{repo}"
        SyncStorage.new(
          UpgradedStorage.new(
            SafeStorage.new(
      Severity: Minor
      Found in 0pdd.rb - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status