Sha256: 4e10586b3da9f72e843137bc22861bc96282e6296120b13374ea5a5b601a9eee
Contents?: true
Size: 460 Bytes
Versions: 62
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true require "rubocop" module RuboCop module Cop module Jekyll class NoPAllowed < Cop MSG = "Avoid using `p` to print things. Use `Jekyll.logger` instead.".freeze def_node_search :p_called?, <<-PATTERN (send _ :p _) PATTERN def on_send(node) if p_called?(node) add_offense(node, :location => :selector) end end end end end end
Version data entries
62 entries across 62 versions & 3 rubygems