cvent/octopus-deploy-cookbook

View on GitHub
spec/unit/lib_server_scripts_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Add an empty line after magic comments.
Open

require 'spec_helper'

Checks for a newline after the final magic comment.

Example:

# good
# frozen_string_literal: true

# Some documentation for Person
class Person
  # Some code
end

# bad
# frozen_string_literal: true
# Some documentation for Person
class Person
  # Some code
end

When using method_missing, define respond_to_missing? and fall back on super.
Open

      def method_missing(method_name)
        method_name.to_s
      end

This cop checks for the presence of method_missing without also defining respond_to_missing? and falling back on super.

Example:

#bad
def method_missing(name, *args)
  # ...
end

#good
def respond_to_missing?(name, include_private)
  # ...
end

def method_missing(name, *args)
  # ...
  super
end

There are no issues that match your filters.

Category
Status