Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 445 Bytes

Performance-UriDefaultParser.md

File metadata and controls

21 lines (13 loc) · 445 Bytes

Pattern: Use of URI::Parser.new instead of URI::DEFAULT_PARSER

Issue: -

Description

This rule identifies places where URI::Parser.new can be replaced by URI::DEFAULT_PARSER.

Examples

# bad
URI::Parser.new

# good
URI::DEFAULT_PARSER

Further Reading