lib/querylicious/parser.rb
Complex method Querylicious::Parser::rule#list (47.6) Open
Open
rule(:list) do
((range | datetime | integer | simple_string | quoted_string) >>
(comma >>
(range | datetime | integer | simple_string | quoted_string)).repeat(1)
).as(:list)
- Read upRead up
- Exclude checks
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
Complex method Querylicious::Parser::rule#range (39.9) Open
Open
rule(:range) do
((star | datetime | integer | word).as(:start) >>
dotdot >>
(star | datetime | integer | word).as(:end)
).as(:range)
- Read upRead up
- Exclude checks
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
Complex method Querylicious::Parser::rule#value (25.8) Open
Open
rule(:value) do
list | range | (
kv_op.as(:op)
.maybe >> (datetime | integer | simple_string | quoted_string)
- Read upRead up
- Exclude checks
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
Complex method Querylicious::Parser::rule#kv_pair (24.4) Open
Open
rule(:kv_pair) do
(str('-').as(:symbol).as(:op).maybe >> key.as(:key) >>
str(':') >> value.as(:value)).as(:pair)
- Read upRead up
- Exclude checks
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