spec/classes/query_parser_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Do not use should when describing your tests.
Open

    it 'should extract an array of :excluded_sites as SiteFilters' do
Severity: Minor
Found in spec/classes/query_parser_spec.rb by rubocop

Do not use should when describing your tests.
Open

    it 'should make the resulting query available' do
Severity: Minor
Found in spec/classes/query_parser_spec.rb by rubocop

Missing space after #.
Open

    it 'does not alter the original query' do #because here there be bugs
Severity: Minor
Found in spec/classes/query_parser_spec.rb by rubocop

Checks whether comments have a leading space after the # denoting the start of the comment. The leading space is not required for some RDoc special syntax, like #++, #--, #:nodoc, =begin- and =end comments, "shebang" directives, or rackup options.

Example:

# bad
#Some comment

# good
# Some comment

Example: AllowDoxygenCommentStyle: false (default)

# bad

#**
# Some comment
# Another line of comment
#*

Example: AllowDoxygenCommentStyle: true

# good

#**
# Some comment
# Another line of comment
#*

Example: AllowGemfileRubyComment: false (default)

# bad

#ruby=2.7.0
#ruby-gemset=myproject

Example: AllowGemfileRubyComment: true

# good

#ruby=2.7.0
#ruby-gemset=myproject

Context description should match /^when\b/, /^with\b/, or /^without\b/.
Open

  context 'one or more site: params in query string' do
Severity: Minor
Found in spec/classes/query_parser_spec.rb by rubocop

Context description should match /^when\b/, /^with\b/, or /^without\b/.
Open

  context 'one or more -site: params in query string' do
Severity: Minor
Found in spec/classes/query_parser_spec.rb by rubocop

Do not use should when describing your tests.
Open

    it 'should make the resulting query available' do
Severity: Minor
Found in spec/classes/query_parser_spec.rb by rubocop

Do not use should when describing your tests.
Open

    it 'should extract an array of SiteFilter instances' do
Severity: Minor
Found in spec/classes/query_parser_spec.rb by rubocop

There are no issues that match your filters.

Category
Status