tulul/lycantulul_bot

View on GitHub
Rakefile

Summary

Maintainability
Test Coverage

Space missing to the left of {.
Open

Dir[File.dirname(__FILE__) + '/lib/lycantulul_bot/*/*.rb'].each{ |file| require file }
Severity: Minor
Found in Rakefile by rubocop

Checks that block braces have or don't have a space before the opening brace depending on configuration.

Example:

# bad
foo.map{ |a|
  a.bar.to_s
}

# good
foo.map { |a|
  a.bar.to_s
}

Space missing to the left of {.
Open

Dir[File.dirname(__FILE__) + '/lib/lycantulul_bot/**/*.rb'].each{ |file| require file }
Severity: Minor
Found in Rakefile by rubocop

Checks that block braces have or don't have a space before the opening brace depending on configuration.

Example:

# bad
foo.map{ |a|
  a.bar.to_s
}

# good
foo.map { |a|
  a.bar.to_s
}

Line is too long. [87/80]
Open

Dir[File.dirname(__FILE__) + '/lib/lycantulul_bot/**/*.rb'].each{ |file| require file }
Severity: Minor
Found in Rakefile by rubocop

Do not introduce global variables.
Open

$redis = Redis.new
Severity: Minor
Found in Rakefile by rubocop

This cops looks for uses of global variables. It does not report offenses for built-in global variables. Built-in global variables are allowed by default. Additionally users can allow additional variables via the AllowedVariables option.

Note that backreferences like $1, $2, etc are not global variables.

Example:

# bad
$foo = 2
bar = $foo + 5

# good
FOO = 2
foo = 2
$stdin.read

Missing magic comment # frozen_string_literal: true.
Open

require 'rake'
Severity: Minor
Found in Rakefile by rubocop

This cop is designed to help upgrade to Ruby 3.0. It will add the comment # frozen_string_literal: true to the top of files to enable frozen string literals. Frozen string literals may be default in Ruby 3.0. The comment will be added below a shebang and encoding comment. The frozen string literal comment is only valid in Ruby 2.3+.

Example: EnforcedStyle: when_needed (default)

# The `when_needed` style will add the frozen string literal comment
# to files only when the `TargetRubyVersion` is set to 2.3+.
# bad
module Foo
  # ...
end

# good
# frozen_string_literal: true

module Foo
  # ...
end

Example: EnforcedStyle: always

# The `always` style will always add the frozen string literal comment
# to a file, regardless of the Ruby version or if `freeze` or `<<` are
# called on a string literal.
# bad
module Bar
  # ...
end

# good
# frozen_string_literal: true

module Bar
  # ...
end

Example: EnforcedStyle: never

# The `never` will enforce that the frozen string literal comment does
# not exist in a file.
# bad
# frozen_string_literal: true

module Baz
  # ...
end

# good
module Baz
  # ...
end

Line is too long. [86/80]
Open

Dir[File.dirname(__FILE__) + '/lib/lycantulul_bot/*/*.rb'].each{ |file| require file }
Severity: Minor
Found in Rakefile by rubocop

There are no issues that match your filters.

Category
Status