karlentwistle/ruby_home

View on GitHub
lib/ruby_home/http/controllers/pair_setups_controller.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method exchange has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def exchange
        encrypted_data = unpack_request[:encrypted_data]

        hkdf = HAP::Crypto::HKDF.new(info: "Pair-Setup-Encrypt-Info", salt: "Pair-Setup-Encrypt-Salt")
        key = hkdf.encrypt(session.session_key)
Severity: Minor
Found in lib/ruby_home/http/controllers/pair_setups_controller.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status