reevoo/sapience-rb

View on GitHub

Showing 1,401 of 1,401 total issues

Line is too long. [90/80]
Open

        message += "#{level_color}#{log.level_to_s}#{colors::CLEAR} [#{log.process_info}]"
Severity: Minor
Found in lib/sapience/formatters/color.rb by rubocop

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

        increment("success", add_tags(module_name, action, opts))
Severity: Minor
Found in lib/sapience/metrics/datadog.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

  require "awesome_print"
Severity: Minor
Found in lib/sapience/formatters/color.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

        message += " " + log.tags.collect { |tag| "[#{tag}]" }.join(" ") if log.tags && !log.tags.empty?
Severity: Minor
Found in lib/sapience/formatters/default.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

          ""
Severity: Minor
Found in lib/sapience/formatters/base.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"

Line is too long. [119/80]
Open

          message += " -- Exception: #{colors::BOLD}#{log.exception.class}: #{log.exception.message}#{colors::CLEAR}\n"
Severity: Minor
Found in lib/sapience/formatters/color.rb by rubocop

Extra empty line detected at module body end.
Open


end
Severity: Minor
Found in lib/sapience/ansi_colors.rb by rubocop

This cops checks if empty lines around the bodies of modules match the configuration.

Example: EnforcedStyle: empty_lines

# good

module Foo

  def bar
    # ...
  end

end

Example: EnforcedStyle: emptylinesexcept_namespace

# good

module Foo
  module Bar

    # ...

  end
end

Example: EnforcedStyle: emptylinesspecial

# good
module Foo

  def bar; end

end

Example: EnforcedStyle: noemptylines (default)

# good

module Foo
  def bar
    # ...
  end
end

TODO found
Open

    # TODO: Wait with adding appenders until they are needed solve this by below
Severity: Minor
Found in lib/sapience/subscriber.rb by fixme

TODO found
Open

# TODO Comment out this rule if environment variables can be committed
Severity: Minor
Found in test_apps/rails_5_0/.gitignore by fixme

TODO found
Open

    # TODO: Implement this mehtod in all appenders
Severity: Minor
Found in lib/sapience/subscriber.rb by fixme

TODO found
Open

# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
Severity: Minor
Found in test_apps/grape/.gitignore by fixme

TODO found
Open

    # TODO: Output relevant message when appender isn't valid
Severity: Minor
Found in lib/sapience/subscriber.rb by fixme

TODO found
Open

    # TODO: Move this to logger.rb?
Severity: Minor
Found in lib/sapience/base.rb by fixme

TODO found
Open

    # TODO: Implement possibility of finding and deleting appenders by env
Severity: Minor
Found in lib/sapience/subscriber.rb by fixme

TODO found
Open

  # TODO: Make it possible to remove appenders by type
Severity: Minor
Found in lib/sapience/sapience.rb by fixme

TODO found
Open

# TODO Comment out this rule if environment variables can be committed
Severity: Minor
Found in test_apps/grape/.gitignore by fixme

TODO found
Open

    # TODO: Check this valid? method before using appender, output above error message if not valid?
Severity: Minor
Found in lib/sapience/subscriber.rb by fixme

TODO found
Open

    # TODO: Move this to logger.rb?
Severity: Minor
Found in lib/sapience/base.rb by fixme

TODO found
Open

    # TODO: Implement a format string with class name and interesting values
Severity: Minor
Found in lib/sapience/subscriber.rb by fixme

TODO found
Open

# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
Severity: Minor
Found in test_apps/sinatra/.gitignore by fixme
Severity
Category
Status
Source
Language