Sha256: f6c92be3298d51baf43ebfa9366c8b716ace2d6511d3563fb5b70e5028641106
Contents?: true
Size: 542 Bytes
Versions: 16
Compression:
Stored size: 542 Bytes
Contents
# encoding: utf-8 module RailsBestPractices module Prepares # Remember all configs class ConfigPrepare < Core::Check interesting_nodes :assign interesting_files CONFIG_FILES def initialize @configs = Prepares.configs end # check assignments to config add_callback :start_assign do |node| if node.left_value.grep_node(sexp_type: [:vcall, :var_ref], to_s: "config").present? @configs[node.left_value.to_s] = node.right_value.to_s end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems