class FoodCritic::CommandLine

def valid_paths?

Returns:
  • (Boolean) - True if the paths exist.
def valid_paths?
  paths = options[:cookbook_paths] + options[:role_paths] +
    options[:environment_paths]
  paths.any? && paths.all? { |path| File.exist?(path) }
end