locaweb/cassette

View on GitHub
lib/cassette.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Use module_function instead of extend self.
Open

  extend self
Severity: Minor
Found in lib/cassette.rb by rubocop

This cops checks for use of extend self or module_function in a module.

Supported styles are: modulefunction, extendself.

Example: EnforcedStyle: module_function (default)

# bad
module Test
  extend self
  # ...
end

# good
module Test
  module_function
  # ...
end

Example: EnforcedStyle: extend_self

# bad
module Test
  module_function
  # ...
end

# good
module Test
  extend self
  # ...
end

These offenses are not auto-corrected since there are different implications to each approach.

Unnecessary utf-8 encoding comment.
Open

# encoding: UTF-8
Severity: Minor
Found in lib/cassette.rb by rubocop

There are no issues that match your filters.

Category
Status