kigster/dnsmadeeasy

View on GitHub

Showing 52 of 53 total issues

unexpected token tCOLON (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

      credentials:
Severity: Minor
Found in lib/dnsmadeeasy/runner.rb by rubocop

unexpected $' (Using Ruby 2.1 parser; configure usingTargetRubyVersionparameter, underAllCops`)
Open

  $ dme domain moo.com
Severity: Minor
Found in lib/dnsmadeeasy/runner.rb by rubocop

unexpected token tIDENTIFIER (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

    This library offers both a rich Ruby API that you can use to automate DNS record management, as well
Severity: Minor
Found in dnsmadeeasy.gemspec by rubocop

unknown regexp options: crdtal (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

    The gem additionally supports storing credentials in the ~/.dnsmadeeasy/credentials.yml
Severity: Minor
Found in dnsmadeeasy.gemspec by rubocop

unexpected token tLABEL (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

    the scenes: https://supermarket.chef.io/cookbooks/dnsmadeeasy<br />
Severity: Minor
Found in dnsmadeeasy.gemspec by rubocop

unexpected token kDO_BLOCK (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

  spec.files = `git ls-files -z`.split("\x0").reject do |f|
Severity: Minor
Found in dnsmadeeasy.gemspec by rubocop

unexpected token tLABEL (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

    - name: production
Severity: Minor
Found in lib/dnsmadeeasy/runner.rb by rubocop

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

    def method_missing(method, *args, &block)
      DnsMadeEasy.send(method, *args, &block)
    rescue NameError => e
      puts "Error: #{e.message}"
    end
Severity: Minor
Found in lib/dme.rb by rubocop

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

Freeze mutable objects assigned to constants.
Open

  API_BASE_URL_PRODUCTION = 'https://api.dnsmadeeasy.com/V2.0'
Severity: Minor
Found in lib/dnsmadeeasy.rb by rubocop

This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

Example:

# bad
CONST = [1, 2, 3]

# good
CONST = [1, 2, 3].freeze

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

    def method_missing(method, *args, &block)
      if client.respond_to?(method)
        client.send(method, *args, &block)
      else
        super(method, *args, &block)
Severity: Minor
Found in lib/dnsmadeeasy.rb by rubocop

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

unexpected token tCOLON (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

        encryption_key: my_key
Severity: Minor
Found in lib/dnsmadeeasy/runner.rb by rubocop

unexpected token tLABEL (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

    - name: development
Severity: Minor
Found in lib/dnsmadeeasy/runner.rb by rubocop
Severity
Category
Status
Source
Language