module RuboCop::Formatter::Colorizable

This mix-in module provides string coloring methods for terminals. It automatically disables coloring if coloring is disabled in the process globally or the formatter’s output is not a terminal.