Sha256: bd3c335fd9130ca89d362b1df7ff590407c515f1f40750d14fc1d3342801dab9
Contents?: true
Size: 474 Bytes
Versions: 6832
Compression:
Stored size: 474 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # Common functionality for cops checking single/double quotes. module StringLiteralsHelp include StringHelp private def wrong_quotes?(node) src = node.source return false if src.start_with?('%', '?') if style == :single_quotes !double_quotes_required?(src) else src !~ /" | \\[^'] | \#(@|\{)/x end end end end end
Version data entries
6,832 entries across 6,807 versions & 28 rubygems