Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 438 Bytes

Lint-HashNewWithKeywordArgumentsAsDefault.md

File metadata and controls

21 lines (13 loc) · 438 Bytes

Pattern: Deprecated use of keyword argument in Hash.new

Issue: -

Description

Checks for the deprecated use of keyword arguments as a default in Hash.new.

Examples

# bad
Hash.new(key: :value)

# good
Hash.new({key: :value})

Further Reading