Sha256: bf23068cdd245251809bc8bdb4f68c3d45bb1a9fc3bca61696e59c34b9493cf6
Contents?: true
Size: 359 Bytes
Versions: 24
Compression:
Stored size: 359 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # Common functionality for Rails safe mode. module SafeMode private def rails_safe_mode? safe_mode? || rails? end def safe_mode? cop_config['SafeMode'] end def rails? config['Rails']&.fetch('Enabled') end end end end
Version data entries
24 entries across 16 versions & 2 rubygems