durran/protocop

View on GitHub

Showing 2 of 2 total issues

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

  class Buffer

    # Constant for binary string encoding.
    BINARY = "BINARY"

Severity: Minor
Found in lib/protocop/buffer.rb - About 6 hrs to fix

    Method benchmark! has 110 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def benchmark!
      Benchmark.bm do |bench|
    
        bench.report("Protocop::Buffer#write_boolean -->") do
          1_000_000.times do |n|
    Severity: Major
    Found in perf/bench.rb - About 4 hrs to fix
      Severity
      Category
      Status
      Source
      Language