# frozen_string_literal: true require 'vcr' VCR.configure do |c| c.ignore_hosts 'codeclimate.com' c.hook_into :faraday c.default_cassette_options = { decode_compressed_response: true } c.cassette_library_dir = File.join(File.dirname(__FILE__), '..', 'fixtures', 'vcr_cassettes') c.filter_sensitive_data('') { ENV.fetch('API_TOKEN', 'hidden') } c.filter_sensitive_data('') { ENV.fetch('CHGK_EMAIL', 'fake') } c.filter_sensitive_data('') { ENV.fetch('CHGK_PASSWORD', 'fake') } end