lib/lunanode/api_actions/default/dns.rb
Unused method argument - country
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - global
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - aux
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - orig_record_id
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - weight
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - regiongroup
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - monitor_id
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - region
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - latitude
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - policy
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - longitude
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Unused method argument - continent
. Open
Open
def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end