brpoplpush/brpoplpush-redis_script

View on GitHub
lib/brpoplpush/redis_script/lua_error.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Complex method Brpoplpush::RedisScript::LuaError#generate_error_context (22.4)
Open

      def generate_error_context(content, line_number)
        lines                 = content.lines.to_a
        beginning_line_number = [1, line_number - CONTEXT_LINE_NUMBER].max
        ending_line_number    = [lines.count, line_number + CONTEXT_LINE_NUMBER].min
        line_number_width     = ending_line_number.to_s.length

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

There are no issues that match your filters.

Category
Status