raivil/roda-token-auth

View on GitHub
lib/roda/plugins/token_auth.rb

Summary

Maintainability
A
0 mins
Test Coverage

Complex method Roda::RodaPlugins::TokenAuth::RequestMethods#token_auth (24.3)
Open

      def token_auth(opts = {}, &authenticator)
        auth_opts = roda_class.opts[:token_auth].merge(opts)
        authenticator ||= auth_opts[:authenticator]

        raise "Must provide an authenticator block" if authenticator.nil?
Severity: Minor
Found in lib/roda/plugins/token_auth.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

unexpected token error (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

        auth_opts[:unauthorized]&.call(self)
Severity: Minor
Found in lib/roda/plugins/token_auth.rb by rubocop

There are no issues that match your filters.

Category
Status