module Pronto::StyleCopConfig
Public Instance Methods
style_cop()
click to toggle source
# File lib/pronto/style_cop/config.rb, line 3 def style_cop @config_hash.fetch('style_cop', {}) end
style_cop_definitions()
click to toggle source
# File lib/pronto/style_cop/config.rb, line 7 def style_cop_definitions definitions = style_cop.fetch('definitions', [[]]) definitions = [[]] if definitions.nil? || definitions.empty? definitions .collect { |definition| definition.instance_of?(Array) ? definition : [definition] } end
style_cop_parallel()
click to toggle source
# File lib/pronto/style_cop/config.rb, line 14 def style_cop_parallel if ENV['PRONTO_STYLECOP_PARALLEL'].nil? style_cop.fetch('parallel', 1) else return nil if ENV['PRONTO_STYLECOP_PARALLEL'].empty? ENV['PRONTO_STYLECOP_PARALLEL'].to_i end end