Sha256: ffc98443d9137e47863b9dfee2d559973798dffa6298df63bb5d0fcc3b5fc9b4
Contents?: true
Size: 480 Bytes
Versions: 44
Compression:
Stored size: 480 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 !/" | \\[^'] | \#(@|\{)/x.match?(src) end end end end end
Version data entries
44 entries across 44 versions & 4 rubygems