Showing 52 of 53 total issues
unexpected token tCOLON
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
credentials:
- Exclude checks
unexpected $'
(Using Ruby 2.1 parser; configure using
TargetRubyVersionparameter, under
AllCops`) Open
Open
$ dme domain moo.com
- Exclude checks
unexpected token tIDENTIFIER
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
This library offers both a rich Ruby API that you can use to automate DNS record management, as well
- Exclude checks
unknown regexp options: crdtal
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
The gem additionally supports storing credentials in the ~/.dnsmadeeasy/credentials.yml
- Exclude checks
unexpected token tLABEL
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
the scenes: https://supermarket.chef.io/cookbooks/dnsmadeeasy<br />
- Exclude checks
unexpected token kDO_BLOCK
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
spec.files = `git ls-files -z`.split("\x0").reject do |f|
- Exclude checks
unexpected token tLABEL
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
- name: production
- Exclude checks
When using method_missing
, define respond_to_missing?
and fall back on super
. Open
Open
def method_missing(method, *args, &block)
DnsMadeEasy.send(method, *args, &block)
rescue NameError => e
puts "Error: #{e.message}"
end
- Read upRead up
- Exclude checks
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
Open
API_BASE_URL_PRODUCTION = 'https://api.dnsmadeeasy.com/V2.0'
- Read upRead up
- Exclude checks
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
Open
def method_missing(method, *args, &block)
if client.respond_to?(method)
client.send(method, *args, &block)
else
super(method, *args, &block)
- Read upRead up
- Exclude checks
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
Open
encryption_key: my_key
- Exclude checks
unexpected token tLABEL
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
- name: development
- Exclude checks