huyderman/querylicious

View on GitHub

Showing 12 of 12 total issues

Complex method Querylicious::Transform::rule#pair (56.3)
Open

    } do
      KeyValuePair.new(key: key, value: obj, op: NEGATIONS[op])
Severity: Minor
Found in lib/querylicious/transform.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

Complex method Querylicious::Parser::rule#list (47.6)
Open

    rule(:list) do
      ((range | datetime | integer | simple_string | quoted_string) >>
        (comma >>
        (range | datetime | integer | simple_string | quoted_string)).repeat(1)
      ).as(:list)
Severity: Minor
Found in lib/querylicious/parser.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

Complex method Querylicious::Parser::rule#range (39.9)
Open

    rule(:range) do
      ((star | datetime | integer | word).as(:start) >>
        dotdot >>
        (star | datetime | integer | word).as(:end)
      ).as(:range)
Severity: Minor
Found in lib/querylicious/parser.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

Complex method Querylicious::Transform::rule#op (28.8)
Open

    rule(op: simple(:op), datetime: simple(:it)) do
      { object: Types::Params::DateTime[it], op: op }
Severity: Minor
Found in lib/querylicious/transform.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

Complex method Querylicious::Parser::rule#value (25.8)
Open

    rule(:value) do
      list | range | (
        kv_op.as(:op)
          .maybe >> (datetime | integer | simple_string | quoted_string)
Severity: Minor
Found in lib/querylicious/parser.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

Complex method Querylicious::Parser::rule#kv_pair (24.4)
Open

    rule(:kv_pair) do
      (str('-').as(:symbol).as(:op).maybe >> key.as(:key) >>
        str(':') >> value.as(:value)).as(:pair)
Severity: Minor
Found in lib/querylicious/parser.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

Complex method Querylicious::Transform::rule#range (22.1)
Open

    rule(range: { start: simple(:first), end: simple(:last) }) do
      if first == :* && last == :*
        :*
      elsif first == :*
        { object: last,  op: :lteq }
Severity: Minor
Found in lib/querylicious/transform.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

Lists should be surrounded by blank lines
Open

* Trolling, insulting/derogatory comments, and personal or political attacks
Severity: Info
Found in CODE_OF_CONDUCT.md by markdownlint

MD032 - Lists should be surrounded by blank lines

Tags: bullet, ul, ol, blank_lines

Aliases: blanks-around-lists

This rule is triggered when lists (of any kind) are either not preceded or not followed by a blank line:

Some text
* Some
* List

1. Some
2. List
Some text

To fix this, ensure that all lists have a blank line both before and after (except where the block is at the beginning or end of the document):

Some text

* Some
* List

1. Some
2. List

Some text

Rationale: Aside from aesthetic reasons, some parsers, including kramdown, will not parse lists that don't have blank lines before and after them.

Note: List items without hanging indents are a violation of this rule; list items with hanging indents are okay:

* This is
not okay

* This is
  okay

Code block style
Open

    bundle
Severity: Info
Found in README.md by markdownlint

Line length
Open

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
Severity: Info
Found in CODE_OF_CONDUCT.md by markdownlint

MD013 - Line length

Tags: line_length

Aliases: line-length Parameters: linelength, codeblocks, tables (number; default 80, boolean; default true)

This rule is triggered when there are lines that are longer than the configured line length (default: 80 characters). To fix this, split the line up into multiple lines.

This rule has an exception where there is no whitespace beyond the configured line length. This allows you to still include items such as long URLs without being forced to break them in the middle.

You also have the option to exclude this rule for code blocks and tables. To do this, set the code_blocks and/or tables parameters to false.

Code blocks are included in this rule by default since it is often a requirement for document readability, and tentatively compatible with code rules. Still, some languages do not lend themselves to short lines.

Lists should be surrounded by blank lines
Open

* The use of sexualized language or imagery and unwelcome sexual attention or
Severity: Info
Found in CODE_OF_CONDUCT.md by markdownlint

MD032 - Lists should be surrounded by blank lines

Tags: bullet, ul, ol, blank_lines

Aliases: blanks-around-lists

This rule is triggered when lists (of any kind) are either not preceded or not followed by a blank line:

Some text
* Some
* List

1. Some
2. List
Some text

To fix this, ensure that all lists have a blank line both before and after (except where the block is at the beginning or end of the document):

Some text

* Some
* List

1. Some
2. List

Some text

Rationale: Aside from aesthetic reasons, some parsers, including kramdown, will not parse lists that don't have blank lines before and after them.

Note: List items without hanging indents are a violation of this rule; list items with hanging indents are okay:

* This is
not okay

* This is
  okay

Code block style
Open

    gem install querylicious
Severity: Info
Found in README.md by markdownlint
Severity
Category
Status
Source
Language