Dalphi/dalphi

View on GitHub

Showing 1,441 of 1,441 total issues

Missing space after #.
Open

    #coverage.reports = ["text-summary", "html"]
Severity: Minor
Found in spec/teaspoon_env.rb by rubocop

This cop 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

Line is too long. [114/80]
Open

  # Determines where the Teaspoon routes will be mounted. Changing this to "/jasmine" would allow you to browse to
Severity: Minor
Found in spec/teaspoon_env.rb by rubocop

Line is too long. [101/80]
Open

    # Which coverage reports Istanbul should generate. Correlates directly to what Istanbul supports.
Severity: Minor
Found in spec/teaspoon_env.rb by rubocop

Line is too long. [118/80]
Open

    # Various thresholds requirements can be defined, and those thresholds will be checked at the end of a run. If any
Severity: Minor
Found in spec/teaspoon_env.rb by rubocop

Line is too long. [88/80]
Open

    compilate = CoffeeScript.compile(Paperclip.io_adapters.for(record.java_script).read)

Missing top-level class documentation comment.
Open

class WebsiteComponentsValidator < ActiveModel::Validator

This cop checks for missing top-level documentation of classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.

The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.

Example:

# bad
class Person
  # ...
end

# good
# Description/Explanation of Person class
class Person
  # ...
end

Line is too long. [101/80]
Open

    Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(Gem.path_separator) }
Severity: Minor
Found in bin/spring by rubocop

Missing space after #.
Open

    #suite.expand_assets = true
Severity: Minor
Found in spec/teaspoon_env.rb by rubocop

This cop 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

Line is too long. [119/80]
Open

    # you -- which you can override with the directives below. This should be specified first, as it can override other
Severity: Minor
Found in spec/teaspoon_env.rb by rubocop

Line is too long. [103/80]
Open

    # Load additional JS files, but requiring them in your spec helper is the preferred way to do this.
Severity: Minor
Found in spec/teaspoon_env.rb by rubocop

Line is too long. [112/80]
Open

  # Specify the timeout for the driver. Specs are expected to complete within this time frame or the run will be
Severity: Minor
Found in spec/teaspoon_env.rb by rubocop

Line is too long. [113/80]
Open

  # Coverage configurations are similar to suites. You can define several, and use different ones under different
Severity: Minor
Found in spec/teaspoon_env.rb by rubocop

Place the . on the next line, together with the method name.
Open

      with(:headers => {'Accept' => '*/*', 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host' => 'petstore.swagger.io', 'User-Agent' => 'Ruby'}).
Severity: Minor
Found in spec/spec_helper.rb by rubocop

This cop checks the . position in multi-line method calls.

Example: EnforcedStyle: leading (default)

# bad
something.
  mehod

# good
something
  .method

Example: EnforcedStyle: trailing

# bad
something
  .method

# good
something.
  mehod

Space inside } missing.
Open

      with(:headers => {'Accept' => '*/*', 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host' => 'petstore.swagger.io', 'User-Agent' => 'Ruby'}).
Severity: Minor
Found in spec/spec_helper.rb by rubocop

Checks that braces used for hash literals have or don't have surrounding space depending on configuration.

Example: EnforcedStyle: space

# The `space` style enforces that hash literals have
# surrounding space.

# bad
h = {a: 1, b: 2}

# good
h = { a: 1, b: 2 }

Example: EnforcedStyle: no_space

# The `no_space` style enforces that hash literals have
# no surrounding space.

# bad
h = { a: 1, b: 2 }

# good
h = {a: 1, b: 2}

Example: EnforcedStyle: compact

# The `compact` style normally requires a space inside
# hash braces, with the exception that successive left
# braces or right braces are collapsed together in nested hashes.

# bad
h = { a: { b: 2 } }

# good
h = { a: { b: 2 }}

Line is too long. [170/80]
Open

        with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host'=>'yet-another-dalphi-service.com', 'User-Agent'=>'Ruby'}).
Severity: Minor
Found in spec/spec_helper.rb by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

    stub_request(:get, "http://localhost:3002/").
Severity: Minor
Found in spec/spec_helper.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

    stub_request(:get, "http://example.com/iterate/").
Severity: Minor
Found in spec/spec_helper.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Place the . on the next line, together with the method name.
Open

    stub_request(:get, 'http://petstore.swagger.io/v2/swagger.json').
Severity: Minor
Found in spec/spec_helper.rb by rubocop

This cop checks the . position in multi-line method calls.

Example: EnforcedStyle: leading (default)

# bad
something.
  mehod

# good
something
  .method

Example: EnforcedStyle: trailing

# bad
something
  .method

# good
something.
  mehod

Surrounding space missing for operator =>.
Open

      with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host'=>'example.com', 'User-Agent'=>'Ruby'}).
Severity: Minor
Found in spec/spec_helper.rb by rubocop

Checks that operators have space around them, except for ** which should not have surrounding space.

Example:

# bad
total = 3*4
"apple"+"juice"
my_number = 38/4
a ** b

# good
total = 3 * 4
"apple" + "juice"
my_number = 38 / 4
a**b

Space inside { missing.
Open

       with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host'=>'localhost:3002', 'User-Agent'=>'Ruby'}).
Severity: Minor
Found in spec/spec_helper.rb by rubocop

Checks that braces used for hash literals have or don't have surrounding space depending on configuration.

Example: EnforcedStyle: space

# The `space` style enforces that hash literals have
# surrounding space.

# bad
h = {a: 1, b: 2}

# good
h = { a: 1, b: 2 }

Example: EnforcedStyle: no_space

# The `no_space` style enforces that hash literals have
# no surrounding space.

# bad
h = { a: 1, b: 2 }

# good
h = {a: 1, b: 2}

Example: EnforcedStyle: compact

# The `compact` style normally requires a space inside
# hash braces, with the exception that successive left
# braces or right braces are collapsed together in nested hashes.

# bad
h = { a: { b: 2 } }

# good
h = { a: { b: 2 }}
Severity
Category
Status
Source
Language